[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] x86, amd, microcode: fix hypercall return code



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1222087267 -3600
# Node ID 3c42b5ad0a4f607749426f82ecf11f75d84699c5
# Parent  e61c7833dc9d87eb7fb41f47d2377370aa9a0b46
x86,amd,microcode: fix hypercall return code

Make the hypercall return failure if the microcode didn't apply.

Signed-off-by: Christoph Egger <Christoph.Egger@xxxxxxx>
---
 xen/arch/x86/microcode_amd.c |    5 +----
 1 files changed, 1 insertion(+), 4 deletions(-)

diff -r e61c7833dc9d -r 3c42b5ad0a4f xen/arch/x86/microcode_amd.c
--- a/xen/arch/x86/microcode_amd.c      Mon Sep 22 11:24:02 2008 +0100
+++ b/xen/arch/x86/microcode_amd.c      Mon Sep 22 13:41:07 2008 +0100
@@ -337,10 +337,7 @@ static int cpu_request_microcode(int cpu
          * lets keep searching till the latest version
          */
         if ( error == 1 )
-        {
-            apply_microcode(cpu);
-            error = 0;
-        }
+            error = apply_microcode(cpu);
         xfree(mc);
     }
     if ( offset > 0 )

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.