KVM: x86: Add support for vICR APIC-write VM-Exits in x2APIC mode
authorZeng Guang <guang.zeng@intel.com>
Tue, 19 Apr 2022 15:35:16 +0000 (23:35 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Jun 2022 08:47:23 +0000 (04:47 -0400)
commit5413bcba7ed57206178d60ee03dd5bb3a460e645
tree1ec92e8a1ce1745f06014d4b7aa3083999878060
parent0b85baa5f46de1c6ad6e4b987905df041f2f80f0
KVM: x86: Add support for vICR APIC-write VM-Exits in x2APIC mode

Upcoming Intel CPUs will support virtual x2APIC MSR writes to the vICR,
i.e. will trap and generate an APIC-write VM-Exit instead of intercepting
the WRMSR.  Add support for handling "nodecode" x2APIC writes, which
were previously impossible.

Note, x2APIC MSR writes are 64 bits wide.

Signed-off-by: Zeng Guang <guang.zeng@intel.com>
Message-Id: <20220419153516.11739-1-guang.zeng@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/lapic.c