Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1236851imm; Tue, 5 Jun 2018 11:08:53 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIeJDr0ep3F6QxgnQD57QpRsCTX8ubiVHZ6zFziBqEilWNpaKCpYwh7JLLiUd4tX6xZihSj X-Received: by 2002:a62:e53:: with SMTP id w80-v6mr26948911pfi.236.1528222133742; Tue, 05 Jun 2018 11:08:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528222133; cv=none; d=google.com; s=arc-20160816; b=qAVW8lLyARe+ixDcn+bdESfsu2snmyumiBOGRqRSAalUEF/IeHYR8QcGvq+et1PVx2 IOS5kUWAQF3uwBux1ASsqe9/E+8Pq+6pG9xpAvm/5D2JrJET1tt91/7+hVd0RsRvqPn4 M4c5rvkxn3zVHhbD3nfjMAnzQrGt0DqQYCPrH/c3dCbM1B0/mzOq6EjVzz8cQ7Nckcnk nI6sVlXGh5dLvnriGRqkulxOe5kdf5F5bppNlSFF+VNtqbQyaMwGArJa6ZhueODIj83p 7kZGK/wWon/AYVV50124IIhh9jVTeRj1/VK7Jal/d+FDOwJLr0uL5D1T9k0YyGCAJgyA bqSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=1mdeor8qIsf7V5lDbglNCLRCTtLb2J8hQpLRcnehvog=; b=sBEfoRUNZ/CZAc7KU2vRDlBQBZC7AJ33CMZf3ug/JevvGdJbP9D8zFy2xFViB+Kbdq QxKQ2O2sKugFXv+3IkxLNB0itJgAEErbvPwDPKIC5HD/WltBP0898n+KdizLQ788tJzR d5XAFY9+YFi1nla8Dmtre7LgpcgekPiwCvIh7CDvxQG5oYWTDjbu9FEfq6BnhQAXfsiJ xz4GNIiPHQVGG6Doaa1/93+D3gCaSqgT5qaNgnHzLdf7IE1XuwYbou+HEqSB60ta5FGA ljHCT64N/zz18TkAFvwpPvZ9/psKCxYpkqfFbaaSr6ujYvYkWfATioqb+PBIBEH6VWCC NORQ== 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 g19-v6si1212263pfi.212.2018.06.05.11.08.39; Tue, 05 Jun 2018 11:08:53 -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; 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 S1752003AbeFESIR (ORCPT + 99 others); Tue, 5 Jun 2018 14:08:17 -0400 Received: from terminus.zytor.com ([198.137.202.136]:34047 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751832AbeFESIP (ORCPT ); Tue, 5 Jun 2018 14:08:15 -0400 Received: from hanvin-mobl2.amr.corp.intel.com ([134.134.139.76]) (authenticated bits=0) by mail.zytor.com (8.15.2/8.15.2) with ESMTPSA id w55I6MLJ1463694 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Tue, 5 Jun 2018 11:06:23 -0700 Subject: Re: [PATCH v2 2/2] x86: paravirt: make native_save_fl extern inline To: Nick Desaulniers Cc: Andrew Morton , Ard Biesheuvel , Andrey Ryabinin , akataria@vmware.com, boris.ostrovsky@oracle.com, brijesh.singh@amd.com, Cao jin , Greg KH , "J. Kiszka" , jarkko.sakkinen@linux.intel.com, jgross@suse.com, Josh Poimboeuf , kirill.shutemov@linux.intel.com, mingo@redhat.com, mjg59@google.com, Matthias Kaehlcke , Philippe Ombredanne , rostedt@goodmis.org, Thomas Gleixner , thomas.lendacky@amd.com, Thiebaud Weksteen , linux-efi@vger.kernel.org, LKML , x86@kernel.org, virtualization@lists.linux-foundation.org, Alistair Strachan , Manoj Gupta , Greg Hackmann , sedat.dilek@gmail.com, tstellar@redhat.com, Kees Cook , Masahiro Yamada , Michal Marek , Linux Kbuild mailing list , geert@linux-m68k.org, Will Deacon , mawilcox@microsoft.com, Arnd Bergmann , David Rientjes References: <20180605170532.170361-1-ndesaulniers@google.com> <20180605170532.170361-3-ndesaulniers@google.com> <26c7fd1c-ab40-368f-c2e3-43a6b45157fd@zytor.com> <0dd024cd-e05a-0d67-c1bf-1a532714bb1a@zytor.com> From: "H. Peter Anvin" Message-ID: Date: Tue, 5 Jun 2018 11:06:22 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/05/18 10:52, Nick Desaulniers wrote: > > Does the kernel have a different calling convention for 32b x86? How > does that work? regparm=3? Does that need to be added to the > declaration? > Yes, -mregparm=3. No, doesn't need to be added to the declaration. >> Something like this added to might be useful; then you can >> simply: >> >> push %_ASM_ARG1 >> >> Version with fixed typo... > > Oh, nice, thanks! I'll pick this up and add it to my patch set for v3 > (or did you want me to review/sign-off now?) I can pick up Sedat's > suggestion. > Add it to your patchset and add your own signoff underneath mine. -hpa