1 #ifndef _ASM_X86_KVM_PAGE_TRACK_H 2 #define _ASM_X86_KVM_PAGE_TRACK_H 3 4 enum kvm_page_track_mode { 5 KVM_PAGE_TRACK_WRITE, 6 KVM_PAGE_TRACK_MAX, 7 }; 8 9 void kvm_page_track_free_memslot(struct kvm_memory_slot *free, 10 struct kvm_memory_slot *dont); 11 int kvm_page_track_create_memslot(struct kvm_memory_slot *slot, 12 unsigned long npages); 13 14 void kvm_slot_page_track_add_page(struct kvm *kvm, 15 struct kvm_memory_slot *slot, gfn_t gfn, 16 enum kvm_page_track_mode mode); 17 void kvm_slot_page_track_remove_page(struct kvm *kvm, 18 struct kvm_memory_slot *slot, gfn_t gfn, 19 enum kvm_page_track_mode mode); 20 bool kvm_page_track_is_active(struct kvm_vcpu *vcpu, gfn_t gfn, 21 enum kvm_page_track_mode mode); 22 #endif 23