> > Does the attached patch help?  It implements 0f 09, wbinvd.
>
> It actually did! I still cannot get to the login prompt, but there's
> no more Exception 13. Now I get:
>
> [EMAIL PROTECTED]:~$ sudo qemu-system-x86_64 -localtime -no-rtc -no-reboot
> -m 512 stuff/qemu/vista.img
> Bus error
>
> That's the same thing I get with kvm-25, which I found has the above
> patch applied (or something equivalent). I'm able to catch a glimpse
> of what I think is Vista's bootloader and then QEMU/KVM exits with the
> above error. It sounded like a QEMU error to me, but it doesn't happen
> when running with '-no-kvm'.
>
> I still don't get a login prompt when running plain QEMU (it stops
> halfway through the boot process - I've not looked deep into that),
> but nonetheless I get further than with QEMU/KVM. Any ideas?

I messed up earlier... kvm-25 _does_ need Avi's patch in order not to
show the exception. Nonetheless, I managed to find the operation
generating the "Bus error".

Program received signal SIGBUS, Bus error.
[Switching to Thread 47144860629504 (LWP 5096)]
ldl_phys (addr=4093) at ../cpu-all.h:322
322         return *(uint32_t *)ptr;
(gdb) bt
#0  ldl_phys (addr=4093) at ../cpu-all.h:322
#1  0x000000000047e99d in kvm_readl (opaque=0x9f, addr=159, data=0x2ae0f551b028)
    at /home/tamsyn/local/kvm-25/qemu/qemu-kvm.c:568
#2  0x00000000004de1a3 in handle_mmio (kvm=0x2922010,
kvm_run=0x2ae0f551b000) at kvmctl.c:768
#3  0x00000000004de890 in kvm_run (kvm=0x2922010, vcpu=0) at kvmctl.c:971
#4  0x000000000047e7c3 in kvm_cpu_exec (env=0x29c4330) at
/home/tamsyn/local/kvm-25/qemu/qemu-kvm.c:469
#5  0x000000000047fb4a in cpu_x86_exec (env1=0x9f) at
/home/tamsyn/local/kvm-25/qemu/cpu-exec.c:411
#6  0x000000000040c1ba in main_loop () at
/home/tamsyn/local/kvm-25/qemu/vl.c:6272
#7  0x000000000040db91 in main (argc=7699712, argv=0x29220f0) at
/home/tamsyn/local/kvm-25/qemu/vl.c:7730

That is:

320: static inline int ldl_le_p(void *ptr)
321: {
322:     return *(uint32_t *)ptr;
323: }

However, there's a comment in cpu-all.h that reads:

 *   le   : little endian (not implemented yet)

I find that odd... there's something not implemented that appears as a
function and gets called? Maybe the comment is deprecated. Any ideas?

Cheers,
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
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel

Reply via email to