KVM: MMU: cleanup for function unaccount_shadowed()
authorWei Yongjun <yjwei@cn.fujitsu.com>
Fri, 16 Apr 2010 08:21:42 +0000 (16:21 +0800)
committerAvi Kivity <avi@redhat.com>
Mon, 17 May 2010 09:18:12 +0000 (12:18 +0300)
commit77a1a715707d0f60ce0cfbe44070527a0a561f01
tree5bc32478e0f0fe77158d975df67471492ef124a6
parent2a059bf444dd7758ccf48f217cd981570132be85
KVM: MMU: cleanup for function unaccount_shadowed()

Since gfn is not changed in the for loop, we do not need to call
gfn_to_memslot_unaliased() under the loop, and it is safe to move
it out.

Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/mmu.c