commit | d7824fff896a1698a07a8046dc362f4500c302f7 | [log] [tgz] |
---|---|---|
author | Avi Kivity <avi@qumranet.com> | Sun Dec 30 12:29:05 2007 +0200 |
committer | Avi Kivity <avi@qumranet.com> | Wed Jan 30 18:01:21 2008 +0200 |
tree | 249e23ec224bc621bea1ef24fa83f5a749d6b35b | |
parent | 7ec54588210df29ea637e6054489bc942c0ef371 [diff] |
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: Avi Kivity <avi@qumranet.com>