]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blobdiff - arch/x86/kvm/vmx.c
KVM: Let vcpu structure alignment be determined at runtime
[mirror_ubuntu-hirsute-kernel.git] / arch / x86 / kvm / vmx.c
index 875b785228f6a78b95c7b7b1f32012494dc3249e..2e8729678600aa95a551a60a1f1661e1fa065520 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;