]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
KVM: MMU: reorganize struct kvm_shadow_walk_iterator
authorXiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Mon, 11 Jul 2011 19:32:54 +0000 (03:32 +0800)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Jul 2011 08:50:39 +0000 (11:50 +0300)
Reorganize it for good using the cache

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

index 374530a478a428ce6f80180115d1df58bc4ab594..4b1aa6772147e9bc48cbb8a70316c7fd27924b83 100644 (file)
@@ -172,8 +172,8 @@ struct pte_list_desc {
 struct kvm_shadow_walk_iterator {
        u64 addr;
        hpa_t shadow_addr;
-       int level;
        u64 *sptep;
+       int level;
        unsigned index;
 };