[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] x86/EFI: fix runtime call status for compat mode Dom0


  • To: "xen-devel" <xen-devel@xxxxxxxxxxxxx>
  • From: "Jan Beulich" <JBeulich@xxxxxxxx>
  • Date: Fri, 26 Apr 2013 14:35:03 +0100
  • Delivery-date: Fri, 26 Apr 2013 13:34:47 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>

The top two bits (indicating error/warning classification) need to
remain the top two bits.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>

--- 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: x86-EFI-runtime-call-compat-status.patch
Description: Text document

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.