svm.c (3045c483eeeed56d2e709334cd590c1cfb748610) svm.c (81a1cf9f89a6b71e71bfd7d43837ce9235e70b38)
1#define pr_fmt(fmt) "SVM: " fmt
2
3#include <linux/kvm_host.h>
4
5#include "irq.h"
6#include "mmu.h"
7#include "kvm_cache_regs.h"
8#include "x86.h"

--- 5095 unchanged lines hidden (view full) ---

5104 r = kvm_x86_vendor_init(&svm_init_ops);
5105 if (r)
5106 return r;
5107
5108 /*
5109 * Common KVM initialization _must_ come last, after this, /dev/kvm is
5110 * exposed to userspace!
5111 */
1#define pr_fmt(fmt) "SVM: " fmt
2
3#include <linux/kvm_host.h>
4
5#include "irq.h"
6#include "mmu.h"
7#include "kvm_cache_regs.h"
8#include "x86.h"

--- 5095 unchanged lines hidden (view full) ---

5104 r = kvm_x86_vendor_init(&svm_init_ops);
5105 if (r)
5106 return r;
5107
5108 /*
5109 * Common KVM initialization _must_ come last, after this, /dev/kvm is
5110 * exposed to userspace!
5111 */
5112 r = kvm_init(NULL, sizeof(struct vcpu_svm),
5113 __alignof__(struct vcpu_svm), THIS_MODULE);
5112 r = kvm_init(sizeof(struct vcpu_svm), __alignof__(struct vcpu_svm),
5113 THIS_MODULE);
5114 if (r)
5115 goto err_kvm_init;
5116
5117 return 0;
5118
5119err_kvm_init:
5120 kvm_x86_vendor_exit();
5121 return r;
5122}
5123
5124static void __exit svm_exit(void)
5125{
5126 kvm_exit();
5127 kvm_x86_vendor_exit();
5128}
5129
5130module_init(svm_init)
5131module_exit(svm_exit)
5114 if (r)
5115 goto err_kvm_init;
5116
5117 return 0;
5118
5119err_kvm_init:
5120 kvm_x86_vendor_exit();
5121 return r;
5122}
5123
5124static void __exit svm_exit(void)
5125{
5126 kvm_exit();
5127 kvm_x86_vendor_exit();
5128}
5129
5130module_init(svm_init)
5131module_exit(svm_exit)