diff options
author | Zhang Xiantao <xiantao.zhang@intel.com> | 2007-11-14 07:39:31 -0500 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-01-30 10:53:02 -0500 |
commit | cb498ea2ce1d3f3c0bc0a2522241dca10263e437 (patch) | |
tree | 255eeaa3581a79ceb77772c1350faa95ce4706a6 /drivers/kvm/vmx.c | |
parent | e9b11c17552afe684e9e5d0444309a3ddf410116 (diff) |
KVM: Portability: Combine kvm_init and kvm_init_x86
Will be called once arch module registers itself.
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/vmx.c')
-rw-r--r-- | drivers/kvm/vmx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/kvm/vmx.c b/drivers/kvm/vmx.c index c3bde7532714..529162345c12 100644 --- a/drivers/kvm/vmx.c +++ b/drivers/kvm/vmx.c | |||
@@ -2677,7 +2677,7 @@ static int __init vmx_init(void) | |||
2677 | memset(iova, 0xff, PAGE_SIZE); | 2677 | memset(iova, 0xff, PAGE_SIZE); |
2678 | kunmap(vmx_io_bitmap_b); | 2678 | kunmap(vmx_io_bitmap_b); |
2679 | 2679 | ||
2680 | r = kvm_init_x86(&vmx_x86_ops, sizeof(struct vcpu_vmx), THIS_MODULE); | 2680 | r = kvm_init(&vmx_x86_ops, sizeof(struct vcpu_vmx), THIS_MODULE); |
2681 | if (r) | 2681 | if (r) |
2682 | goto out1; | 2682 | goto out1; |
2683 | 2683 | ||
@@ -2698,7 +2698,7 @@ static void __exit vmx_exit(void) | |||
2698 | __free_page(vmx_io_bitmap_b); | 2698 | __free_page(vmx_io_bitmap_b); |
2699 | __free_page(vmx_io_bitmap_a); | 2699 | __free_page(vmx_io_bitmap_a); |
2700 | 2700 | ||
2701 | kvm_exit_x86(); | 2701 | kvm_exit(); |
2702 | } | 2702 | } |
2703 | 2703 | ||
2704 | module_init(vmx_init) | 2704 | module_init(vmx_init) |