aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm/kvm.h
diff options
context:
space:
mode:
authorZhang Xiantao <xiantao@vtsmp-build32.los-vmm.org>2007-11-18 05:43:45 -0500
committerAvi Kivity <avi@qumranet.com>2008-01-30 10:53:04 -0500
commitd19a9cd275b0fdc793d1bb8b644b7aad0517e4bc (patch)
tree5dba36f58295f165e4fd3380742875d1867266f5 /drivers/kvm/kvm.h
parenta16b043cc96db4a01abb337bef4a51cebcfcbb1b (diff)
KVM: Portability: Add two hooks to handle kvm_create and destroy vm
Add two arch hooks to handle kvm_create_vm and kvm destroy_vm. Now, just put io_bus init and destory in common. Signed-off-by: Zhang Xiantao <xiantao.zhang@intel.com> Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/kvm.h')
-rw-r--r--drivers/kvm/kvm.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/kvm/kvm.h b/drivers/kvm/kvm.h
index c4ad66bb5e08..59e001c3ff09 100644
--- a/drivers/kvm/kvm.h
+++ b/drivers/kvm/kvm.h
@@ -674,6 +674,10 @@ int kvm_arch_hardware_setup(void);
674void kvm_arch_hardware_unsetup(void); 674void kvm_arch_hardware_unsetup(void);
675void kvm_arch_check_processor_compat(void *rtn); 675void kvm_arch_check_processor_compat(void *rtn);
676 676
677void kvm_free_physmem(struct kvm *kvm);
678
679struct kvm *kvm_arch_create_vm(void);
680void kvm_arch_destroy_vm(struct kvm *kvm);
677 681
678static inline void kvm_guest_enter(void) 682static inline void kvm_guest_enter(void)
679{ 683{