KVM: Portability: Split kvm_set_memory_region() to have an arch callout
authorZhang Xiantao <xiantao.zhang@intel.com>
Tue, 20 Nov 2007 08:25:04 +0000 (16:25 +0800)
committerAvi Kivity <avi@qumranet.com>
Wed, 30 Jan 2008 15:53:09 +0000 (17:53 +0200)
commit0de10343b3ca7aa34dd606145748f73ed19f627e
treec15dd64e027ce58784ec8296bd7687591d08997e
parent3ad82a7e874c5d6c4045090cc01d7794dd9eb21c
KVM: Portability:  Split kvm_set_memory_region() to have an arch callout

Moving !user_alloc case to kvm_arch to avoid unnecessary
code logic in non-x86 platform.

Signed-off-by: Zhang Xiantao <xiantao.zhang@intel.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/kvm.h
drivers/kvm/kvm_main.c
drivers/kvm/x86.c