All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86/vmx: fix vmx_is_singlestep_supported return value
@ 2015-08-24 19:55 Tamas K Lengyel
  2015-08-24 22:55 ` Andrew Cooper
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Tamas K Lengyel @ 2015-08-24 19:55 UTC (permalink / raw)
  To: xen-devel
  Cc: kevin.tian, Tamas K Lengyel, keir, jun.nakajima, andrew.cooper3,
	eddie.dong, jbeulich, Tamas K Lengyel, wei.liu2

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>
---
 xen/arch/x86/hvm/vmx/vmx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xen/arch/x86/hvm/vmx/vmx.c b/xen/arch/x86/hvm/vmx/vmx.c
index 999defe..35bcd79 100644
--- a/xen/arch/x86/hvm/vmx/vmx.c
+++ b/xen/arch/x86/hvm/vmx/vmx.c
@@ -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 ? 1 : 0;
 }
 
 static void vmx_vcpu_update_eptp(struct vcpu *v)
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-08-28  7:05 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-24 19:55 [PATCH] x86/vmx: fix vmx_is_singlestep_supported return value Tamas K Lengyel
2015-08-24 22:55 ` Andrew Cooper
2015-08-24 23:51   ` Tamas K Lengyel
2015-08-25  7:58     ` Jan Beulich
2015-08-27  7:39       ` Wei Liu
2015-08-28  2:01       ` Tian, Kevin
2015-08-28  7:05         ` Jan Beulich
2015-08-25  8:09 ` Wei Liu
2015-08-28  1:59 ` Tian, Kevin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.