Jan Beulich
2013-Apr-26 13:35 UTC
[PATCH] 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 <jbeulich@suse.com>
--- 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_ru
#ifndef COMPAT
op->status = status;
#else
- op->status = (status & 0x3fffffff) | (status >> 62);
+ op->status = (status & 0x3fffffff) | ((status >> 32) &
0xc0000000);
#endif
return rc;
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
Keir Fraser
2013-Apr-26 14:16 UTC
Re: [PATCH] x86/EFI: fix runtime call status for compat mode Dom0
On 26/04/2013 14:35, "Jan Beulich" <JBeulich@suse.com> wrote:> The top two bits (indicating error/warning classification) need to > remain the top two bits. > > Signed-off-by: Jan Beulich <jbeulich@suse.com>Acked-by: Keir Fraser <keir@xen.org>> --- 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_ru > #ifndef COMPAT > op->status = status; > #else > - op->status = (status & 0x3fffffff) | (status >> 62); > + op->status = (status & 0x3fffffff) | ((status >> 32) & 0xc0000000); > #endif > > return rc; > > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel