diff options
author | Takuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp> | 2011-11-14 04:23:34 -0500 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2011-12-27 04:17:19 -0500 |
commit | 7850ac5420803996e2960d15b924021f28e0dffc (patch) | |
tree | dc4ed43a8e5ffcfbf45b48c8d78228ffe9762efa /include/linux/kvm_host.h | |
parent | 9b9b1492364758de82c19c36f07baa9ae162c7e5 (diff) |
KVM: Count the number of dirty pages for dirty logging
Needed for the next patch which uses this number to decide how to write
protect a slot.
Signed-off-by: Takuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'include/linux/kvm_host.h')
-rw-r--r-- | include/linux/kvm_host.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index c6a2ec925846..7c654aa46b6c 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h | |||
@@ -181,6 +181,7 @@ struct kvm_memory_slot { | |||
181 | unsigned long *rmap; | 181 | unsigned long *rmap; |
182 | unsigned long *dirty_bitmap; | 182 | unsigned long *dirty_bitmap; |
183 | unsigned long *dirty_bitmap_head; | 183 | unsigned long *dirty_bitmap_head; |
184 | unsigned long nr_dirty_pages; | ||
184 | struct kvm_lpage_info *lpage_info[KVM_NR_PAGE_SIZES - 1]; | 185 | struct kvm_lpage_info *lpage_info[KVM_NR_PAGE_SIZES - 1]; |
185 | unsigned long userspace_addr; | 186 | unsigned long userspace_addr; |
186 | int user_alloc; | 187 | int user_alloc; |