aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm/kvm.h
diff options
context:
space:
mode:
authorZhang Xiantao <xiantao.zhang@intel.com>2007-11-14 07:40:21 -0500
committerAvi Kivity <avi@qumranet.com>2008-01-30 10:53:03 -0500
commitf8c16bbaa9e14b309ffcf29cac0ea377a35b0dd2 (patch)
treefde560989f7c3aa77d0f869a90084369c72d7dc4 /drivers/kvm/kvm.h
parentcb498ea2ce1d3f3c0bc0a2522241dca10263e437 (diff)
KVM: Portability: Move x86 specific code from kvm_init() to kvm_arch()
Signed-off-by: Zhang Xiantao <xiantao.zhang@intel.com> Acked-by: Carsten Otte <cotte@de.ibm.com> Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/kvm.h')
-rw-r--r--drivers/kvm/kvm.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/kvm/kvm.h b/drivers/kvm/kvm.h
index 5e7be1504664..96d9c7da14c2 100644
--- a/drivers/kvm/kvm.h
+++ b/drivers/kvm/kvm.h
@@ -495,7 +495,7 @@ void vcpu_put(struct kvm_vcpu *vcpu);
495void decache_vcpus_on_cpu(int cpu); 495void decache_vcpus_on_cpu(int cpu);
496 496
497 497
498int kvm_init(struct kvm_x86_ops *ops, unsigned int vcpu_size, 498int kvm_init(void *opaque, unsigned int vcpu_size,
499 struct module *module); 499 struct module *module);
500void kvm_exit(void); 500void kvm_exit(void);
501 501
@@ -649,7 +649,8 @@ int kvm_arch_vcpu_ioctl_debug_guest(struct kvm_vcpu *vcpu,
649 struct kvm_debug_guest *dbg); 649 struct kvm_debug_guest *dbg);
650int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run); 650int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run);
651 651
652__init void kvm_arch_init(void); 652int kvm_arch_init(void *opaque);
653void kvm_arch_exit(void);
653 654
654int kvm_arch_vcpu_init(struct kvm_vcpu *vcpu); 655int kvm_arch_vcpu_init(struct kvm_vcpu *vcpu);
655void kvm_arch_vcpu_uninit(struct kvm_vcpu *vcpu); 656void kvm_arch_vcpu_uninit(struct kvm_vcpu *vcpu);