projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e984097
)
KVM: x86: Sync DR7 on KVM_SET_DEBUGREGS
author
Jan Kiszka
<jan.kiszka@siemens.com>
Sat, 4 Jan 2014 17:47:15 +0000
(18:47 +0100)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Fri, 17 Jan 2014 09:22:09 +0000
(10:22 +0100)
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>
arch/x86/kvm/x86.c
patch
|
blob
|
history
diff --git
a/arch/x86/kvm/x86.c
b/arch/x86/kvm/x86.c
index 0b3fd809a3c755f2e3d4c8606f1c6be3cbc06c8d..59907c9a9d05c7b3d1a6ed90a05b4992cc5e0db2 100644
(file)
--- 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;
}