hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/arch/x86/kvm/vmx/evmcs.h
....@@ -166,16 +166,6 @@
166166 return *(u16 *)((char *)current_evmcs + offset);
167167 }
168168
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
-
179169 static inline void evmcs_load(u64 phys_addr)
180170 {
181171 struct hv_vp_assist_page *vp_ap =
....@@ -196,7 +186,6 @@
196186 static inline u32 evmcs_read32(unsigned long field) { return 0; }
197187 static inline u16 evmcs_read16(unsigned long field) { return 0; }
198188 static inline void evmcs_load(u64 phys_addr) {}
199
-static inline void evmcs_touch_msr_bitmap(void) {}
200189 #endif /* IS_ENABLED(CONFIG_HYPERV) */
201190
202191 enum nested_evmptrld_status {