From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:47162) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKubB-0002cl-Gz for qemu-devel@nongnu.org; Sun, 07 Oct 2012 13:25:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TKubA-0003ec-9B for qemu-devel@nongnu.org; Sun, 07 Oct 2012 13:25:05 -0400 Received: from mout.web.de ([212.227.15.4]:49689) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKubA-0003ZB-0J for qemu-devel@nongnu.org; Sun, 07 Oct 2012 13:25:04 -0400 Message-ID: <5071BAE5.1060003@web.de> Date: Sun, 07 Oct 2012 19:24:53 +0200 From: Jan Kiszka MIME-Version: 1.0 References: In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig11B980AC46A001B31D82D14E" Subject: Re: [Qemu-devel] Win2k broken by kvmvapic List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: Avi Kivity , qemu-devel This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig11B980AC46A001B31D82D14E Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 2012-10-07 17:23, Blue Swirl wrote: > Hi, >=20 > Win2k does not work in HEAD, it resets the machine. I bisected this to > 0b57e287138728f72d88b06e69b970c5d745c44a, but that does not look so > buggy. >=20 > Digging deeper, the problem is introduced by kvmvapic: > Breakpoint 1, cpu_physical_memory_write_rom (addr=3D0xca300, > buf=3D0x7fffec66b500 "", len=3D0x5) at /src/qemu/exec.c:3536 > 3536 invalidate_and_set_dirty(addr1, l); > (gdb) bt > #0 cpu_physical_memory_write_rom (addr=3D0xca300, buf=3D0x7fffec66b500= "", > len=3D0x5) at /src/qemu/exec.c:3536 > #1 0x0000000000644089 in apic_sync_vapic (s=3D0x1a6ba60, sync_type=3D0= x2) > at /src/qemu/hw/i386/../apic.c:132 >=20 > It looks like vapic is enabled even with KVM disabled Which is intentional. The VAPIC is provided in a KVM-independent way to the guest. Used to work fine with XP, but I never had my finger on a 2k version. > and this causes > chaos. With -global apic.vapic=3Dfalse Win2k works. And that means we have a bug somewhere. Can you specify the chaos you see in more details? Does your Win2k boot with KVM (and kvmvapic)? Jan --------------enig11B980AC46A001B31D82D14E Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ iEYEARECAAYFAlBxuugACgkQitSsb3rl5xTMNQCg7+XJYXAojBLBWgIRHikz69PS H8kAnjY/5KlH4Dzc/PXTVPnGnY5XZ6iD =fc0y -----END PGP SIGNATURE----- --------------enig11B980AC46A001B31D82D14E--