Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1128960imu; Wed, 28 Nov 2018 05:09:42 -0800 (PST) X-Google-Smtp-Source: AFSGD/V9RPRcFOT828JM6ROXPQNNq7dv5iSphjNqlGJcGDlJ6QR/71OtZc014oj5QmeN6K/VQJ0q X-Received: by 2002:a63:1a0c:: with SMTP id a12mr32530145pga.157.1543410582342; Wed, 28 Nov 2018 05:09:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543410582; cv=none; d=google.com; s=arc-20160816; b=NOkahxnAX/kySlTD34wf4ZttOrDhg5UcsUwaWj7TctGNWZCP9nZ4Wcq3NvS2T36Puz y6QNz+2ZKCbbiSByzxsJKZ2J6bX8AsipvOpWklGU+PQ/FZlnly63v6G+qqkN+1cOed4c 2xqlq+wEo6cT17nWtelTS0+db1zK3EH+CQ8IU4bRqqkpi5xKgfvwSe4efaWiA5YN9RrK k/h2PfUrJsLni9D3ntRwwpMYIPVbswgKDE657HZBOCWOWhKlrVu+28JCpkh5WXcMgAb5 jl3MOEf5H9yuO74uYWA0cNc0TeNrYOmFRnQYFMdbb9fjitllj0syMGHo0QWHUooheB8v oj5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=e9nzv8ISKKES1yLx/A8rdf/LefqTUdsxXXDLrQ3ZFXo=; b=qDsfYQNXn1snEfzz3x6x8znTJ5n8piw+oFG4IraZTVk0Lhuui/A/LLMLFQrpV6/AlE xLh9oQF0nM7Vn7npgOSW/wCMq9gaqjUUYLQAcWQAT1P4Vrir9jp6oGOKJ6utGFzVTZbz aXlYCo/LJK3kztjfLVG9CvheOoYfXGC+HcmzcKYlaNfp+GWBfUtISLfKWWL9S+vfoYV9 RcePt2e8qobNmVdF/QqTEkr+nuQnZzQd1NvyYdpQ7vNbN2eIyE9yEDeMPYI+ob0kPhlG QTzK/aL97Qi4rcLDx1TOuR7O9pPLC5X3fWaqPvLgRutujVCG5aPkC0Oa0X8i9bNoXi7m MFiA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 86si9022901pfl.46.2018.11.28.05.09.27; Wed, 28 Nov 2018 05:09:42 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728488AbeK2AJb (ORCPT + 99 others); Wed, 28 Nov 2018 19:09:31 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:59649 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727823AbeK2AJa (ORCPT ); Wed, 28 Nov 2018 19:09:30 -0500 Received: from hsi-kbw-5-158-153-52.hsi19.kabel-badenwuerttemberg.de ([5.158.153.52] helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1gRzZE-0005cU-CN; Wed, 28 Nov 2018 14:07:48 +0100 Date: Wed, 28 Nov 2018 14:07:42 +0100 (CET) From: Thomas Gleixner To: Vitaly Kuznetsov cc: Nadav Amit , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , "Michael Kelley (EOSG)" , "kvm@vger.kernel.org" , Paolo Bonzini , =?ISO-8859-2?Q?Radim_Kr=E8m=E1=F8?= , "linux-kernel@vger.kernel.org" , "x86@kernel.org" , Roman Kagan Subject: Re: [PATCH v2 1/4] x86/hyper-v: move synic/stimer control structures definitions to hyperv-tlfs.h In-Reply-To: <87a7ltjxnz.fsf@vitty.brq.redhat.com> Message-ID: References: <20181126154732.23025-1-vkuznets@redhat.com> <20181126154732.23025-2-vkuznets@redhat.com> <20181126200413.GA7852@rkaganb.sw.ru> <87wooyk6na.fsf@vitty.brq.redhat.com> <20181127184835.GA5147@rkaganip.lan> <8A215F49-BB8F-4E93-AC62-EC33B4734F24@gmail.com> <87a7ltjxnz.fsf@vitty.brq.redhat.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-1590561786-1543410468=:1532" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-1590561786-1543410468=:1532 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT On Wed, 28 Nov 2018, Vitaly Kuznetsov wrote: > Nadav Amit writes: > > > > > On a different note: how come all of the hyper-v structs are not marked > > with the “packed" attribute? > > "packed" should not be needed with proper padding; I vaguely remember > someone (from x86@?) arguing _against_ "packed". Packed needs to be used, when describing fixed format data structures in hardware or other ABIs, so the compiler cannot put alignment holes into them. Using packed for generic data structures might result in suboptimal layouts and prevents layout randomization. Thanks, tglx --8323329-1590561786-1543410468=:1532--