KVM: LAPIC: Fix updating DFR missing apic map recalculation
authorWanpeng Li <wanpengli@tencent.com>
Wed, 19 Aug 2020 08:55:26 +0000 (16:55 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 28 Sep 2020 11:57:08 +0000 (07:57 -0400)
commitae6f24968608f71a51814d80ee8fcd38e799a0fd
treef704357811c447669c3d76f7771401dea0507d62
parent2fc4f15dac952b9bbc2695c9040f2c17be70dabb
KVM: LAPIC: Fix updating DFR missing apic map recalculation

There is missing apic map recalculation after updating DFR, if it is
INIT RESET, in x2apic mode, local apic is software enabled before.
This patch fix it by introducing the function kvm_apic_set_dfr() to
be called in INIT RESET handling path.

Signed-off-by: Wanpeng Li <wanpengli@tencent.com>
Message-Id: <1597827327-25055-1-git-send-email-wanpengli@tencent.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/lapic.c