.. | .. |
---|
166 | 166 | return *(u16 *)((char *)current_evmcs + offset); |
---|
167 | 167 | } |
---|
168 | 168 | |
---|
169 | | -static inline void evmcs_touch_msr_bitmap(void) |
---|
170 | | -{ |
---|
171 | | - if (unlikely(!current_evmcs)) |
---|
172 | | - return; |
---|
173 | | - |
---|
174 | | - if (current_evmcs->hv_enlightenments_control.msr_bitmap) |
---|
175 | | - current_evmcs->hv_clean_fields &= |
---|
176 | | - ~HV_VMX_ENLIGHTENED_CLEAN_FIELD_MSR_BITMAP; |
---|
177 | | -} |
---|
178 | | - |
---|
179 | 169 | static inline void evmcs_load(u64 phys_addr) |
---|
180 | 170 | { |
---|
181 | 171 | struct hv_vp_assist_page *vp_ap = |
---|
.. | .. |
---|
196 | 186 | static inline u32 evmcs_read32(unsigned long field) { return 0; } |
---|
197 | 187 | static inline u16 evmcs_read16(unsigned long field) { return 0; } |
---|
198 | 188 | static inline void evmcs_load(u64 phys_addr) {} |
---|
199 | | -static inline void evmcs_touch_msr_bitmap(void) {} |
---|
200 | 189 | #endif /* IS_ENABLED(CONFIG_HYPERV) */ |
---|
201 | 190 | |
---|
202 | 191 | enum nested_evmptrld_status { |
---|