From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Kiszka Subject: Re: BUG with Win7 and user-return-notifier Date: Wed, 28 Oct 2009 20:55:48 +0100 Message-ID: <4AE8A1C4.4030906@web.de> References: <4AE6ED18.9040901@siemens.com> <4AE6F17C.1070403@redhat.com> <4AE6F1EE.5090207@siemens.com> <4AE6F4A3.3050903@redhat.com> <4AE6F4C4.3000802@redhat.com> <4AE7FE3B.2070802@redhat.com> <4AE84EB4.1010603@siemens.com> <4AE86AA0.1060802@redhat.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigB21F6F5031783F46D8A53C11" Cc: kvm To: Avi Kivity Return-path: Received: from fmmailgate03.web.de ([217.72.192.234]:37666 "EHLO fmmailgate03.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753610AbZJ1Tz7 (ORCPT ); Wed, 28 Oct 2009 15:55:59 -0400 In-Reply-To: <4AE86AA0.1060802@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigB21F6F5031783F46D8A53C11 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Avi Kivity wrote: > On 10/28/2009 04:01 PM, Jan Kiszka wrote: >> Avi Kivity wrote: >> =20 >>> On 10/27/2009 03:25 PM, Avi Kivity wrote: >>> =20 >>>> On 10/27/2009 03:24 PM, Avi Kivity wrote: >>>> =20 >>>>> Worked for me - getting to the initial prompt. Do you have >>>>> >>>>> CONFIG_USER_RETURN_NOTIFIER=3Dy >>>>> >>>>> in your .config? >>>>> >>>>> =20 >>>> If you do, send your own .config, will try to reproduce. >>>> >>>> =20 >>> As I can't reproduce it, can you send a trace of what's going on? >>> >>> The kvm:kvm_msr and kvm:kvm_cr events should suffice to understand >>> what's going on. Please enlarge your buffer size (buffer_size_kb) so= we >>> don't drop events. >>> >>> =20 >> Find such a trace attached. I hope I caught all important events (ther= e >> were tons of identical kvm_cr events before them which I cut off). >> =20 >=20 > [you can get longer, more detailed traces by using > /sys/kernel/debug/tracing/trace instead of dmesg] >=20 > Oct 28 14:29:56 mchn012c kernel: qemu-sys-7200 0...1. 676996395us : > kvm_msr: msr_read c0000080 =3D 0x500 > Oct 28 14:29:56 mchn012c kernel: qemu-sys-7200 0...1. 676996403us : > kvm_msr: msr_write c0000080 =3D 0xd01 >=20 > So Windows is setting EFER.SCE and EFER.NX while in long mode - > perfectly reasonable. Can you rerun with the attached debug patch? >=20 Currently building, expect results soon. But while we are at it: >=20 > diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c > index 85f97d1..6bd6d2c 100644 > --- a/arch/x86/kvm/vmx.c > +++ b/arch/x86/kvm/vmx.c =2E.. > @@ -928,8 +931,11 @@ static void setup_msrs(struct vcpu_vmx *vmx) > } > #endif > vmx->msr_offset_efer =3D index =3D __find_msr_index(vmx, MSR_EFER); > - if (index >=3D 0 && update_transition_efer(vmx)) > + if (index >=3D 0 && update_transition_efer(vmx)) { > + printk("%s: marking efer for reload\n", __func__); > move_msr_up(vmx, index, save_nmsrs++); The last line breaks x86-32 builds. Jan --------------enigB21F6F5031783F46D8A53C11 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.9 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iEYEARECAAYFAkroodIACgkQitSsb3rl5xQDewCePhbPZSAkQWx9d4hqefzfglzu lvUAoMuszaSAs85Zo1dGtJWX8bmdqD/x =13Gk -----END PGP SIGNATURE----- --------------enigB21F6F5031783F46D8A53C11--