• Radim Krčmář's avatar
    KVM: x86: preserve x2APIC LDR on INIT · c028dd6b
    Radim Krčmář authored
    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čmáŠ<rkrcmar@redhat.com>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    c028dd6b
lapic.c 51.1 KB