From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Kiszka Subject: Re: [PATCH] kvm-kmod: Add MSR_K7_HWCR and MSR_K8_SYSCFG compat definition Date: Wed, 27 May 2009 12:05:40 +0200 Message-ID: <4A1D1074.9060503@web.de> References: <20090526115251.3362.54734.stgit@mchn012c.ww002.siemens.net> <4A1BE668.7090106@siemens.com> <4A1C58A5.1030700@web.de> <1243418126.3109.18.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigAFF666764130A8DC569C40F0" Cc: Avi Kivity , kvm@vger.kernel.org To: Jaswinder Singh Rajput Return-path: Received: from fmmailgate03.web.de ([217.72.192.234]:55220 "EHLO fmmailgate03.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756797AbZE0KFo (ORCPT ); Wed, 27 May 2009 06:05:44 -0400 In-Reply-To: <1243418126.3109.18.camel@localhost.localdomain> Sender: kvm-owner@vger.kernel.org List-ID: This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigAFF666764130A8DC569C40F0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Jaswinder Singh Rajput wrote: > Hello Jan, >=20 > On Tue, 2009-05-26 at 23:01 +0200, Jan Kiszka wrote: >> Reposted as joint patch as there is no MSR_K7 in your next queue. >> >> --------> >> >> Signed-off-by: Jan Kiszka >> --- >> >> x86/external-module-compat.h | 8 ++++++++ >> 1 files changed, 8 insertions(+), 0 deletions(-) >> >> diff --git a/x86/external-module-compat.h b/x86/external-module-compat= =2Eh >> index 445c7a1..0e26743 100644 >> --- a/x86/external-module-compat.h >> +++ b/x86/external-module-compat.h >> @@ -496,6 +496,14 @@ struct kvm_desc_ptr { >> #define MSR_IA32_TSC 0x00000010 >> #endif >> =20 >> +#ifndef MSR_K7_HWCR >> +#define MSR_K7_HWCR 0xc0010015 >> +#endif >> + >> +#ifndef MSR_K8_SYSCFG >> +#define MSR_K8_SYSCFG 0xc0010010 >> +#endif >> + >=20 > It will look more beautiful if we arrange MSR addresses in some order > (say increasing order) : >=20 > +#ifndef MSR_K8_SYSCFG > +#define MSR_K8_SYSCFG 0xc0010010 > +#endif > + > +#ifndef MSR_K7_HWCR > +#define MSR_K7_HWCR 0xc0010015 > +#endif > + Well, I just used a different sorting key: K7 vs. K8... Jan --------------enigAFF666764130A8DC569C40F0 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 iEYEARECAAYFAkodEHgACgkQniDOoMHTA+mYcgCfZlb3kmvJsFS9jH2Gqf6HyvFF Au8An3eJd8vWHbXqQpxL+dBncOkit+y0 =faWM -----END PGP SIGNATURE----- --------------enigAFF666764130A8DC569C40F0--