]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commitdiff
x86/vmx: fix vmx_is_singlestep_supported return value
authorTamas K Lengyel <tlengyel@novetta.com>
Fri, 28 Aug 2015 10:17:05 +0000 (12:17 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 28 Aug 2015 10:17:05 +0000 (12:17 +0200)
The function supposed to return a boolean but instead it returned
the value 0x8000000 which is the Intel internal flag for MTF. This has
caused various checks using this function to falsely report no MTF
capability.

Signed-off-by: Tamas K Lengyel <tlengyel@novetta.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
xen/arch/x86/hvm/vmx/vmx.c

index 999defeaa389e18b90818c1877e3b5c8c75098a1..2582cddf6751ba00f8c19510d7f5cf50a9745839 100644 (file)
@@ -1768,7 +1768,7 @@ static void vmx_enable_msr_exit_interception(struct domain *d)
 
 static bool_t vmx_is_singlestep_supported(void)
 {
-    return cpu_has_monitor_trap_flag;
+    return !!cpu_has_monitor_trap_flag;
 }
 
 static void vmx_vcpu_update_eptp(struct vcpu *v)