mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-04 10:25:00 +00:00
hv: Switch APICv from MMIO to MSR for x2APIC mode of guest vLAPIC
When guest switches from xAPIC mode to x2APIC mode of vLAPIC operation, MSRs are used to access vLAPIC. This patch adds APICv support for MSR accesses to vLAPIC. Switching from xAPIC to x2APIC is supported via APIC BASE MSR. Other modifications like disabling and switching back to xAPIC are not supported. Tracked-On: #1626 Signed-off-by: Sainath Grandhi <sainath.grandhi@intel.com> Reviewed-by: Xu Anthony <anthony.xu@intel.com>
This commit is contained in:
committed by
lijinxia
parent
cf4d191272
commit
c85e35d31b
@@ -464,6 +464,7 @@ int vmx_wrmsr_pat(struct vcpu *vcpu, uint64_t value);
|
||||
void vmx_write_cr0(struct vcpu *vcpu, uint64_t cr0);
|
||||
void vmx_write_cr4(struct vcpu *vcpu, uint64_t cr4);
|
||||
bool is_vmx_disabled(void);
|
||||
void switch_apicv_mode_x2apic(struct vcpu *vcpu);
|
||||
|
||||
static inline enum vm_cpu_mode get_vcpu_mode(const struct vcpu *vcpu)
|
||||
{
|
||||
|
Reference in New Issue
Block a user