KVM: Let vcpu structure alignment be determined at runtime
[pandora-kernel.git] / arch / x86 / kvm / vmx.c
index 875b785..2e87296 100644 (file)
@@ -4245,7 +4245,8 @@ static int __init vmx_init(void)
 
        set_bit(0, vmx_vpid_bitmap); /* 0 is reserved for host */
 
-       r = kvm_init(&vmx_x86_ops, sizeof(struct vcpu_vmx), THIS_MODULE);
+       r = kvm_init(&vmx_x86_ops, sizeof(struct vcpu_vmx),
+                    __alignof__(struct vcpu_vmx), THIS_MODULE);
        if (r)
                goto out3;