public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* kvm-26 and Vista
@ 2007-06-02 23:34 Jorge Lucángeli Obes
       [not found] ` <59abf66e0706021634k1435f66mbdb1bdda450b178a-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Jorge Lucángeli Obes @ 2007-06-02 23:34 UTC (permalink / raw)
  To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

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:

tamsyn@rory:~$ 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/

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-06-05  2:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-02 23:34 kvm-26 and Vista Jorge Lucángeli Obes
     [not found] ` <59abf66e0706021634k1435f66mbdb1bdda450b178a-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-06-03 14:56   ` Nakajima, Jun
     [not found]     ` <97D612E30E1F88419025B06CB4CF1BE10262DA08-1a9uaKK1+wJcIJlls4ac1rfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-06-03 15:10       ` Jorge Lucángeli Obes
2007-06-03 16:02   ` Avi Kivity
     [not found]     ` <4662E604.7000905-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-06-03 16:24       ` Jorge Lucángeli Obes
     [not found]         ` <59abf66e0706030924p37b38a9bh19c14fd13534ee3c-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-06-04  9:43           ` Avi Kivity
     [not found]             ` <4663DEB2.2060807-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-06-04 14:58               ` Jorge Lucángeli Obes
     [not found]                 ` <59abf66e0706040758n5a16083er786acaeb50cb3326-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-06-05  2:01                   ` Jorge Lucángeli Obes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox