Date: Thu, 23 Feb 2006 05:49:15 GMT From: Kip Macy <kmacy@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 92251 for review Message-ID: <200602230549.k1N5nFlK024833@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=92251 Change 92251 by kmacy@kmacy:freebsd7_xen3 on 2006/02/23 05:48:15 apply fix submitted by Tim Kuik to xenbus_client.t apply fix for problem discovered by Arun Sharma Affected files ... .. //depot/projects/xen3/src/sys/dev/xen/xenbus/xenbus_client.c#3 edit .. //depot/projects/xen3/src/sys/i386/i386/sys_machdep.c#4 edit Differences ... ==== //depot/projects/xen3/src/sys/dev/xen/xenbus/xenbus_client.c#3 (text+ko) ==== @@ -218,7 +218,7 @@ int xenbus_grant_ring(struct xenbus_device *dev, unsigned long ring_mfn) { int err = gnttab_grant_foreign_access(dev->otherend_id, ring_mfn, 0); - if (err != 0) + if (err < 0) xenbus_dev_fatal(dev, err, "granting access to ring page"); return err; } ==== //depot/projects/xen3/src/sys/i386/i386/sys_machdep.c#4 (text+ko) ==== @@ -183,7 +183,7 @@ #ifndef XEN PCPU_GET(fsgs_gdt)[0] = sd; #else - sd.sd_lolimit = 0x0; /* < 4GB limit */ + sd.sd_lolimit = 0xc3f0; /* < 4GB limit */ HYPERVISOR_update_descriptor(vtomach(&PCPU_GET(fsgs_gdt)[1]), *(uint64_t *)&sd); #endif @@ -220,7 +220,7 @@ #ifndef XEN PCPU_GET(fsgs_gdt)[1] = sd; #else - sd.sd_lolimit = 0x0; /* 4GB limit, wraps around */ + sd.sd_lolimit = 0xc3f0; /* 4GB limit, wraps around */ HYPERVISOR_update_descriptor(vtomach(&PCPU_GET(fsgs_gdt)[1]), *(uint64_t *)&sd); #endif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200602230549.k1N5nFlK024833>