diff options
author | Zhang Xiantao <xiantao@vtsmp-build32.los-vmm.org> | 2007-11-18 05:43:45 -0500 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-01-30 10:53:04 -0500 |
commit | d19a9cd275b0fdc793d1bb8b644b7aad0517e4bc (patch) | |
tree | 5dba36f58295f165e4fd3380742875d1867266f5 /drivers/kvm/kvm.h | |
parent | a16b043cc96db4a01abb337bef4a51cebcfcbb1b (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.h | 4 |
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); | |||
674 | void kvm_arch_hardware_unsetup(void); | 674 | void kvm_arch_hardware_unsetup(void); |
675 | void kvm_arch_check_processor_compat(void *rtn); | 675 | void kvm_arch_check_processor_compat(void *rtn); |
676 | 676 | ||
677 | void kvm_free_physmem(struct kvm *kvm); | ||
678 | |||
679 | struct kvm *kvm_arch_create_vm(void); | ||
680 | void kvm_arch_destroy_vm(struct kvm *kvm); | ||
677 | 681 | ||
678 | static inline void kvm_guest_enter(void) | 682 | static inline void kvm_guest_enter(void) |
679 | { | 683 | { |