ia64/xen-unstable

changeset 18522:3c42b5ad0a4f

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>
author Keir Fraser <keir.fraser@citrix.com>
date Mon Sep 22 13:41:07 2008 +0100 (2008-09-22)
parents e61c7833dc9d
children 7f1a36b834e1
files xen/arch/x86/microcode_amd.c
line diff
     1.1 --- a/xen/arch/x86/microcode_amd.c	Mon Sep 22 11:24:02 2008 +0100
     1.2 +++ b/xen/arch/x86/microcode_amd.c	Mon Sep 22 13:41:07 2008 +0100
     1.3 @@ -337,10 +337,7 @@ static int cpu_request_microcode(int cpu
     1.4           * lets keep searching till the latest version
     1.5           */
     1.6          if ( error == 1 )
     1.7 -        {
     1.8 -            apply_microcode(cpu);
     1.9 -            error = 0;
    1.10 -        }
    1.11 +            error = apply_microcode(cpu);
    1.12          xfree(mc);
    1.13      }
    1.14      if ( offset > 0 )