From: "Jan Beulich" Subject: [PATCH 3/3] x86: don't open-code cpuid_count() in pv_cpuid() Date: Mon, 19 Jan 2015 15:28:22 +0000 Message-ID: <54BD30A60200007800056875@mail.emea.novell.com> References: <54BD2F2B0200007800056859@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part2510C186.1__=" Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YDEFf-00055v-OI for xen-devel@lists.xenproject.org; Mon, 19 Jan 2015 15:28:27 +0000 In-Reply-To: <54BD2F2B0200007800056859@mail.emea.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel Cc: Andrew Cooper , Keir Fraser List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__Part2510C186.1__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Signed-off-by: Jan Beulich --- a/xen/arch/x86/traps.c +++ b/xen/arch/x86/traps.c @@ -861,10 +861,7 @@ void pv_cpuid(struct cpu_user_regs *regs goto out; } =20 - asm (=20 - "cpuid" - : "=3Da" (a), "=3Db" (b), "=3Dc" (c), "=3Dd" (d) - : "0" (a), "1" (b), "2" (c), "3" (d) ); + cpuid_count(a, c, &a, &b, &c, &d); =20 if ( (regs->eax & 0x7fffffff) =3D=3D 0x00000001 ) { --=__Part2510C186.1__= Content-Type: text/plain; name="x86-pv-cpuid-use-helper.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="x86-pv-cpuid-use-helper.patch" x86: don't open-code cpuid_count() in pv_cpuid()=0A=0ASigned-off-by: Jan = Beulich =0A=0A--- a/xen/arch/x86/traps.c=0A+++ = b/xen/arch/x86/traps.c=0A@@ -861,10 +861,7 @@ void pv_cpuid(struct = cpu_user_regs *regs=0A goto out;=0A }=0A =0A- asm ( =0A- = "cpuid"=0A- : "=3Da" (a), "=3Db" (b), "=3Dc" (c), "=3Dd" = (d)=0A- : "0" (a), "1" (b), "2" (c), "3" (d) );=0A+ cpuid_count(a= , c, &a, &b, &c, &d);=0A =0A if ( (regs->eax & 0x7fffffff) =3D=3D = 0x00000001 )=0A {=0A --=__Part2510C186.1__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --=__Part2510C186.1__=--