mirror of
https://github.com/torvalds/linux.git
synced 2024-12-29 06:12:08 +00:00
KVM: Export necessary function for EPT
Signed-off-by: Sheng Yang <sheng.yang@intel.com> Signed-off-by: Avi Kivity <avi@qumranet.com>
This commit is contained in:
parent
1ac593c97e
commit
0d15029895
@ -522,6 +522,7 @@ unsigned long gfn_to_hva(struct kvm *kvm, gfn_t gfn)
|
||||
return bad_hva();
|
||||
return (slot->userspace_addr + (gfn - slot->base_gfn) * PAGE_SIZE);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(gfn_to_hva);
|
||||
|
||||
/*
|
||||
* Requires current->mm->mmap_sem to be held
|
||||
|
Loading…
Reference in New Issue
Block a user