]> git.baikalelectronics.ru Git - kernel.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>
Fri, 4 Nov 2016 11:13:19 +0000 (12:13 +0100)
commit72cacc76990708eae90834c99e20e003903384ec
tree1b938cb863571d8a185a18e29a077cc3a3f0f651
parentbe69000fd595b0021e1636303b88ba8fbcce38b6
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