Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1185562imm; Wed, 17 Oct 2018 15:04:43 -0700 (PDT) X-Google-Smtp-Source: ACcGV622mNWKoV+7gziD/HzMOuTJyDlSgltucseeQbKfxkkDNuzyZD0fK1hmOGmmLIX9PSygOgB1 X-Received: by 2002:a17:902:9f95:: with SMTP id g21-v6mr15066979plq.129.1539813883834; Wed, 17 Oct 2018 15:04:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539813883; cv=none; d=google.com; s=arc-20160816; b=l7HgTI/dMUtyL8WHsK52wskz0u2M/2dc9cPB9+nnKsXlKac8T/MCIDbwduRDd22bUf T0ehLOi8d4o0MlRb6OIot/1o2dkbE9uPBHLFNMKMPjwVr65kaOjiAbMrpaXQHxepz3Og daSrfT1iWTKEf++Rh4hTjCc80v2EeFHgnYfpF9IVZIWoPUHDkR/Z1315Fh7TSos+Cn9T Nr68G+f2uQictXEMxwO1X0TzQB2okkx39+B8leGEzUMWawKOpd4dF3G/TmMnjYoDnIQY 9Z7AX89KelSQBL4SXo3jQI9FbvVfT/cuoW9wQMM0huJFt+gg6XACudctyxXjySKuaGye LRFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=5n7M0j6M+xb7/goiJoW6vy4mGYtV15KhC8ILXrUfBpg=; b=UHDXw4cCuzk1BotqkfA5cKQWoaqDvF9+hzzDw1aZu8Qb/yEeWb5XpiW1WWdjv0a79R dlECJDn+NPxDSdupXw0B4mmkoqnSueksW9bhTXPI+fn790jyq35aWQtvMQA/qZCQfmk1 +3v16wipS41LHwEyFD6+LjZKeImOWxrxcw5hPP9PF1wSP/Z8TUzRmb0bk5t4oMtgviid UMFOEeZvACHdSW78jn/7GjRBmWgvoVdJyVwenHZyFR9sEliX1nFwM9nuOKgfYWeGfXRc lPrU/FKgO/Gr2drOW/MxF2g+9wFpTRZLW+NKORWyAWJmTfh6wZoKh8lYmX72qANAgvA6 Rabw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v67-v6si19643361pfk.264.2018.10.17.15.04.25; Wed, 17 Oct 2018 15:04:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727360AbeJRGBg (ORCPT + 99 others); Thu, 18 Oct 2018 02:01:36 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43034 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727028AbeJRGBg (ORCPT ); Thu, 18 Oct 2018 02:01:36 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 83F5D8666A; Wed, 17 Oct 2018 22:03:55 +0000 (UTC) Received: from w520.home (ovpn-116-90.phx2.redhat.com [10.3.116.90]) by smtp.corp.redhat.com (Postfix) with ESMTP id 26F3B87EC3; Wed, 17 Oct 2018 22:03:55 +0000 (UTC) Date: Wed, 17 Oct 2018 16:03:54 -0600 From: Alex Williamson To: Konrad Rzeszutek Wilk Cc: Wenwen Wang , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Kangjie Lu Subject: Re: [PATCH] drivers/vfio: Fix an 8-byte alignment issue Message-ID: <20181017160354.6a732fa5@w520.home> In-Reply-To: <20181017211532.GB9499@localhost.localdomain> References: <1539800299-2787-1-git-send-email-wang6495@umn.edu> <20181017211532.GB9499@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Wed, 17 Oct 2018 22:03:55 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 17 Oct 2018 17:15:33 -0400 Konrad Rzeszutek Wilk wrote: > On Wed, Oct 17, 2018 at 01:18:19PM -0500, Wenwen Wang wrote: > > This patch adds a 4-byte reserved field in the structure > > vfio_eeh_pe_op to make sure that the u64 fields in the structure > > vfio_eeh_pe_err are 8-byte aligned. > > Won't this break 32-bit kernels? That is the size of the structure > will now be 4 bytes bigger.. Hi Konrad, EEH support here depends on SPAPR_TCE_IOMMU which depends on either PPC_POWERNV or PPC_PSERIES, both of which depend on PPC64. So I don't think 32-bit kernels are a concern here. Thanks, Alex > > Signed-off-by: Wenwen Wang > > --- > > include/uapi/linux/vfio.h | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/include/uapi/linux/vfio.h b/include/uapi/linux/vfio.h > > index 1aa7b82..3e71ded 100644 > > --- a/include/uapi/linux/vfio.h > > +++ b/include/uapi/linux/vfio.h > > @@ -729,6 +729,7 @@ struct vfio_eeh_pe_op { > > __u32 argsz; > > __u32 flags; > > __u32 op; > > + __u32 __res; > > union { > > struct vfio_eeh_pe_err err; > > }; > > -- > > 2.7.4 > >