Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp832515pxb; Wed, 22 Sep 2021 14:05:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxP1SlVvMlXSGGaX12ugfLN4GYepD6jerK8/Tbc6MRm5gp1UIeWwOGMGYYIWj7DywpX5WRu X-Received: by 2002:a17:906:cc0e:: with SMTP id ml14mr1300349ejb.395.1632344759719; Wed, 22 Sep 2021 14:05:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632344759; cv=none; d=google.com; s=arc-20160816; b=A6PccNPrg8x77NbfNIrO0YcQEiShGDL6ADj4G7/7v2fD40kar0SQFff3L0geSXsvWK 2z/ATifw6USinlpUgbXihSoWzFMMQj1WJJ+6o1jL65l6OSgFJMhpJUyIcXTDE00xGbH3 XnzmNmAIohEDaoozW0ey2MGZIOv0IuIie6sfZqJ7YvwOMaYLpHMDO/f+EECRTLeV2ZP6 AthWwiITwWoeCtRQoAwUS2uMv+W823M3J/dqLG7wdkOsUpWDIp5WjgInZuSEXQfM4gUJ +KHtHlj2o/lT/B20eW2GtO0N2TItEAf9suKCHq98u/orZUey7e///xN2irPufmggGTLd IlYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=EkcI36nWkyMmdwAV3luppztFyqzSlOhfIH0Z+Rmy1YE=; b=xf163vdEnV9jHZjw6AfDZ+T63oUJm3NAO0K5q+ZL2WchEXjZChEi6VAP4yme+Ifb/5 2t2Q6sGqbNP2kbDt+k/PeawBdkk7+R4KAwk0ItBRKXVXFjIlBVIFvR4A0aJRgGdcjNmm OVzKJoW/zQw/KHGo79eMtLr584Vs0BnnlLKvfui4Htjj5ONnsa7wDYG4Psh+3mNABC+0 O9rXPqDbpIBgjfV+M1YroZZ6OKN2F30+M6HYF2TE8N4Rjn9FMDHhrB8u8zVO0PziJFYT WFlL/ek/bitU6y1sDvA9UGR1oLyDWirFAjxvnMW19UGSSBA+1m9EMy812q9/9yiTxJXa Eigg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=VT3NmozO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x15si4141021ede.404.2021.09.22.14.05.27; Wed, 22 Sep 2021 14:05:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=VT3NmozO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237915AbhIVVCl (ORCPT + 99 others); Wed, 22 Sep 2021 17:02:41 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:58593 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238084AbhIVVCh (ORCPT ); Wed, 22 Sep 2021 17:02:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1632344466; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=EkcI36nWkyMmdwAV3luppztFyqzSlOhfIH0Z+Rmy1YE=; b=VT3NmozO3j94IEhNrMP6NpdTUsUs50wyjakj69R7DrWM4lwOHrUk/1SHAMhO17RDI48GZX fAOwAZFc80iQaPxKd10TiJnASdpdwO0Z8GA5INZ3vsVPcPz8SqKRIa6aFneJ/U9NR1f/zT LVSr6v0JakIXNAcK3jJp+uNwY2+JNy4= Received: from mail-oi1-f199.google.com (mail-oi1-f199.google.com [209.85.167.199]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-221-rkdQvcDKO-m6A9GxnUnJFg-1; Wed, 22 Sep 2021 17:01:05 -0400 X-MC-Unique: rkdQvcDKO-m6A9GxnUnJFg-1 Received: by mail-oi1-f199.google.com with SMTP id e186-20020acab5c3000000b00273804e72c8so2528054oif.11 for ; Wed, 22 Sep 2021 14:01:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:organization:mime-version:content-transfer-encoding; bh=EkcI36nWkyMmdwAV3luppztFyqzSlOhfIH0Z+Rmy1YE=; b=FWl+hsZI2CvGHtSf7/Fs1QpvYZ8E9TLLBDzKuoDpqTc+N8vxzD/qhMkFeH/xF0Vfti o2LO85s1QiQRcqLSfLYN0KuJwBio5xVjF9qRflJuQAGDCnrewVrTeBdoqa4GkM+tYaPA N9Ujv6k9CPoLZOurh+UX79pEfNYmdgfTuO9Q2ADFD3kbKLfsA83SkmLWVhqiKibDi6LP S8dOr5D31p9EX8g7b80zxQNXXV2a+UZa0llI+i6TqQmj6NjnJ1hC2h1q1BJmvqho48XX SAY3+A1y8uv76MXCLPi39ExlhgNfKphqOh21Q/JJHAJFaJoPbBwcvRV0DrnQRnBm5qOE ULNw== X-Gm-Message-State: AOAM531IEHi6KtqjnZ5hrtqW4ZsoFvIBf01KitS018gm4lruYk0AbsX7 gjhIyCcn3lr7wpfNiV0Eu367kEjtKICV9x8hPu2lh8/5uKaCxnpCUwDbCj+Cr1S8DeY7558SrKr 5SRkPRROkoHGkpsIaFhqMOH1p X-Received: by 2002:a9d:72db:: with SMTP id d27mr1019238otk.279.1632344464367; Wed, 22 Sep 2021 14:01:04 -0700 (PDT) X-Received: by 2002:a9d:72db:: with SMTP id d27mr1019192otk.279.1632344464096; Wed, 22 Sep 2021 14:01:04 -0700 (PDT) Received: from redhat.com ([198.99.80.109]) by smtp.gmail.com with ESMTPSA id v4sm696691ott.72.2021.09.22.14.01.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Sep 2021 14:01:03 -0700 (PDT) Date: Wed, 22 Sep 2021 15:01:01 -0600 From: Alex Williamson To: Jason Gunthorpe Cc: Liu Yi L , hch@lst.de, jasowang@redhat.com, joro@8bytes.org, jean-philippe@linaro.org, kevin.tian@intel.com, parav@mellanox.com, lkml@metux.net, pbonzini@redhat.com, lushenming@huawei.com, eric.auger@redhat.com, corbet@lwn.net, ashok.raj@intel.com, yi.l.liu@linux.intel.com, jun.j.tian@intel.com, hao.wu@intel.com, dave.jiang@intel.com, jacob.jun.pan@linux.intel.com, kwankhede@nvidia.com, robin.murphy@arm.com, kvm@vger.kernel.org, iommu@lists.linux-foundation.org, dwmw2@infradead.org, linux-kernel@vger.kernel.org, baolu.lu@linux.intel.com, david@gibson.dropbear.id.au, nicolinc@nvidia.com Subject: Re: [RFC 08/20] vfio/pci: Add VFIO_DEVICE_BIND_IOMMUFD Message-ID: <20210922150101.5548eb6f.alex.williamson@redhat.com> In-Reply-To: <20210921172939.GU327412@nvidia.com> References: <20210919063848.1476776-1-yi.l.liu@intel.com> <20210919063848.1476776-9-yi.l.liu@intel.com> <20210921172939.GU327412@nvidia.com> Organization: Red Hat X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 21 Sep 2021 14:29:39 -0300 Jason Gunthorpe wrote: > On Sun, Sep 19, 2021 at 02:38:36PM +0800, Liu Yi L wrote: > > +struct vfio_device_iommu_bind_data { > > + __u32 argsz; > > + __u32 flags; > > + __s32 iommu_fd; > > + __u64 dev_cookie; > > Missing explicit padding > > Always use __aligned_u64 in uapi headers, fix all the patches. We don't need padding or explicit alignment if we just swap the order of iommu_fd and dev_cookie. Thanks, Alex