Received: by 2002:a25:2c96:0:0:0:0:0 with SMTP id s144csp1681943ybs; Tue, 26 May 2020 00:37:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJX+laXC6a52dzeEdUzkmQioYopsUS9JBuUzpauyPV0qoaCxoO3Zr8TvupFA9xhOg/JzXB X-Received: by 2002:a17:906:4dc3:: with SMTP id f3mr21254901ejw.323.1590478643066; Tue, 26 May 2020 00:37:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590478643; cv=none; d=google.com; s=arc-20160816; b=PBU/hBf6Ubn5x4ltlUONw64l8kI5Qn6LYSlDTEIL20bG5zppaMOpj1z0b5KNJ+uD1u enYTT+3bgapTVn1U9Kd+j5EubtG23f6y5WKDMMQB3Hi+EurpqIFfM+I/xPC8Co3k0/Fk WW6z1N5NEV9PLL3E1fsUNji0UtwfaHwKJSM7PUaRwtZX/wno9aRbggbSOG6c1A5GzyLR 1cum+BLa6uOQ8V1OI6yMVCIld1IPyBOGblODsTSQCOwtu5yyRA0lUVuDmON6pGG3RjG+ AKmhz+qkShTF5q3H8uDQEcLzpt7txAXnVxRimrASUVgqNaVc8PaQSnc8yKBgCv31t2SS zUSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=IXSEBShIqz+Km82NcLwFJuGePTqERhJbdm2jEP6sQ2o=; b=0vVJe5eQiVQx9eooPY5ZRtvqzkmJN/XkuRJLS+2lA6HKUi8seoixACMRMaWpl9ehXp GidtaudNx6LroXzE9/+e9zeEFZkwa1gDmdrAm/VMrC/ObBQgy/tW9ZwrDDxAchqTljda KZEgoLvOBaaqTXZbChi6wDnp8uDp3rHXE6Y1KRUPQqMaN2P7PWVWNZ7fmNck/OvSoui9 a4oeWuhHSxxO/464JzgfRJo2ZG04jwk0apMDcqG1rS4VMriZqU18z1wQoIm3gWXa8akp Nl2Y9U+ohdcWXIgWDbH5ZIvui5P4CZ1k+uAFEpJeJCERjR/f/VLtzgoO+lKz4su12mdC 81GQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0rEE8+xp; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g2si10903815edm.397.2020.05.26.00.36.47; Tue, 26 May 2020 00:37:23 -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=@kernel.org header.s=default header.b=0rEE8+xp; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728888AbgEZGo6 (ORCPT + 99 others); Tue, 26 May 2020 02:44:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:37252 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726900AbgEZGo6 (ORCPT ); Tue, 26 May 2020 02:44:58 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 32768207D8; Tue, 26 May 2020 06:44:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1590475497; bh=ee0xUeLx8woNb4NNohFSdm4jIhZLVDjEwLtDO83PJpU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=0rEE8+xpu6rI+f7GTJ/mWWnWgFhiw3xwynyZtW9wK2ABbmiotKI75cycXIgrka+0s 8/MvOufClfzsNNG3eV84/W0QGiMkcX/D+Nph4NY+qDreVlGRdOLNEL82cdeveGAxma 8B5/Wu9u5qbOL0NJXbbkADeEVM5RR7fPJpXkiZMo= Date: Tue, 26 May 2020 08:44:55 +0200 From: Greg KH To: Andra Paraschiv Cc: linux-kernel@vger.kernel.org, Anthony Liguori , Benjamin Herrenschmidt , Colm MacCarthaigh , Bjoern Doebel , David Woodhouse , Frank van der Linden , Alexander Graf , Martin Pohlack , Matt Wilson , Paolo Bonzini , Balbir Singh , Stefano Garzarella , Stefan Hajnoczi , Stewart Smith , Uwe Dannowski , kvm@vger.kernel.org, ne-devel-upstream@amazon.com Subject: Re: [PATCH v3 02/18] nitro_enclaves: Define the PCI device interface Message-ID: <20200526064455.GA2580530@kroah.com> References: <20200525221334.62966-1-andraprs@amazon.com> <20200525221334.62966-3-andraprs@amazon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200525221334.62966-3-andraprs@amazon.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 26, 2020 at 01:13:18AM +0300, Andra Paraschiv wrote: > +struct enclave_get_slot_req { > + /* Context ID (CID) for the enclave vsock device. */ > + u64 enclave_cid; > +} __attribute__ ((__packed__)); Can you really "pack" a single member structure? Anyway, we have better ways to specify this instead of the "raw" __attribute__ option. But first see if you really need any of these, at first glance, I do not think you do at all, and they can all be removed. thanks, greg k-h