KVM: MMU: update 'root_hpa' out of loop in PAE shadow path
authorXiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Mon, 27 Sep 2010 10:02:12 +0000 (18:02 +0800)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:53:09 +0000 (10:53 +0200)
commit6292757fb0e758748fdb441861f8c50d397de9f0
tree7a33df56d8eb1d1259c40a61578cb7d81cd2defe
parent7129eecac10681f69cb00c0323ee915feceb57eb
KVM: MMU: update 'root_hpa' out of loop in PAE shadow path

The value of 'vcpu->arch.mmu.pae_root' is not modified, so we can update
'root_hpa' out of the loop.

Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/mmu.c