]> asedeno.scripts.mit.edu Git - linux.git/commit
KVM: x86: add track_flush_slot page track notifier
authorXiaoguang Chen <xiaoguang.chen@intel.com>
Sun, 9 Oct 2016 07:41:44 +0000 (15:41 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 2 Nov 2016 20:32:17 +0000 (21:32 +0100)
commitb5f5fdca65dbccbafe08a481957629d67003db34
tree205baae9ed80c7d08738e50ea20661bc9c94947a
parent23611332938d8c7e87f7fbe6d3bc37f9c50d688f
KVM: x86: add track_flush_slot page track notifier

When a memory slot is being moved or removed users of page track
can be notified. So users can drop write-protection for the pages
in that memory slot.

This notifier type is needed by KVMGT to sync up its shadow page
table when memory slot is being moved or removed.

Register the notifier type track_flush_slot to receive memslot move
and remove event.

Reviewed-by: Xiao Guangrong <guangrong.xiao@intel.com>
Signed-off-by: Chen Xiaoguang <xiaoguang.chen@intel.com>
[Squashed commits to avoid bisection breakage and reworded the subject.]
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
arch/x86/include/asm/kvm_page_track.h
arch/x86/kvm/mmu.c
arch/x86/kvm/page_track.c
arch/x86/kvm/x86.c