mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 01:37:44 +00:00
HV: replace lapic_pt with guest flag in vm_config
The member of lapic_pt in acrn_vm_config will be replaced by guest_flag of LAPIC_PASSTHROUGH; Tracked-On: #2291 Signed-off-by: Victor Sun <victor.sun@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -2089,7 +2089,7 @@ static int32_t vlapic_x2apic_access(struct acrn_vcpu *vcpu, uint32_t msr, bool w
|
||||
#ifdef CONFIG_PARTITION_MODE
|
||||
struct acrn_vm_config *vm_config = get_vm_config(vcpu->vm->vm_id);
|
||||
|
||||
if (vm_config->lapic_pt) {
|
||||
if((vm_config->guest_flags & LAPIC_PASSTHROUGH) != 0U ) {
|
||||
if (msr == MSR_IA32_EXT_APIC_ICR) {
|
||||
error = vlapic_x2apic_pt_icr_access(vcpu->vm, *val);
|
||||
}
|
||||
|
@@ -576,7 +576,7 @@ void switch_apicv_mode_x2apic(struct acrn_vcpu *vcpu)
|
||||
uint32_t value32;
|
||||
struct acrn_vm_config *vm_config = get_vm_config(vcpu->vm->vm_id);
|
||||
|
||||
if(vm_config->lapic_pt) {
|
||||
if((vm_config->guest_flags & LAPIC_PASSTHROUGH) != 0U ) {
|
||||
/*
|
||||
* Disable external interrupt exiting and irq ack
|
||||
* Disable posted interrupt processing
|
||||
|
Reference in New Issue
Block a user