KVM: MMU: reorganize struct kvm_shadow_walk_iterator
Xiao Guangrong [Mon, 11 Jul 2011 19:32:54 +0000 (03:32 +0800)]
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 374530a..4b1aa67 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;
 };