diff options
Diffstat (limited to 'drivers/kvm/kvm.h')
-rw-r--r-- | drivers/kvm/kvm.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/kvm/kvm.h b/drivers/kvm/kvm.h index 08ffc829f07f..80cfb99fffe0 100644 --- a/drivers/kvm/kvm.h +++ b/drivers/kvm/kvm.h | |||
@@ -126,6 +126,8 @@ struct kvm_mmu_page { | |||
126 | union kvm_mmu_page_role role; | 126 | union kvm_mmu_page_role role; |
127 | 127 | ||
128 | u64 *spt; | 128 | u64 *spt; |
129 | /* hold the gfn of each spte inside spt */ | ||
130 | gfn_t *gfns; | ||
129 | unsigned long slot_bitmap; /* One bit set per slot which has memory | 131 | unsigned long slot_bitmap; /* One bit set per slot which has memory |
130 | * in this shadow page. | 132 | * in this shadow page. |
131 | */ | 133 | */ |
@@ -159,7 +161,7 @@ struct kvm_mmu { | |||
159 | u64 *pae_root; | 161 | u64 *pae_root; |
160 | }; | 162 | }; |
161 | 163 | ||
162 | #define KVM_NR_MEM_OBJS 20 | 164 | #define KVM_NR_MEM_OBJS 40 |
163 | 165 | ||
164 | struct kvm_mmu_memory_cache { | 166 | struct kvm_mmu_memory_cache { |
165 | int nobjs; | 167 | int nobjs; |
@@ -402,6 +404,7 @@ struct kvm_memory_slot { | |||
402 | unsigned long npages; | 404 | unsigned long npages; |
403 | unsigned long flags; | 405 | unsigned long flags; |
404 | struct page **phys_mem; | 406 | struct page **phys_mem; |
407 | unsigned long *rmap; | ||
405 | unsigned long *dirty_bitmap; | 408 | unsigned long *dirty_bitmap; |
406 | }; | 409 | }; |
407 | 410 | ||
@@ -554,6 +557,7 @@ struct page *gva_to_page(struct kvm_vcpu *vcpu, gva_t gva); | |||
554 | 557 | ||
555 | extern hpa_t bad_page_address; | 558 | extern hpa_t bad_page_address; |
556 | 559 | ||
560 | gfn_t unalias_gfn(struct kvm *kvm, gfn_t gfn); | ||
557 | struct page *gfn_to_page(struct kvm *kvm, gfn_t gfn); | 561 | struct page *gfn_to_page(struct kvm *kvm, gfn_t gfn); |
558 | struct kvm_memory_slot *gfn_to_memslot(struct kvm *kvm, gfn_t gfn); | 562 | struct kvm_memory_slot *gfn_to_memslot(struct kvm *kvm, gfn_t gfn); |
559 | void mark_page_dirty(struct kvm *kvm, gfn_t gfn); | 563 | void mark_page_dirty(struct kvm *kvm, gfn_t gfn); |