From: Tang Chen Date: Wed, 24 Sep 2014 07:57:58 +0000 (+0800) Subject: kvm: x86: Unpin and remove kvm_arch->apic_access_page X-Git-Tag: fixes-for-v3.18-merge-window~23^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c24ae0dcd3e8695efa43e71704d1fc4bc7e29e9b;p=pandora-kernel.git kvm: x86: Unpin and remove kvm_arch->apic_access_page In order to make the APIC access page migratable, stop pinning it in memory. And because the APIC access page is not pinned in memory, we can remove kvm_arch->apic_access_page. When we need to write its physical address into vmcs, we use gfn_to_page() to get its page struct, which is needed to call page_to_phys(); the page is then immediately unpinned. Suggested-by: Gleb Natapov Signed-off-by: Tang Chen Signed-off-by: Paolo Bonzini --- Reading git-diff-tree failed