From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: kvm-26 and Vista Date: Mon, 04 Jun 2007 12:43:14 +0300 Message-ID: <4663DEB2.2060807@qumranet.com> References: <59abf66e0706021634k1435f66mbdb1bdda450b178a@mail.gmail.com> <4662E604.7000905@qumranet.com> <59abf66e0706030924p37b38a9bh19c14fd13534ee3c@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org To: =?ISO-8859-1?Q?Jorge_Luc=E1ngeli_Obes?= Return-path: In-Reply-To: <59abf66e0706030924p37b38a9bh19c14fd13534ee3c-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org Jorge Luc=E1ngeli Obes wrote: > On 6/3/07, Avi Kivity wrote: >> Jorge Luc=E1ngeli 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=3D47681685016573) at ../cpu-all.h:322 >> > 322 return *(uint32_t *)ptr; >> > (gdb) bt >> > #0 ldl_phys (addr=3D47681685016573) at ../cpu-all.h:322 >> > #1 0x000000000047e9dd in kvm_readl (opaque=3D0x7fffeaf13670, >> > >> >> >> 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 =3D 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 =3D 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/