summaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2014-01-04 18:47:15 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2014-01-17 10:22:09 +0100
commit9926c9fdbdd54bb229fe6fdbd15ca3af2b8425ae (patch)
tree77292ce4d04ab4b253186d388ff8567cf7ecad9e /arch/x86
parente984097b553ed2d6551c805223e4057421370f00 (diff)
downloadblackbird-op-linux-9926c9fdbdd54bb229fe6fdbd15ca3af2b8425ae.tar.gz
blackbird-op-linux-9926c9fdbdd54bb229fe6fdbd15ca3af2b8425ae.zip
KVM: x86: Sync DR7 on KVM_SET_DEBUGREGS
Whenever we change arch.dr7, we also have to call kvm_update_dr7. In case guest debugging is off, this will synchronize the new state into hardware. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/kvm/x86.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index 0b3fd809a3c7..59907c9a9d05 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -2976,6 +2976,7 @@ static int kvm_vcpu_ioctl_x86_set_debugregs(struct kvm_vcpu *vcpu,
memcpy(vcpu->arch.db, dbgregs->db, sizeof(vcpu->arch.db));
vcpu->arch.dr6 = dbgregs->dr6;
vcpu->arch.dr7 = dbgregs->dr7;
+ kvm_update_dr7(vcpu);
return 0;
}
OpenPOWER on IntegriCloud