From: Jan Beulich Date: Mon, 29 Apr 2013 09:27:54 +0000 (+0200) Subject: x86/EFI: fix runtime call status for compat mode Dom0 X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~6949 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a7ac9597a7fc6ca934957eb78b41e26638281953;p=xen.git x86/EFI: fix runtime call status for compat mode Dom0 The top two bits (indicating error/warning classification) need to remain the top two bits. Signed-off-by: Jan Beulich Acked-by: Keir Fraser --- diff --git a/xen/arch/x86/efi/runtime.c b/xen/arch/x86/efi/runtime.c index be3f5376b3..37bb535db7 100644 --- a/xen/arch/x86/efi/runtime.c +++ b/xen/arch/x86/efi/runtime.c @@ -531,7 +531,7 @@ int efi_runtime_call(struct xenpf_efi_runtime_call *op) #ifndef COMPAT op->status = status; #else - op->status = (status & 0x3fffffff) | (status >> 62); + op->status = (status & 0x3fffffff) | ((status >> 32) & 0xc0000000); #endif return rc;