[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] Re: [PATCH][RFC] Emulating real mode with x86_emulate
Hi Anthony, I tried your patch at my end with snapshot of xen-unstable on 20070326. And here are my findings. - The --emulate-16bit option for qemu did not work. qemu is not accepting this as an valid command line option. - I tried hardcoding this to 1 in the qemu code, and found that the port x595 is not reflecting it correctly to hvmloader. - Then I tried forcing in the hvmloader to use the emulator instead of vmxassit, and I see the the emulator is not getting the right context. Following is the console log at this point. (XEN) HVM3: HVM Loader (XEN) HVM3: Detected Xen v3.0-unstable (XEN) HVM3: Writing SMBIOS tables ... (XEN) HVM3: Loading ROMBIOS ... (XEN) irq.c:210: Dom3 PCI link 0 changed 0 -> 5 (XEN) HVM3: PCI-ISA link 0 routed to IRQ5 (XEN) irq.c:210: Dom3 PCI link 1 changed 0 -> 7 (XEN) HVM3: PCI-ISA link 1 routed to IRQ7 (XEN) irq.c:210: Dom3 PCI link 2 changed 0 -> 10 (XEN) HVM3: PCI-ISA link 2 routed to IRQ10 (XEN) irq.c:210: Dom3 PCI link 3 changed 0 -> 11 (XEN) HVM3: PCI-ISA link 3 routed to IRQ11 (XEN) HVM3: pci dev 01:1 bar 20 size 00000010: 0000c001 (XEN) HVM3: pci dev 01:2 INTA->IRQ7 (XEN) HVM3: pci dev 02:0 bar 10 size 02000000: f0000008 (XEN) HVM3: pci dev 02:0 bar 14 size 00001000: f2000000 (XEN) HVM3: pci dev 03:0 bar 10 size 00000100: 0000c101 (XEN) HVM3: pci dev 03:0 bar 14 size 01000000: f3000008 (XEN) HVM3: pci dev 03:0 INTA->IRQ11 (XEN) HVM3: pci dev 04:0 bar 10 size 00000100: 0000c201 (XEN) HVM3: pci dev 04:0 bar 14 size 00000100: f4000000 (XEN) HVM3: pci dev 04:0 INTA->IRQ5 (XEN) HVM3: Creating MP tables ... (XEN) HVM3: Loading Cirrus VGABIOS ... (XEN) HVM3: Loading ACPI ... (XEN) HVM3: Not Loading VMXAssist ... ffffffff (XEN) HVM3: foo (XEN) hvmop_emulate_realmode (XEN) guest requests real mode emulation (XEN) foo 221 (XEN) HVM3: Invoking ROMBIOS ... (XEN) Transfering control to x86_emulate %eip 0x0 (XEN) hvm.c:446:d3 Triple fault on VCPU0 - invoking HVM system reset. The log shows that emulator is not getting the right cpu context. How much of testing have you done with this code? I am not able to proceed to emulation of 1 instruction with the patch. How many instruction could you emulate with the patch?
Howdy, Attachment:
signature.asc _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |