KVM: Let vcpu structure alignment be determined at runtime
[pandora-kernel.git] / arch / x86 / kvm / svm.c
index 889f660..2511664 100644 (file)
@@ -3319,7 +3319,7 @@ static struct kvm_x86_ops svm_x86_ops = {
 static int __init svm_init(void)
 {
        return kvm_init(&svm_x86_ops, sizeof(struct vcpu_svm),
-                             THIS_MODULE);
+                       __alignof__(struct vcpu_svm), THIS_MODULE);
 }
 
 static void __exit svm_exit(void)