Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp275861rdb; Thu, 25 Jan 2024 15:18:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IGCdpCt8LWlEJsu9qkKozQswFrRVX1QMRQw6yG9GzIKeLNtdjKfksIXI93LpDzFZsTX/zS8 X-Received: by 2002:a05:6a20:7d92:b0:19b:155c:7e5c with SMTP id v18-20020a056a207d9200b0019b155c7e5cmr511724pzj.39.1706224716956; Thu, 25 Jan 2024 15:18:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706224716; cv=pass; d=google.com; s=arc-20160816; b=i3qMbgoPhSuz+XWgtEB7gaJcLMUFsGfSVC8hrrWzLR9VydZ/Z531KPJrurPxAV9QgE 2gJW42tf3vZBzob4vSTVQo+Vm4U9h319prLXoKwsGOFE6g0NI0vGZgv7NlzZaevHlS/w k72OiNnHMvGDfsd8uGjZtUfjpRyX9MyUY9/2XOxqUzyRI7XMscQYH/uq8yifptYP/9mm 7o7J9IgeUX20JpNrc4CR6HkSpRaXdy4hPmdq3le1NYwKHr67omoait8Dr1V9qXvuItwv umdB1tmheaxdoav28GVIP+Josvvg7gS9lgEPHGPsQvQ43LpOWAka098+W3ZEDBw75ZkS VOAQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=lW3rN/GUfC9MH2Vd0nLE4NJgA/CgNgaKNYkIe/TMazY=; fh=sSogWyj+Vu8/ulRvHfp7io+SpkLUhCnDFJY1TUYNJRY=; b=YjzD6Zhr54E8R1Bithpp0Unjbwud2OINpH6D1T8a+tb5Z2byj90jef067zs/nHlbam qaebGGWppOjAvJ60VSfPZbIxEHquvev/DvfcTTLFeAstIi5VR1kLHqbPr6IInBb6YgFX 1uWX8ImmiGjnRUlhIwEaLTlKPv4QdFG7P8OIgIQYjzRu7ErslNH+Q5L6h6lBDQEpsTA+ Lnzt+j2aCFLSxVAa8u22Gx59RXUCpu7QZCxaGEwneEg5eN7sG5x+Fs/CYZ1gc3RKLaNc Z//QOZsI2eyQtpV9CS2bVBUDxmMyI/PPw3KR2INjpMzL49lr01QILfeDAfw62+iLvzOY trug== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=i9Whz7eE; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-39400-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39400-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id f38-20020a635566000000b005c1b30b1b65si41099pgm.648.2024.01.25.15.18.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 15:18:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-39400-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=i9Whz7eE; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-39400-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39400-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id DFA55B21E64 for ; Thu, 25 Jan 2024 23:13:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C016B12E48; Thu, 25 Jan 2024 23:12:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="i9Whz7eE" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4040B125AE for ; Thu, 25 Jan 2024 23:12:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706224370; cv=none; b=j19P3XHzI3+M9EMkWU9fZnxXde43olPMNSPWy44GULfbgvujqS9CrT7w9S6NMpXF5VzzjcuvtVBxykcstYL/mdX26q1kV3pl7fJ+uZHncoZwvbaNIIDMdpXtHFDF6Rg4CWTy5Kt0tAOis2B5AczqWnFzNF5/1TdwDSKl3O+ilCE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706224370; c=relaxed/simple; bh=PE2NThtLqeiZ9yHpAgDTL3wHhDpgAgVQH3ZlQRk/574=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=EFbPy9bhr0rS8IWh7F03J2pcjYCPa7PXx7FyWGO2mMmDdonzp46rZ+JryaLrhKLChgrFAqRkgtCN5pQzxuLyIH65g54JJbJESYhaXd8dCi/dKS/7CCCI50pQogmkc2qGtxlcK0qpGQKVIS6/dbSm11it8i/OrYHrQCK6eTLYcRg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=i9Whz7eE; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1706224368; 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: in-reply-to:in-reply-to:references:references; bh=lW3rN/GUfC9MH2Vd0nLE4NJgA/CgNgaKNYkIe/TMazY=; b=i9Whz7eEh9kfNDEcg/K56lUw08mIvRCqvZtM4ZNXvhZFVNBCtfLctuV/tPP27uxAC7sIHC OlgHryAekzzpkXw1SKxeYjvV3VPSUYR49EYQo/Z1KWiskQLfEG1DHG4fXDGPeBk30kz3N+ qq75JEDrdaNfSpyoPBG4WSwcy7cXY2w= Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-606-mKmN6K_JN7aWflAWwzHh_Q-1; Thu, 25 Jan 2024 18:12:46 -0500 X-MC-Unique: mKmN6K_JN7aWflAWwzHh_Q-1 Received: by mail-ej1-f72.google.com with SMTP id a640c23a62f3a-a31326f4839so97657266b.0 for ; Thu, 25 Jan 2024 15:12:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706224365; x=1706829165; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=lW3rN/GUfC9MH2Vd0nLE4NJgA/CgNgaKNYkIe/TMazY=; b=RrIq3ZimLV4o578U+KnCqEvBolIKquXvj1rUrIBOI4ViY0SwJsUZk3O+u5nwh9G11h RDR+MLfwBRplVhVPetT1dr0leunNcGksf3ekHxOLiohpXw5Kp0Rpp7ubrlZG6n/KfXcM 2ytHChgMUEuowUtq/wLbDvBOXVGus2xpzZHbspFdaALx23gHtOP6BRvdeGnok1WbtXk/ M1sCpqtOyiW6SMIYaTmBqEPKXE7LiyqL1sJ+dp45I5IgRQ7PfWMT+twNquznTaTcyPfL rt9w8NcKIu+fP6F0Crb9tWSr1Yq5OTvU2Eqf4vF06jRiljJTP+IGjSBealITo2NbvQgl DIBQ== X-Gm-Message-State: AOJu0Yx7LLxzu1gbfx3jW7p2ePaHgL/VpJyPYVZ9GvaT/yBVQoEezpR+ wt7Hf631Hw3OiepZKN1y6ZvMMRzmie39gSW1/4K4U1ZGZnQ3MwWMMiuz0JlorVXx7sfYvnPAEwt ZYD78mpyWNEPcUllT1e8C5iNmLFdAp4FVKla1305emp3aeSEHbgWje+s0A/UhAw== X-Received: by 2002:a17:906:f29a:b0:a2f:6084:6d25 with SMTP id gu26-20020a170906f29a00b00a2f60846d25mr385789ejb.9.1706224365277; Thu, 25 Jan 2024 15:12:45 -0800 (PST) X-Received: by 2002:a17:906:f29a:b0:a2f:6084:6d25 with SMTP id gu26-20020a170906f29a00b00a2f60846d25mr385781ejb.9.1706224364936; Thu, 25 Jan 2024 15:12:44 -0800 (PST) Received: from redhat.com ([2.52.130.36]) by smtp.gmail.com with ESMTPSA id tx24-20020a1709078e9800b00a31c5caa750sm801027ejc.177.2024.01.25.15.12.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 15:12:44 -0800 (PST) Date: Thu, 25 Jan 2024 18:12:40 -0500 From: "Michael S. Tsirkin" To: Suzuki K Poulose Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Feng Liu , Yishai Hadas , Alex Williamson , Jean-Philippe Brucker Subject: Re: [PATCH] virtio: uapi: Drop __packed attribute in linux/virtio_pci.h: Message-ID: <20240125181227-mutt-send-email-mst@kernel.org> References: <20240124172345.853129-1-suzuki.poulose@arm.com> <20240125174705-mutt-send-email-mst@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Thu, Jan 25, 2024 at 11:10:16PM +0000, Suzuki K Poulose wrote: > On 25/01/2024 22:48, Michael S. Tsirkin wrote: > > On Wed, Jan 24, 2024 at 05:23:45PM +0000, Suzuki K Poulose wrote: > > > Commit 92792ac752aa ("virtio-pci: Introduce admin command sending function") > > > added "__packed" structures to UAPI header linux/virtio_pci.h. This triggers > > > build failures in the consumer userspace applications without proper "definition" > > > of __packed (e.g., kvmtool build fails). > > > > > > Moreover, the structures are already packed well, and doesn't need explicit > > > packing, similar to the rest of the structures in all virtio_* headers. Remove > > > the __packed attribute. > > > > > > Fixes: commit 92792ac752aa ("virtio-pci: Introduce admin command sending function") > > > > > > Proper form is: > > > > Fixes: 92792ac752aa ("virtio-pci: Introduce admin command sending function") > > Apologies, for messing that up. Pls repost a fixed one. > > > > > Cc: Feng Liu > > > Cc: Michael S. Tsirkin > > > Cc: Yishai Hadas > > > Cc: Alex Williamson > > > Cc: Jean-Philippe Brucker > > > Signed-off-by: Suzuki K Poulose > > > --- > > > include/uapi/linux/virtio_pci.h | 10 +++++----- > > > 1 file changed, 5 insertions(+), 5 deletions(-) > > > > > > diff --git a/include/uapi/linux/virtio_pci.h b/include/uapi/linux/virtio_pci.h > > > index ef3810dee7ef..a8208492e822 100644 > > > --- a/include/uapi/linux/virtio_pci.h > > > +++ b/include/uapi/linux/virtio_pci.h > > > @@ -240,7 +240,7 @@ struct virtio_pci_cfg_cap { > > > #define VIRTIO_ADMIN_CMD_LEGACY_DEV_CFG_READ 0x5 > > > #define VIRTIO_ADMIN_CMD_LEGACY_NOTIFY_INFO 0x6 > > > -struct __packed virtio_admin_cmd_hdr { > > > +struct virtio_admin_cmd_hdr { > > > __le16 opcode; > > > /* > > > * 1 - SR-IOV > > > @@ -252,20 +252,20 @@ struct __packed virtio_admin_cmd_hdr { > > > __le64 group_member_id; > > > }; > > > -struct __packed virtio_admin_cmd_status { > > > +struct virtio_admin_cmd_status { > > > __le16 status; > > > __le16 status_qualifier; > > > /* Unused, reserved for future extensions. */ > > > __u8 reserved2[4]; > > > }; > > > -struct __packed virtio_admin_cmd_legacy_wr_data { > > > +struct virtio_admin_cmd_legacy_wr_data { > > > __u8 offset; /* Starting offset of the register(s) to write. */ > > > __u8 reserved[7]; > > > __u8 registers[]; > > > }; > > > -struct __packed virtio_admin_cmd_legacy_rd_data { > > > +struct virtio_admin_cmd_legacy_rd_data { > > > __u8 offset; /* Starting offset of the register(s) to read. */ > > > }; > > > @@ -275,7 +275,7 @@ struct __packed virtio_admin_cmd_legacy_rd_data { > > > #define VIRTIO_ADMIN_CMD_MAX_NOTIFY_INFO 4 > > > -struct __packed virtio_admin_cmd_notify_info_data { > > > +struct virtio_admin_cmd_notify_info_data { > > > __u8 flags; /* 0 = end of list, 1 = owner device, 2 = member device */ > > > __u8 bar; /* BAR of the member or the owner device */ > > > __u8 padding[6]; > > > > > > Acked-by: Michael S. Tsirkin > > > > I will queue this. > > Thanks > Suzuki > > > > > > -- > > > 2.34.1 > >