# 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
|