Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2861555imu; Thu, 29 Nov 2018 11:23:45 -0800 (PST) X-Google-Smtp-Source: AFSGD/Uk+4DaQJfAf1M+kpcieu65cWLiCT8iKHgsHia3a/tHMMc3tUKfLh4cwDfDj2M6mnKQnqUq X-Received: by 2002:a17:902:6948:: with SMTP id k8mr2683781plt.2.1543519425865; Thu, 29 Nov 2018 11:23:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543519425; cv=none; d=google.com; s=arc-20160816; b=bhm6szWZv+xX2iDECq09h61NwJEkDlgKPHT7o5L/mBGK/CoTOhL6OyxAdM06GTZeKk D6Ad3pQV4NmUaCqkLKnzLCnKW0vneeub2w7H4Fhi5qV/vcq013fmCuAo7ku9LSM98C3z SlVtTnm4Ni9Bt491FIjz+krf+B+jHe6tFoD94cZqHMsmj8pdBb1iN9PYHIn68ryO/56v UrP09VWT/cCbvDxvKQUQRy21qV1CNikmweMm4ZFouPQhx6uAjQfFjJRUWg2DxTlcocKu geYWR84SVSm2O4y//IxAF/FyVygyjhO58DMUB7dFP+xvKqswrcOOxm5i9MJe2FpRx8Vw b6/w== 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=duV0EDFCscC2ILOWStWEbPoaohtZ3z30d1/nmB+Jgkk=; b=wCXkd6tnNZ1oQuxHzsWZoWm+9atLjtkhXgKpgD3GOI0NXNU0oSDNR+h89NCZrzBs0s JKth+Eg22wQI4U9ZRK6+LEJ+u1BPKXIEztkaBUUX/h81ztHFatT4watvkMltCLtIJCoI +LrIWA3jQuNkyN6Dn5d7qlRUOL+B3SCBqrlxX+gF2YAVBxlNLS4+xZsbpENink7B8S95 r4nvP5onGR9v/JwMOnE0oGejrB2kpnLnK0gwqcxJCljkRQJv7IpAR2zRwzwez3pLLJDd BUA/tLYjio0QJaa+FW2NUOuabr7nTMgzsMQvRyGRyDTef53jCiwjgiQ7jJWtXhZZv0vT XACA== 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 33si2138847pls.408.2018.11.29.11.23.31; Thu, 29 Nov 2018 11:23:45 -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 S1726469AbeK3G2t (ORCPT + 99 others); Fri, 30 Nov 2018 01:28:49 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:35774 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725776AbeK3G2t (ORCPT ); Fri, 30 Nov 2018 01:28:49 -0500 Received: from p4fea46ac.dip0.t-ipconnect.de ([79.234.70.172] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1gSRt9-0007nG-S0; Thu, 29 Nov 2018 20:22:16 +0100 Date: Thu, 29 Nov 2018 20:22:10 +0100 (CET) From: Thomas Gleixner To: Vitaly Kuznetsov cc: Nadav Amit , Paolo Bonzini , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , "Michael Kelley (EOSG)" , "kvm@vger.kernel.org" , =?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: <87bm68i099.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> <87bm68i099.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-1619686258-1543519335=:1657" X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 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-1619686258-1543519335=:1657 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT On Thu, 29 Nov 2018, Vitaly Kuznetsov wrote: > Nadav Amit writes: > > >> On Nov 28, 2018, at 5:07 AM, Thomas Gleixner wrote: > >> > >> 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. > > > > Right, I forgot about the structs randomization. So at least for it, the > > attribute should be needed. > > > > Not sure when randomization.s used but Hyper-V drivers will of course be > utterly broken with it. > > > To prevent conflicts, I think that this series should also add the > > attribute in a first patch, which would be tagged for stable. > > As the patchset doesn't add new definitions and as Paolo already queued > it I'd go with a follow-up patch adding "packed" to all hyperv-tlfs.h > structures. The question is how to avoid conflicts when Linus will be > merging this. We can do: > - Topic branch in kvm > - Send the patch to x86, make topic branch and reabse kvm > - Send the patch to kvm > - ... ? > > Paolo/Thomas, what would be your preference? As Paolo already has it, just route it through his tree please. Thanks, tglx --8323329-1619686258-1543519335=:1657--