kvm: x86: Add request bit to reload APIC access page address
authorTang Chen <tangchen@cn.fujitsu.com>
Wed, 24 Sep 2014 07:57:54 +0000 (15:57 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 24 Sep 2014 12:08:00 +0000 (14:08 +0200)
commit4256f43f9fab91e1c17b5846a240cf4b66a768a8
treeb88c0d65ef1d6b14e82ed31a1e8ae4d0e63507b4
parentfe71557afbec641fee73711e40602bed37f6f33b
kvm: x86: Add request bit to reload APIC access page address

Currently, the APIC access page is pinned by KVM for the entire life
of the guest.  We want to make it migratable in order to make memory
hot-unplug available for machines that run KVM.

This patch prepares to handle this in generic code, through a new
request bit (that will be set by the MMU notifier) and a new hook
that is called whenever the request bit is processed.

Signed-off-by: Tang Chen <tangchen@cn.fujitsu.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/x86.c
include/linux/kvm_host.h