Hi everyone. I'm again trying to get 32-bit Vista Ultimate to run as a
guest on my 64-bit Core 2 Duo T5600. I'm using Xubuntu Feisty with a
custom 2.6.20.3 kernel and kvm-26. Avi's WBINVD patch in kvm-26 got
Vista not to generate real-mode errors anymore. However, I still
cannot get to boot it correctly. Now I get a "Bus error". Something,
somewhere, is making unaligned reads:
Program received signal SIGBUS, Bus error.
[Switching to Thread 47681682213376 (LWP 6570)]
ldl_phys (addr=47681685016573) at ../cpu-all.h:322
322 return *(uint32_t *)ptr;
(gdb) bt
#0 ldl_phys (addr=47681685016573) at ../cpu-all.h:322
#1 0x000000000047e9dd in kvm_readl (opaque=0x7fffeaf13670,
addr=140737135064688, data=0x2b5de2610028)
at /home/tamsyn/stuff/kvm/kvm-26/qemu/qemu-kvm.c:568
#2 0x00000000004de1e3 in handle_mmio (kvm=0x2922010,
kvm_run=0x2b5de2610000) at kvmctl.c:768
#3 0x00000000004de8d0 in kvm_run (kvm=0x2922010, vcpu=0) at kvmctl.c:971
#4 0x000000000047e803 in kvm_cpu_exec (env=0x29c4330) at
/home/tamsyn/stuff/kvm/kvm-26/qemu/qemu-kvm.c:469
#5 0x000000000047fb8a in cpu_x86_exec (env1=0x7fffeaf13670) at
/home/tamsyn/stuff/kvm/kvm-26/qemu/cpu-exec.c:411
#6 0x000000000040c1ba in main_loop () at
/home/tamsyn/stuff/kvm/kvm-26/qemu/vl.c:6272
#7 0x000000000040db91 in main (argc=7699872, argv=0x29220f0) at
/home/tamsyn/stuff/kvm/kvm-26/qemu/vl.c:7730
Seeing that, I added a few printf's in ldl_phys, so then I got:
[EMAIL PROTECTED]:~$ sudo qemu-system-x86_64 -localtime -no-rtc -no-reboot
stuff/qemu/vista.img -m 512 -S -s
Received addr == 0xFEE000F0
Received addr == 0x9FFFD
Passing ptr == 0xC1E5CFFD to ldl_p
Bus error
According to the comments in the code, both ldl_phys and ldl_p expect
aligned addresses. 'ldl_p' loads longs, hence the last 'l'. Clearly,
0x9FFFD is not 4-byte aligned, nor is 'ptr' when it's passed to ldl_p.
After this I tried adding some logic to divide the unaligned read into
two aligned ones, but I started getting "UNHANDLED_VM_EXIT". However,
I kept thinking that those unaligned reads shouldn't be there
anyways. Any clues? Thanks in advance.
Jorge
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
kvm-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel