Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1213498imm; Tue, 5 Jun 2018 10:47:06 -0700 (PDT) X-Google-Smtp-Source: ADUXVKL31+Jo3IUoV6L09Q8RTFhzeGx8MU2QuCFe0Us4GXEQlx2l1R0/h1RuHNzXmalfOH2bvRIC X-Received: by 2002:a62:6406:: with SMTP id y6-v6mr22625674pfb.204.1528220826543; Tue, 05 Jun 2018 10:47:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528220826; cv=none; d=google.com; s=arc-20160816; b=H/0vQffATQpLRL4C+HKIbBewLX6SjQWZgNOzFHZf2B2fboz35I+efKaAIydFUlOrUp mX1m65LHo/q8pojgDGrcNrAAF7uZ6ewQEEvUHjIclQh3mtGEvciqYWyhQatcmRCEf00H K+e5n7RrJU9z+OLpD613qy9L7DxjpGSqxmWYC1ILTDHTzKCPGeiyH+AYFhMI/MICCWOd lGkgtCiwnwkXDkahg2PPkCU0jt9U1kNlnGY5yoMqy7JFbagpsKGs0qxSQq1CqOk/xxKn 4BZ7mK4kyj6YEJyIKNT2T/uJ6VP/Q/nTwe73oaAhKfS1qdwpFddd6jStFeWj96p9WdD8 /1bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:reply-to:mime-version:dkim-signature :arc-authentication-results; bh=G7qd6pOrbSjJ3l7kgV+gH7pakoFMnk9WPQjalJI1WPg=; b=Vj0TlFS+jwCIfWV+jnJ56lNG2rbjjsc/nqK6TC2MjWBRuV/xaQ68QMmk8cJ/hzOoYS kNG8I9OUWqlqtFEB/yxcH29ziRB7H6EFDalCEiGTDUwHVddAR0K6f9hgyTntv8eCG5/m OYrkcmQmnWhKKpp9eEz7dKAuQG1paVzombp3o3wjkhkpiPgxkX6oe9IB651Jhf1iCPr3 gAY66XzUHPS0uzhUPVR9jfINubOkTeqRvo/E8kVZHoNX1jlqv+uAVu9zz3yK1prJttsV jC/K3Td6atdB0ZMywioxDJokFtiZhY94U9YSnPZ7ZZ2gy5qbOQJBHYWK0UGNogGwAvvU C9Hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sTBUw1ng; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k72-v6si11887076pfj.141.2018.06.05.10.46.51; Tue, 05 Jun 2018 10:47:06 -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=pass header.i=@gmail.com header.s=20161025 header.b=sTBUw1ng; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751890AbeFERqX (ORCPT + 99 others); Tue, 5 Jun 2018 13:46:23 -0400 Received: from mail-lf0-f68.google.com ([209.85.215.68]:44555 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751764AbeFERqV (ORCPT ); Tue, 5 Jun 2018 13:46:21 -0400 Received: by mail-lf0-f68.google.com with SMTP id 36-v6so4891769lfr.11; Tue, 05 Jun 2018 10:46:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc; bh=G7qd6pOrbSjJ3l7kgV+gH7pakoFMnk9WPQjalJI1WPg=; b=sTBUw1ngiWYpTKE52LnvYij4v5lLpfN/vBHnWzQn93Eq/RPKikDbB/IFEvypHmhSh0 7s3VkgZrJP5ihVh8nSgW/PcFEV6ST6jgVJsX3RAXKtzJb60eZOWpLrKp4PIRvfATy/D6 2hH/s5xgwdUP4k9xzgg1urilqQ4gtHq1GY6Du3n6wbox4bHygmDD7FSiECfCRe1N9YC+ 1Pi7SEtXrrvQZWwpFPvjg9MUtUyiWt/gFJ5L7//L4lC/zZOExTcLMcphEE3P6JAKMOJ9 WLsVWmeUw8PZhDlLUcz/CRYrbl4ScTrVuD3A7lHHuFBmsSBaZs2nvKzAL41iRfVUNMJJ qcKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to:cc; bh=G7qd6pOrbSjJ3l7kgV+gH7pakoFMnk9WPQjalJI1WPg=; b=ZN4AY5d0VxS/vE156zYEaZReCJcHUjaLYlUSRHgSgvg6oMJpuLfAqLnrGUYVfKu2aH oP/TsMG60We+9le1pnGGPHz6KZr0tRRKGXeVITVdKUeoIbHkg21iBpcJXR2WCo5sToPu qhJwYfOmnCSvl+xji1OgmM1TPOmVLRD0JUzAtBuHKljXhEI+gUJEgVs8PeKKUH2xmCTc 1jZEmGwVUBc2kyI15IAKDra2/WyiuDJ8opfJwOfnQYtEQM9CmnQoPvMWfhEAWxiFJWzY iQUqQgH1yvWmA081FkuIVarJPVGVH06tG6OM9UYWpSBhqbT2h4lDgYPsJ6H87i27+yBm HpTg== X-Gm-Message-State: APt69E26rbG5MK7X+Gw2DO5H2lwpZdZGQ8OoVZM1s3c1a+RDOBcStSJP end1a2o9Jy6iK+pJ3H2q7wpro3EoA0z6cxWQgxc= X-Received: by 2002:a19:9c4b:: with SMTP id f72-v6mr2336296lfe.119.1528220779922; Tue, 05 Jun 2018 10:46:19 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a19:b87:0:0:0:0:0 with HTTP; Tue, 5 Jun 2018 10:46:19 -0700 (PDT) Reply-To: sedat.dilek@gmail.com In-Reply-To: <0dd024cd-e05a-0d67-c1bf-1a532714bb1a@zytor.com> 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: Sedat Dilek Date: Tue, 5 Jun 2018 19:46:19 +0200 Message-ID: Subject: Re: [PATCH v2 2/2] x86: paravirt: make native_save_fl extern inline To: "H. Peter Anvin" Cc: Nick Desaulniers , akpm@linux-foundation.org, ard.biesheuvel@linaro.org, aryabinin@virtuozzo.com, akataria@vmware.com, boris.ostrovsky@oracle.com, brijesh.singh@amd.com, caoj.fnst@cn.fujitsu.com, gregkh@linuxfoundation.org, jan.kiszka@siemens.com, jarkko.sakkinen@linux.intel.com, jgross@suse.com, jpoimboe@redhat.com, kirill.shutemov@linux.intel.com, mingo@redhat.com, mjg59@google.com, mka@chromium.org, pombredanne@nexb.com, rostedt@goodmis.org, tglx@linutronix.de, thomas.lendacky@amd.com, tweek@google.com, linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org, x86@kernel.org, virtualization@lists.linux-foundation.org, astrachan@google.com, manojgupta@google.com, ghackmann@google.com, tstellar@redhat.com, keescook@google.com, yamada.masahiro@socionext.com, michal.lkml@markovi.net, linux-kbuild@vger.kernel.org, geert@linux-m68k.org, will.deacon@arm.com, mawilcox@microsoft.com, Arnd Bergmann , rientjes@google.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 5, 2018 at 7:31 PM, H. Peter Anvin wrote: > On 06/05/18 10:28, H. Peter Anvin wrote: >> On 06/05/18 10:05, Nick Desaulniers wrote: >>> + >>> +/* >>> + * void native_restore_fl(unsigned long flags) >>> + * %rdi: flags >>> + */ >>> +ENTRY(native_restore_fl) >>> + push %_ASM_DI >>> + popf >>> + ret >>> +ENDPROC(native_restore_fl) >>> +EXPORT_SYMBOL(native_restore_fl) >>> >> >> To work on i386, this would have to be %_ASM_AX in that case. >> >> Something like this added to might be useful; then you can >> simply: >> >> push %_ASM_ARG1 >> > > Version with fixed typo... Small typo in the commit-subject... s/argument registes/argument registers - sed@ -