* [PATCH] x86/EFI: fix runtime call status for compat mode Dom0
@ 2013-04-26 13:35 Jan Beulich
2013-04-26 14:16 ` Keir Fraser
0 siblings, 1 reply; 2+ messages in thread
From: Jan Beulich @ 2013-04-26 13:35 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1: Type: text/plain, Size: 496 bytes --]
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;
[-- Attachment #2: x86-EFI-runtime-call-compat-status.patch --]
[-- Type: text/plain, Size: 547 bytes --]
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;
[-- Attachment #3: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] x86/EFI: fix runtime call status for compat mode Dom0
2013-04-26 13:35 [PATCH] x86/EFI: fix runtime call status for compat mode Dom0 Jan Beulich
@ 2013-04-26 14:16 ` Keir Fraser
0 siblings, 0 replies; 2+ messages in thread
From: Keir Fraser @ 2013-04-26 14:16 UTC (permalink / raw)
To: Jan Beulich, xen-devel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-04-26 14:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-26 13:35 [PATCH] x86/EFI: fix runtime call status for compat mode Dom0 Jan Beulich
2013-04-26 14:16 ` Keir Fraser
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.