]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - arch/x86/kvm/svm.c
KVM: SVM: Fix reading of DR6
authorJan Kiszka <jan.kiszka@siemens.com>
Sat, 4 Jan 2014 17:47:16 +0000 (18:47 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 17 Jan 2014 09:22:10 +0000 (10:22 +0100)
commit73aaf249ee2287b4686ff079dcbdbbb658156e64
tree6b32cc40f12e7a91827b77e5648e7bcff1e4efd6
parent9926c9fdbdd54bb229fe6fdbd15ca3af2b8425ae
KVM: SVM: Fix reading of DR6

In contrast to VMX, SVM dose not automatically transfer DR6 into the
VCPU's arch.dr6. So if we face a DR6 read, we must consult a new vendor
hook to obtain the current value. And as SVM now picks the DR6 state
from its VMCB, we also need a set callback in order to write updates of
DR6 back.

Fixes a regression of 020df0794f.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/svm.c
arch/x86/kvm/vmx.c
arch/x86/kvm/x86.c