Fix hvm domain creation failure on ia64
PATCH 1/1 Fix hvm domain creation failure on ia64
In cset 16961, 16962, 16963, Direct Linux boot is supported. But it doesn't work on ia64. Moreover, it causes dom0 hangup.
tools/ioemu/hw/pc.c +9 -0
@@ -361,6 +361,7 @@ void bochs_bios_init(void)register_ioport_write (0x503 ,1 ,1 , bochs_bios_write,NULL ); } +#if defined(__i386__) || defined(__x86_64__)/* Generate an initial boot sector which sets state and jump to a specified vector */ static void generate_bootsect (uint32_t gpr[8 ],uint16_t segs[6 ],uint16_t ip)
@@ -718,6 +719,14 @@ static void load_linux(const char *kerne generate_bootsect(gpr, seg, 0); } +#else /* __ia64__ */ +static void load_linux (const char *kernel_filename, +const char *initrd_filename, +const char *kernel_cmdline) +{ +/* Direct Linux boot is unsupported. */ +} +#endif static void main_cpu_reset (void *opaque) {
_______________________________________________
Xen-ia64-devel mailing list
[email protected]
http://lists.xensource.com/xen-ia64-devel
Some observations:
1. If calling that function causes dom0 hangup, perhaps you have a serious
underlying issue that you need to address?
2. Why were you ending up in that function in the first place? Is xend
misdirecting you to execute the wrong path through qemu-dm?
-- Keir
Quoted 35 lines · Kouya Shimura
In cset 16961, 16962, 16963, Direct Linux boot is supported. But it doesn't work on ia64. Moreover, it causes dom0 hangup.
Signed-off-by Kouya Shimura <[email protected]>diff -r
0164d924cebatools/ioemu/hw/pc.ctools/ioemu/hw/pc.c Thu Feb 14 13:52:16 2008 +0900 renamed from tools/ioemu/hw/pc.c Wed Feb 13 10:43:13 2008 +0000 +9
-0@@ -361,6 +361,7 @@ void bochs_bios_init(void) register_ioport_write(0x503, 1, 1, bochs_bios_write, NULL); } +#if defined(__i386__) || defined(__x86_64__) /* Generate an initial boot sector which sets state and jump to a specified vector */ static void generate_bootsect(uint32_t gpr[8], uint16_t segs[6], uint16_t ip)@@ -718,6 +719,14 @@ static void load_linux(const char *kerne generate_bootsect(gpr, seg, 0); } +#else /* __ia64__ */ +static void load_linux(const char *kernel_filename, + const char *initrd_filename, + const char *kernel_cmdline) +{ + /* Direct Linux boot is unsupported. */ +} +#endif static void main_cpu_reset(void *opaque) {_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 3 lines · Keir Fraser
Some observations:
1. If calling that function causes dom0 hangup, perhaps you have a serious
underlying issue that you need to address?
Indeed. That function just stores data into a guest memory. Dom0 must not be affected by that.
Actually dom0 doesn't hang up but any new process can't be executed with segment fault. (old processes are still alive)
I can't figure out what's happening yet.
Quoted 2 lines
2. Why were you ending up in that function in the first place? Is xend
misdirecting you to execute the wrong path through qemu-dm?
Because direct Linux boot shall be supported on ia64 in the future. It might be impossible because ia64 platform requires EFI... but passing boot parameters is attractive.
Thanks,
Kouya
Quoted 6 lines · Kouya Shimura
Quoted 2 lines
2. Why were you ending up in that function in the first place? Is xend
misdirecting you to execute the wrong path through qemu-dm?Because direct Linux boot shall be supported on ia64 in the future. It might be impossible because ia64 platform requires EFI... but passing boot parameters is attractive.
Okay, I'll apply the patch.
-- Keir