KVM: x86: Update APICv on APIC reset
authorJan H. Schönherr <jschoenh@amazon.de>
Wed, 25 Oct 2017 14:43:27 +0000 (16:43 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 2 Nov 2017 17:28:13 +0000 (18:28 +0100)
commit4191db26b714e077e6faddd82d575ae4a8ae7d63
tree1c52d376e8fa871dd37d24a4264c9e68ae382c44
parenta4888486c5d755118a3c8a30416d7e0febdfb298
KVM: x86: Update APICv on APIC reset

In kvm_apic_set_state() we update the hardware virtualized APIC after
the full APIC state has been overwritten. Do the same, when the full
APIC state has been reset in kvm_lapic_reset().

This updates some hardware state that was previously forgotten, as
far as I can tell. Also, this allows removing some APIC-related reset
code from vmx_vcpu_reset().

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