mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 17:27:53 +00:00
hv: bugfix for debug commands with smp_call
With cpu-sharing enabled, there are more than 1 vcpu on 1 pcpu, so the smp_call handler should switch the vmcs to the target vcpu's vmcs. Then get the info. dump_vcpu_reg and dump_guest_mem should run on certain vmcs, otherwise, there will be #GP error. Renaming: vcpu_dumpreg -> dump_vcpu_reg switch_vmcs -> load_vmcs Tracked-On: #4178 Signed-off-by: Conghui Chen <conghui.chen@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -41,7 +41,7 @@ static inline uint64_t apic_access_offset(uint64_t qual)
|
||||
return (qual & APIC_ACCESS_OFFSET);
|
||||
}
|
||||
void init_vmcs(struct acrn_vcpu *vcpu);
|
||||
void switch_vmcs(const struct acrn_vcpu *vcpu);
|
||||
void load_vmcs(const struct acrn_vcpu *vcpu);
|
||||
|
||||
void switch_apicv_mode_x2apic(struct acrn_vcpu *vcpu);
|
||||
#endif /* ASSEMBLER */
|
||||
|
Reference in New Issue
Block a user