* 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
* Re: kvm-26 and Vista
[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 16:02 ` Avi Kivity
1 sibling, 1 reply; 8+ messages in thread
From: Nakajima, Jun @ 2007-06-03 14:56 UTC (permalink / raw)
To: Jorge Lucángeli Obes,
kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
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,
> 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
Just wondering, but why do you use -no-rtc?
Jun
---
Intel Open Source Technology Center
-------------------------------------------------------------------------
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
* Re: kvm-26 and Vista
[not found] ` <97D612E30E1F88419025B06CB4CF1BE10262DA08-1a9uaKK1+wJcIJlls4ac1rfspsVTdybXVpNB7YpNyf8@public.gmane.org>
@ 2007-06-03 15:10 ` Jorge Lucángeli Obes
0 siblings, 0 replies; 8+ messages in thread
From: Jorge Lucángeli Obes @ 2007-06-03 15:10 UTC (permalink / raw)
To: Nakajima, Jun, kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
On 6/3/07, Nakajima, Jun <jun.nakajima-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> 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,
> > 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
>
> Just wondering, but why do you use -no-rtc?
That's leftover from an old script. I needed '-no-rtc' because if not
my dmesg would choke with "Lost interrupt" messages. I've just tried
removing 'no-rtc' and it doesn't make any difference. However, I'm not
getting those messages anymore, so it's gone from the script as well.
Should it make any difference?
Thanks,
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
* Re: kvm-26 and Vista
[not found] ` <59abf66e0706021634k1435f66mbdb1bdda450b178a-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-06-03 14:56 ` Nakajima, Jun
@ 2007-06-03 16:02 ` Avi Kivity
[not found] ` <4662E604.7000905-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
1 sibling, 1 reply; 8+ messages in thread
From: Avi Kivity @ 2007-06-03 16:02 UTC (permalink / raw)
To: Jorge Lucángeli Obes; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
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.
--
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/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: kvm-26 and Vista
[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>
0 siblings, 1 reply; 8+ messages in thread
From: Jorge Lucángeli Obes @ 2007-06-03 16:24 UTC (permalink / raw)
To: Avi Kivity, kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
On 6/3/07, Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org> 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".
tamsyn@rory:~$ sudo qemu-system-x86_64 -localtime -no-reboot
stuff/qemu/vista.img -m 512
unhandled vm exit: 0x80000021
rax 0000000060000010 rbx 0000000000000001 rcx 0000000000000000 rdx
0000000000000080
rsi 000000000026b238 rdi 000000000008b238 rsp 0000000000000200 rbp
0000000000001f30
r8 0000000000000000 r9 0000000000000000 r10 0000000000000000 r11
0000000000000000
r12 0000000000000000 r13 0000000000000000 r14 0000000000000000 r15
0000000000000000
rip 000000000000009b rflags 00023002
cs b000 (002b0000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
ds 0020 (00000200/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
es 0020 (00000200/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
ss 0020 (00000200/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
fs 0020 (00000200/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
gs 0020 (00000200/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
tr 0000 (20850000/00002088 p 1 dpl 0 db 0 s 0 type b l 0 g 0 avl 0)
ldt 0000 (00000000/0000ffff p 1 dpl 0 db 0 s 0 type 2 l 0 g 0 avl 0)
gdt 2b0000/27
idt 0/3ff
cr0 60000010 cr2 0 cr3 0 cr4 0 cr8 0 efer 0
Aborted
Program received signal SIGABRT, Aborted.
[Switching to Thread 47468583090688 (LWP 8529)]
0x00002b2c232cecab in raise () from /lib/libc.so.6
(gdb) bt
#0 0x00002b2c232cecab in raise () from /lib/libc.so.6
#1 0x00002b2c232d0660 in abort () from /lib/libc.so.6
#2 0x00000000004de7bb in kvm_run (kvm=0x2922010, vcpu=0) at kvmctl.c:949
#3 0x000000000047e793 in kvm_cpu_exec (env=0x29c4330) at
/home/tamsyn/stuff/kvm/kvm-27/qemu/qemu-kvm.c:469
#4 0x000000000047fb2a in cpu_x86_exec (env1=0x2151) at
/home/tamsyn/stuff/kvm/kvm-27/qemu/cpu-exec.c:411
#5 0x000000000040c1ba in main_loop () at
/home/tamsyn/stuff/kvm/kvm-27/qemu/vl.c:6272
#6 0x000000000040db91 in main (argc=7699680, argv=0x29220f0) at
/home/tamsyn/stuff/kvm/kvm-27/qemu/vl.c:7730
Is there more debug information that I can produce? 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
* Re: kvm-26 and Vista
[not found] ` <59abf66e0706030924p37b38a9bh19c14fd13534ee3c-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2007-06-04 9:43 ` Avi Kivity
[not found] ` <4663DEB2.2060807-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
0 siblings, 1 reply; 8+ messages in thread
From: Avi Kivity @ 2007-06-04 9:43 UTC (permalink / raw)
To: Jorge Lucángeli Obes; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Jorge Lucángeli Obes wrote:
> On 6/3/07, Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org> 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".
>
> tamsyn@rory:~$ 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/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: kvm-26 and Vista
[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>
0 siblings, 1 reply; 8+ messages in thread
From: Jorge Lucángeli Obes @ 2007-06-04 14:58 UTC (permalink / raw)
To: Avi Kivity, kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
> >> 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".
> >
> > tamsyn@rory:~$ 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.
I'm puzzled too. I don't think I'm doing anything out of the ordinary
here. Windows XP and Windows 2003 Server have run fine.
My command line is:
sudo qemu-system-x86_64 -localtime -no-reboot stuff/qemu/vista.img -m 512
vista.img is a fresh install of Vista Ultimate 32 done under kvm-26.
The install finishes successfully, I create a user, and I get to the
first login screen. At that point, when I try to login, the system
shuts down. Any subsequent boots give the above errors. Is there any
more debug information I can produce? I'm going to try and pinpoint
the reason of the aforementioned shutdown.
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/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: kvm-26 and Vista
[not found] ` <59abf66e0706040758n5a16083er786acaeb50cb3326-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2007-06-05 2:01 ` Jorge Lucángeli Obes
0 siblings, 0 replies; 8+ messages in thread
From: Jorge Lucángeli Obes @ 2007-06-05 2:01 UTC (permalink / raw)
To: Avi Kivity, kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
On 6/4/07, Jorge Lucángeli Obes <t4m5yn-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> > >> 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".
> > >
> > > tamsyn@rory:~$ 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.
>
> I'm puzzled too. I don't think I'm doing anything out of the ordinary
> here. Windows XP and Windows 2003 Server have run fine.
Except for using a (not very legal) version of Vista that comes
patched to avoid it asking for some stuff. I'm extremely sorry for
grossing over that detail. A friend of mine just made me remember. I
kept thinking about *how* I installed instead of *what* I had
installed. That's surely what's been doing those strange reads and
jumps.
I obviously don't think that running a patched version of Vista should
be a big preocupation for kvm developers. Feel free to drop this now.
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/
^ 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