summaryrefslogtreecommitdiff
path: root/drivers/kvm/kvm.h
diff options
context:
space:
mode:
authorAvi Kivity <avi@qumranet.com>2007-09-23 14:10:49 +0200
committerAvi Kivity <avi@qumranet.com>2008-01-30 17:52:48 +0200
commit12b7d28fc102b772eb70f98491587ec5ee717baf (patch)
tree679077d072c9c0195a962a16f805bb228070a87c /drivers/kvm/kvm.h
parentc7addb902054195b995114df154e061c7d604f69 (diff)
downloadlwn-12b7d28fc102b772eb70f98491587ec5ee717baf.tar.gz
lwn-12b7d28fc102b772eb70f98491587ec5ee717baf.zip
KVM: MMU: Make flooding detection work when guest page faults are bypassed
When we allow guest page faults to reach the guests directly, we lose the fault tracking which allows us to detect demand paging. So we provide an alternate mechnism by clearing the accessed bit when we set a pte, and checking it later to see if the guest actually used it. Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/kvm.h')
-rw-r--r--drivers/kvm/kvm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/kvm/kvm.h b/drivers/kvm/kvm.h
index 7de948e9e64e..08ffc829f07f 100644
--- a/drivers/kvm/kvm.h
+++ b/drivers/kvm/kvm.h
@@ -346,6 +346,7 @@ struct kvm_vcpu {
gfn_t last_pt_write_gfn;
int last_pt_write_count;
+ u64 *last_pte_updated;
struct kvm_guest_debug guest_debug;