Skip to content
Commit d7824fff authored by Avi Kivity's avatar Avi Kivity
Browse files

KVM: MMU: Avoid calling gfn_to_page() in mmu_set_spte()



Since gfn_to_page() is a sleeping function, and we want to make the core mmu
spinlocked, we need to pass the page from the walker context (which can sleep)
to the shadow context (which cannot).

[marcelo: avoid recursive locking of mmap_sem]

Signed-off-by: default avatarAvi Kivity <avi@qumranet.com>
parent 7ec54588
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment