]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
KVM: x86: preserve x2APIC LDR on INIT
authorRadim Krčmář <rkrcmar@redhat.com>
Fri, 22 May 2015 17:22:10 +0000 (19:22 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 28 May 2015 08:43:36 +0000 (10:43 +0200)
commitc028dd6bb648251b773f900f59e53544278b3b3c
tree719aa8e5f1e8d6ef4545cfbed953da92c77ee461
parent257b9a5faab5849fa61f1a523b429dc279d33cc3
KVM: x86: preserve x2APIC LDR on INIT

Logical x2APIC stops working if we rewrite it with zeros.
The best references are SDM April 2015: 10.12.10.1 Logical Destination
Mode in x2APIC Mode

  [...], the LDR are initialized by hardware based on the value of
  x2APIC ID upon x2APIC state transitions.

and SDM April 2015: 10.12.10.2 Deriving Logical x2APIC ID from the Local
x2APIC ID

  The LDR initialization occurs whenever the x2APIC mode is enabled

Signed-off-by: Radim KrÄ\8dmář <rkrcmar@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/lapic.c