From: Huang Ying Subject: Re: [PATCH] Add MCE support to KVM Date: Wed, 15 Apr 2009 15:24:57 +0800 Message-ID: <1239780297.20762.105.camel@yhuang-dev.sh.intel.com> References: <1239155601.6384.3.camel@yhuang-dev.sh.intel.com> <49DE195D.1020303@redhat.com> <1239332455.6384.108.camel@yhuang-dev.sh.intel.com> <49E08762.1010206@redhat.com> <1239590499.6384.4016.camel@yhuang-dev.sh.intel.com> <49E337D7.5050502@redhat.com> <1239674697.20762.34.camel@yhuang-dev.sh.intel.com> <49E4693B.4080707@redhat.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-XaFlvijvjdA18oQStiMt" Cc: "kvm@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Andi Kleen To: Avi Kivity Return-path: In-Reply-To: <49E4693B.4080707@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org --=-XaFlvijvjdA18oQStiMt Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Tue, 2009-04-14 at 18:45 +0800, Avi Kivity wrote: > Huang Ying wrote: > >> I'm okay with an ioctl to setup MCE, but just make sure userspace has=20 > >> all the information to know what the kernel can do rather than the=20 > >> try-and-see-if-it-works approach. We can publish this information via= =20 > >> KVM_CAP things, or via another ioctl (see KVM_GET_SUPPORTED_CPUID2 for= =20 > >> an example). > >> =20 > > > > Yes. MCE support should be published by KVM_CAP_MCE and other features > > can be published via reading the default value of MSR_IA32_MCG_CAP. > > =20 >=20 > A problem with this is that you can only read an MSR after a vcpu has=20 > been created. But if you're writing a program to detect what features=20 > are available (for example, when checking features common to a migration=20 > pool), you don't want to create a vpcu (you could, but it's hacky). Yes. You are right. I will change this as you said, something like KVM_GET_SUPPORTED_CPUID2. Best Regards, Huang Ying --=-XaFlvijvjdA18oQStiMt Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEABECAAYFAknli8cACgkQKhFGF+eHlpggdACfWLS/d5jrzZZmH9Lx5trQ8ii+ PmgAn0W4EVg0ABXZSYpv9IJI5jpT5PbW =lxnK -----END PGP SIGNATURE----- --=-XaFlvijvjdA18oQStiMt--