mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-04 18:30:18 +00:00
hv: cleanup IA32_PAT emulation code r.w.t. to the refactored guest_msrs[]
Currently there are two fields in ext_context to emulate IA32_PAT MSR: - ia32_pat: hold the value of the emulated IA32_PAT MSR - vmx_ia32_pat: used for load/store IA32_PAT MSR during world switch This patch moves ext_context->ia32_pat to the common placeholder for emulated MSRs acrn_vcpu_arch->guest_msrs[]. Also it renames ext_context->vmx_ia32_pat to ext_context->ia32_pat to retain same naming convention in struct ext_context. Tracked-On: #1867 Signed-off-by: Zide Chen <zide.chen@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -141,7 +141,6 @@ struct ext_context {
|
||||
uint64_t ia32_kernel_gs_base;
|
||||
|
||||
uint64_t ia32_pat;
|
||||
uint64_t vmx_ia32_pat;
|
||||
uint32_t ia32_sysenter_cs;
|
||||
uint64_t ia32_sysenter_esp;
|
||||
uint64_t ia32_sysenter_eip;
|
||||
@@ -470,9 +469,6 @@ uint64_t vcpu_get_cr4(struct acrn_vcpu *vcpu);
|
||||
*/
|
||||
void vcpu_set_cr4(struct acrn_vcpu *vcpu, uint64_t val);
|
||||
|
||||
uint64_t vcpu_get_pat_ext(const struct acrn_vcpu *vcpu);
|
||||
void vcpu_set_pat_ext(struct acrn_vcpu *vcpu, uint64_t val);
|
||||
|
||||
/**
|
||||
* @brief get guest emulated MSR
|
||||
*
|
||||
|
Reference in New Issue
Block a user