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:
Li Fei1
2020-03-30 14:02:24 +08:00
committed by wenlingz
parent 1946661c51
commit 2b7168da9e
2 changed files with 10 additions and 6 deletions

View File

@@ -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
*