Jorge Lucángeli Obes wrote:
> On 6/3/07, Avi Kivity <[EMAIL PROTECTED]> wrote:
>> Jorge Lucángeli Obes wrote:
>> > 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,
>> >
>>
>>
>> can you add a line here (kvm_readl)
>>
>>     if (addr > 0x9fffc && addr < 0xa0000) return 0;
>>
>> ?
>>
>> the problem is not the misalignment, it's reading from the vga address
>> range at 0xa0000 which is not memory mapped.
>>
>> I'm at a loss to explain why this doesn't happen here.
>
> I'm now using kvm-27. This is the new 'kvm_readl':
>
> static int kvm_readl(void *opaque, uint64_t addr, uint32_t *data)
> {
>    if (addr > 0x9fffc && addr < 0xa0000) return 0;
>
>    *data = ldl_phys(addr);
>    return 0;
> }
>
> There's no more "Bus error", as expected, but I'm getting an
> "Unhandled VM exit".
>
> [EMAIL PROTECTED]:~$ sudo qemu-system-x86_64 -localtime -no-reboot
> stuff/qemu/vista.img -m 512
> unhandled vm exit:  0x80000021

> cs b000 (002b0000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)

This is the problem.  cs b000 should have a base of b0000 instead of 
2b0000.  Of course cs = b0000 is broken anyway (running code in video 
memory).

I don't know why it is behaving differently from what I see.  Is this an 
existing install or a new one?  Please post your command line.

-- 
error compiling committee.c: too many arguments to function


-------------------------------------------------------------------------
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

Reply via email to