Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp493870ybb; Wed, 8 Apr 2020 04:13:09 -0700 (PDT) X-Google-Smtp-Source: APiQypJSR0jQ0SLE7tqRo/SCMq9Gn1cmyzP3l7MykAoZb8UQ8kG8fFd5w7J/BG3mruofdH2iY1z+ X-Received: by 2002:a05:6830:208c:: with SMTP id y12mr4278107otq.77.1586344389059; Wed, 08 Apr 2020 04:13:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586344389; cv=none; d=google.com; s=arc-20160816; b=N3Dfhj7Mmy14LM/Sp1uUb+kGFn1heeybfkzwPpkRhcwLYvt66gmPn8s5F3AoarxLAV K47gwRt1zAO81thcDDb9fyFN0r/M0kjDJLPRDZVgFBgxNqNGDllLuqnn90b9OqhwH45I DUg9gqqp08Z3wFVkpU/56Zc+310wMMQzKRMhummxUvFPWEdBhv/3rYiPpfWIUFAjjPJ4 j3NuNcXzydm22n5pZj53JKhsSRW2XOvFRYWamI1VfnV82aeYEhbZL+DIPveWu36L0Kh4 oAF9U0ZWznbQJ8meCkkT2NjUaBDNaFAtsHyaRoGmV66RgqiGOHzyVY0OwVg/dvZ1ekwZ uzFg== 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=CGYxPY0UmZ+KsvjUaaa1RrlD6l1Y5r/qTWBeIw/gLCU=; b=LJTwDxHvOPwnk0SsgjrqiW5+2sG8qrOAbI2ZmEue2w8jI0qDa3CdoFC6blfVfNr+p7 NZ3qx+jgK/EUNB/CYMNyJ4s9YaRTpVLMVVWb+jP9oLoEyIMvg0JteTUF5VFehW1zI6oD W1YB4d93FdvaEJnBYD0EAzn/TDSViNXZ+2tqlwQtvdEsijMSwX7XOlOXRkj9+VrBel0t UEwossUaP1Y7TXOY+vERFridXSkyIm4dAz0j0SheM/YEBjTH82wMYuDrhT849isKvG2P S0h3Q6yF2D1TWTTMg+iFBA/MBAyhln49D6yoEA2AOhsN3dRMjzGbAiTGbvmI+w0pVywV rd9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=qL3pjtMb; 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 x1si2297644otq.201.2020.04.08.04.12.51; Wed, 08 Apr 2020 04:13:09 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=qL3pjtMb; 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 S1728371AbgDHLLd (ORCPT + 99 others); Wed, 8 Apr 2020 07:11:33 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:56874 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728129AbgDHLLc (ORCPT ); Wed, 8 Apr 2020 07:11:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=CGYxPY0UmZ+KsvjUaaa1RrlD6l1Y5r/qTWBeIw/gLCU=; b=qL3pjtMbis9rU768jBizcb/Iy5 lkgPZ7sOpK/DsPBuKBnqJPwEoh7EzhRMARN9MxfFoYYI+3cRY8PVXlVrCrA0udfxR5EDjqMc0V+re nLC3SDkLS8Utb2VXyecpgZfXVUU5LMrwtS04bHrIHbiRDeITZiyVdGtK48rrTsO5hjWT0m0UeuXg1 tqHJFc/BZHLjSBL8q/xUAIWPg4h93yY40YdgaGCVageZbXlihC5CmwwZiGswbW56qbS7qUjqaFCUs xSCtdr8d62RmcMAbt4O+MdMpNnruGMaaKjQTvSpcNi0aZG7iWT2tmw1b7zea1c4rmvcajFYLhz76g i4M6h/2g==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jM8c8-0005fM-F0; Wed, 08 Apr 2020 11:11:24 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id C0CD1300130; Wed, 8 Apr 2020 13:11:22 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id AC0CC2B120793; Wed, 8 Apr 2020 13:11:22 +0200 (CEST) Date: Wed, 8 Apr 2020 13:11:22 +0200 From: Peter Zijlstra To: Ankur Arora Cc: linux-kernel@vger.kernel.org, x86@kernel.org, hpa@zytor.com, jpoimboe@redhat.com, namit@vmware.com, mhiramat@kernel.org, jgross@suse.com, bp@alien8.de, vkuznets@redhat.com, pbonzini@redhat.com, boris.ostrovsky@oracle.com, mihai.carabas@oracle.com, kvm@vger.kernel.org, xen-devel@lists.xenproject.org, virtualization@lists.linux-foundation.org Subject: Re: [RFC PATCH 14/26] x86/alternatives: Handle native insns in text_poke_loc*() Message-ID: <20200408111122.GT20713@hirez.programming.kicks-ass.net> References: <20200408050323.4237-1-ankur.a.arora@oracle.com> <20200408050323.4237-15-ankur.a.arora@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200408050323.4237-15-ankur.a.arora@oracle.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 07, 2020 at 10:03:11PM -0700, Ankur Arora wrote: > struct text_poke_loc { > s32 rel_addr; /* addr := _stext + rel_addr */ > - s32 rel32; > - u8 opcode; > + union { > + struct { > + s32 rel32; > + u8 opcode; > + } emulated; > + struct { > + u8 len; > + } native; > + }; > const u8 text[POKE_MAX_OPCODE_SIZE]; > }; NAK, this grows the structure from 16 to 20 bytes.