From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Egger Subject: [PATCH] x86,amd,microcode: fix hypercall return code Date: Mon, 22 Sep 2008 14:22:32 +0200 Message-ID: <200809221422.32502.Christoph.Egger@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary-00=_I441IOnP0evD1aO" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --Boundary-00=_I441IOnP0evD1aO Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, Attached patch makes the hypercall return failure if the microcode didn't apply. Signed-off-by: Christoph Egger =2D-=20 AMD Saxony, Dresden, Germany Operating System Research Center Legal Information: AMD Saxony Limited Liability Company & Co. KG Sitz (Gesch=E4ftsanschrift): Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland Registergericht Dresden: HRA 4896 vertretungsberechtigter Komplement=E4r: AMD Saxony LLC (Sitz Wilmington, Delaware, USA) Gesch=E4ftsf=FChrer der AMD Saxony LLC: Dr. Hans-R. Deppe, Thomas McCoy --Boundary-00=_I441IOnP0evD1aO Content-Type: text/x-diff; charset="us-ascii"; name="xen_microcode.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xen_microcode.diff" diff -r 2e8ad0c35792 xen/arch/x86/microcode_amd.c --- a/xen/arch/x86/microcode_amd.c Thu Sep 18 10:43:08 2008 +0100 +++ b/xen/arch/x86/microcode_amd.c Mon Sep 22 11:51:03 2008 +0200 @@ -338,8 +338,7 @@ static int cpu_request_microcode(int cpu */ if ( error == 1 ) { - apply_microcode(cpu); - error = 0; + error = apply_microcode(cpu); } xfree(mc); } --Boundary-00=_I441IOnP0evD1aO 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.xensource.com http://lists.xensource.com/xen-devel --Boundary-00=_I441IOnP0evD1aO--