File 18519-microcode-retval.patch of Package xen

# HG changeset patch
# User Keir Fraser <keir.fraser@citrix.com>
# 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@amd.com>

--- a/xen/arch/x86/microcode_amd.c
+++ b/xen/arch/x86/microcode_amd.c
@@ -335,10 +335,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 )
openSUSE Build Service is sponsored by