It is generally not a good idea to reference the internal data
structure of the another subsystem directly. Introduce a wrapper
function for the invlpg hook.
No functional change.
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
if ( is_pv_vcpu(v) )
flush_tlb_one_local(va);
else
- hvm_funcs.invlpg(v, va);
+ hvm_invlpg(v, va);
}
/* Build a 32bit PSE page table using 4MB pages. */
return hvm_funcs.event_pending(v);
}
+static inline void hvm_invlpg(struct vcpu *v, unsigned long va)
+{
+ hvm_funcs.invlpg(v, va);
+}
+
/* These bits in CR4 are owned by the host. */
#define HVM_CR4_HOST_MASK (mmu_cr4_features & \
(X86_CR4_VMXE | X86_CR4_PAE | X86_CR4_MCE))