xen/qemu-security-etch1.diff

39 lines
1.3 KiB
Diff
Raw Normal View History

Index: xen-4.0.2-testing/tools/ioemu-qemu-xen/hw/ne2000.c
===================================================================
--- xen-4.0.2-testing.orig/tools/ioemu-qemu-xen/hw/ne2000.c
+++ xen-4.0.2-testing/tools/ioemu-qemu-xen/hw/ne2000.c
@@ -218,7 +218,7 @@ static int ne2000_can_receive(void *opaq
NE2000State *s = opaque;
if (s->cmd & E8390_STOP)
- return 1;
+ return 0;
return !ne2000_buffer_full(s);
}
Index: xen-4.0.2-testing/tools/ioemu-qemu-xen/hw/pc.c
===================================================================
--- xen-4.0.2-testing.orig/tools/ioemu-qemu-xen/hw/pc.c
+++ xen-4.0.2-testing/tools/ioemu-qemu-xen/hw/pc.c
@@ -409,7 +409,8 @@ static void bochs_bios_write(void *opaqu
case 0x400:
case 0x401:
fprintf(stderr, "BIOS panic at rombios.c, line %d\n", val);
- exit(1);
+ /* according to documentation, these can be safely ignored */
+ break;
case 0x402:
case 0x403:
#ifdef DEBUG_BIOS
@@ -432,8 +433,9 @@ static void bochs_bios_write(void *opaqu
/* LGPL'ed VGA BIOS messages */
case 0x501:
case 0x502:
+ /* according to documentation, these can be safely ignored */
fprintf(stderr, "VGA BIOS panic, line %d\n", val);
- exit(1);
+ break;
case 0x500:
case 0x503:
#ifdef DEBUG_BIOS