From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Kiszka Subject: Re: [qemu-devel] Bug Report: VM crashed for some kinds of vCPU in nested virtualization Date: Tue, 16 Apr 2013 12:29:12 +0200 Message-ID: <516D27F8.8010707@web.de> References: <516BAF96.1010402@web.de> <516CF7AB.9090107@web.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="----enig2CPCSCRNNQFJGDWPOJGVU" Cc: qemu-devel@nongnu.org, kvm To: =?UTF-8?B?IuadjuaYpeWlhyA8QXJ0aHVyIENodW5xaSBMaT4i?= Return-path: Received: from mout.web.de ([212.227.17.11]:60824 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755152Ab3DPK3U (ORCPT ); Tue, 16 Apr 2013 06:29:20 -0400 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2CPCSCRNNQFJGDWPOJGVU Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 2013-04-16 12:19, =E6=9D=8E=E6=98=A5=E5=A5=87 wrote= : > I looked up Intel manual for VM instruction error. Error number 7 means= "VM > entry with invalid control field(s)", which means in process of VM > switching some control fields are not properly configured. >=20 > I wonder why some emulated CPUs (e.g.Nehalem) can run properly without > nested VMCS MSR support? MSRs are only switched between host (L0) and guest (L1/L2) if their value differ. That saves some cycles. Therefore, if either the guest is not using a specific MSR (due to differences in the virtual CPU feature set) or it is using it in the same way like the host, there is no switching, thus no risk to hit this unimplemented feature. Jan ------enig2CPCSCRNNQFJGDWPOJGVU 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 Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlFtJ/gACgkQitSsb3rl5xQXGACfQrzS955ngKyYvECSTZWj8nrT qoIAniX6PDyBSR1ynTFUWwwrYn9xD0R1 =lH88 -----END PGP SIGNATURE----- ------enig2CPCSCRNNQFJGDWPOJGVU--