mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
x86/vmx: fix vmx_is_singlestep_supported return value
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>
This commit is contained in:
1 parent
6a05af2459
commit
340ade2f0e
1 file changed
+1
-1
@@ -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)
|
||||
|
||||