mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 17:58:30 +00:00
hv: vmtrr: remove vcpu structure pointer from vmtrr
We could use container_of to get vcpu structure pointer from vmtrr. So vcpu structure pointer is no need in vmtrr structure. Tracked-On: #4550 Signed-off-by: Li Fei1 <fei1.li@intel.com>
This commit is contained in:
@@ -48,12 +48,12 @@ union mtrr_fixed_range_reg {
|
||||
};
|
||||
|
||||
struct acrn_vmtrr {
|
||||
struct acrn_vcpu *vcpu;
|
||||
union mtrr_cap_reg cap;
|
||||
union mtrr_def_type_reg def_type;
|
||||
union mtrr_fixed_range_reg fixed_range[FIXED_RANGE_MTRR_NUM];
|
||||
};
|
||||
|
||||
struct acrn_vcpu;
|
||||
/**
|
||||
* @brief Virtual MTRR MSR write
|
||||
*
|
||||
|
Reference in New Issue
Block a user