WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] [HVM][VMX] Fix error-detection inline asm

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [HVM][VMX] Fix error-detection inline asm code. Zero word-sized
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 12 Jun 2006 12:20:20 +0000
Delivery-date: Mon, 12 Jun 2006 05:22:09 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 34ff26fb2240b836057de452abdd740e8122a584
# Parent  9d717a4f3531b1442041ca0b40e2334ca5e4aa79
[HVM][VMX] Fix error-detection inline asm code. Zero word-sized
register before executing SETNA instruction which updates bottom
byte.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
---
 xen/include/asm-x86/hvm/vmx/vmx.h |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff -r 9d717a4f3531 -r 34ff26fb2240 xen/include/asm-x86/hvm/vmx/vmx.h
--- a/xen/include/asm-x86/hvm/vmx/vmx.h Mon Jun 12 10:09:44 2006 +0100
+++ b/xen/include/asm-x86/hvm/vmx/vmx.h Mon Jun 12 12:01:32 2006 +0100
@@ -243,7 +243,7 @@ static always_inline int ___vmread(
                            /* CF==1 or ZF==1 --> rc = -1 */
                            "setna %b0 ; neg %0"
                            : "=q" (rc), "=c" (ecx)
-                           : "a" (field)
+                           : "0" (0), "a" (field)
                            : "memory");
 
     switch (size) {
@@ -314,7 +314,7 @@ static inline int __vmwrite (unsigned lo
                            /* CF==1 or ZF==1 --> rc = -1 */
                            "setna %b0 ; neg %0"
                            : "=q" (rc)
-                           : "a" (field) , "c" (value)
+                           : "0" (0), "a" (field) , "c" (value)
                            : "memory");
 
     switch(field) {
@@ -367,7 +367,7 @@ static inline int __vmxon (u64 addr)
                            /* CF==1 or ZF==1 --> rc = -1 */
                            "setna %b0 ; neg %0"
                            : "=q" (rc)
-                           : "a" (&addr) 
+                           : "0" (0), "a" (&addr) 
                            : "memory");
 
     return rc;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [HVM][VMX] Fix error-detection inline asm code. Zero word-sized, Xen patchbot-unstable <=