]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
KVM: nSVM: restore clobbered INT_CTL fields after clearing VINTR
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 22 May 2020 11:38:20 +0000 (07:38 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 1 Jun 2020 08:26:00 +0000 (04:26 -0400)
commitd8e4e58f4bd4bb55d2640a841c3606333930f0e1
tree614567b8fb5ca0dfcb2e3cd07bed858d1b9cc1b2
parente670bf68f4b701506d51f007917ab633894294d0
KVM: nSVM: restore clobbered INT_CTL fields after clearing VINTR

Restore the INT_CTL value from the guest's VMCB once we've stopped using
it, so that virtual interrupts can be injected as requested by L1.
V_TPR is up-to-date however, and it can change if the guest writes to CR8,
so keep it.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/svm.c