aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm
diff options
context:
space:
mode:
authorNadav Amit <namit@cs.technion.ac.il>2014-05-19 02:50:50 -0400
committerPaolo Bonzini <pbonzini@redhat.com>2014-05-22 11:47:18 -0400
commit1f854112553a1d65363ab27d4ee3dfb4b27075fb (patch)
tree3759f4942c9482ac310810b18c10780ce434fd22 /arch/x86/kvm
parent65a7f03f6b534916e279e403dff41e1015dd0dce (diff)
KVM: vmx: DR7 masking on task switch emulation is wrong
The DR7 masking which is done on task switch emulation should be in hex format (clearing the local breakpoints enable bits 0,2,4 and 6). Signed-off-by: Nadav Amit <namit@cs.technion.ac.il> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm')
-rw-r--r--arch/x86/kvm/vmx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
index a267108403f5..248287cefa7a 100644
--- a/arch/x86/kvm/vmx.c
+++ b/arch/x86/kvm/vmx.c
@@ -5401,7 +5401,7 @@ static int handle_task_switch(struct kvm_vcpu *vcpu)
5401 } 5401 }
5402 5402
5403 /* clear all local breakpoint enable flags */ 5403 /* clear all local breakpoint enable flags */
5404 vmcs_writel(GUEST_DR7, vmcs_readl(GUEST_DR7) & ~55); 5404 vmcs_writel(GUEST_DR7, vmcs_readl(GUEST_DR7) & ~0x55);
5405 5405
5406 /* 5406 /*
5407 * TODO: What about debug traps on tss switch? 5407 * TODO: What about debug traps on tss switch?