]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: VMX: Do not fully reset PI descriptor on vCPU reset
authorJan H. Schönherr <jschoenh@amazon.de>
Wed, 25 Oct 2017 14:43:26 +0000 (16:43 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 2 Nov 2017 17:27:11 +0000 (18:27 +0100)
commit6577009e3abb04284b383c7f3b4c25969f97b351
tree5c0e2e0f193d2dadeeb6d576aad1341c36c9a065
parentc9b49b0eecd91117c4e22fe4fe11b7ab978a867b
KVM: VMX: Do not fully reset PI descriptor on vCPU reset

Parts of the posted interrupt descriptor configure host behavior,
such as the notification vector and destination. Overwriting them
with zero as done during vCPU reset breaks posted interrupts.
KVM (re-)writes these fields on certain occasions and belatedly fixes
the situation in many cases. However, if you have a guest configured
with "idle=poll", for example, the fields might stay zero forever.

Do not reset the full descriptor in vmx_vcpu_reset(). Instead,
reset only the outstanding notifications and leave everything
else untouched.

Signed-off-by: Jan H. Schönherr <jschoenh@amazon.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c