diff options
author | Zhang Xiantao <xiantao.zhang@intel.com> | 2007-11-14 07:40:21 -0500 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-01-30 10:53:03 -0500 |
commit | f8c16bbaa9e14b309ffcf29cac0ea377a35b0dd2 (patch) | |
tree | fde560989f7c3aa77d0f869a90084369c72d7dc4 /drivers/kvm/kvm.h | |
parent | cb498ea2ce1d3f3c0bc0a2522241dca10263e437 (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.h | 5 |
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); | |||
495 | void decache_vcpus_on_cpu(int cpu); | 495 | void decache_vcpus_on_cpu(int cpu); |
496 | 496 | ||
497 | 497 | ||
498 | int kvm_init(struct kvm_x86_ops *ops, unsigned int vcpu_size, | 498 | int kvm_init(void *opaque, unsigned int vcpu_size, |
499 | struct module *module); | 499 | struct module *module); |
500 | void kvm_exit(void); | 500 | void 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); |
650 | int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run); | 650 | int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run); |
651 | 651 | ||
652 | __init void kvm_arch_init(void); | 652 | int kvm_arch_init(void *opaque); |
653 | void kvm_arch_exit(void); | ||
653 | 654 | ||
654 | int kvm_arch_vcpu_init(struct kvm_vcpu *vcpu); | 655 | int kvm_arch_vcpu_init(struct kvm_vcpu *vcpu); |
655 | void kvm_arch_vcpu_uninit(struct kvm_vcpu *vcpu); | 656 | void kvm_arch_vcpu_uninit(struct kvm_vcpu *vcpu); |