Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp6343104imm; Mon, 27 Aug 2018 14:07:46 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaR9v2VTK6zJ5m5R/quciOEYCv3htfL4Ybw+7WWGnuCatm+t1iW9uxHdH5R7e4SrGgsGjzG X-Received: by 2002:a63:1316:: with SMTP id i22-v6mr1117651pgl.86.1535404066825; Mon, 27 Aug 2018 14:07:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535404066; cv=none; d=google.com; s=arc-20160816; b=izqQOvB0vvueZKx/gde3DrJ8b3M9niI2K6oCcGueGSalNovInhtMieVCGxiJzTtSY6 Kc9T4XGl1vJY/ZQyJIHSP8N0QFeOlrIJbhe53ZfZRYzFC3PHDnNQHa0Pdwwnel58ROTU QlOFaH4rsY8AE9HrA5hF3pWRSrvaokhnUOqCNxX0xGVMHkw7eU60km9jr151nDhpnCOl /C+OQnywIL5IICzClxiSloKavxyN10HKMUIAsorO9YSkftC7YYzR6WgJKHpjipf8rFNB j1KYa0qWM9CF5SSKhJVBflaQCupcVPYypaCgcQJuWYJAXHTucp2ePlyXdEXdxU+x1S5K wODA== 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 :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=SJPZB94REAEIC078OFGYFnLQNwdqil4F+Z/VRUyYtdU=; b=VqSTBx0swW/LS78htHB/ucbXzPkYyDlVcFY0/9hlW90ha2KFSxqseBSth2jHwleJIq Xh0va0FWzJaz7sk0jRoTRp64DzhvyVklYa/eQfk/8tR93rqFXkTX6z1mKn5gF2AjnEya Hk/Js5BeFNFKs6TKFQHmqvd0IculksfNpY234Fby7HixkZCYWcq8u69Fb57YlqouoS/X UrugWsRQihe06mDu38P6gL4U3/b4/A0E6ZpW0tgvI7k5/UfWuqhL7U8Z2QcIM5CZZ/Cq pqo85ljr0Lcs6D8z10s71adiJI2jTiZtZM7G0Gzjf3ZrlPV+Lm+4/DUQJuAACxlkqZf6 +qIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=ZnYhu99l; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c126-v6si280722pfa.130.2018.08.27.14.07.30; Mon, 27 Aug 2018 14:07:46 -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=@google.com header.s=20161025 header.b=ZnYhu99l; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727490AbeH1Ayi (ORCPT + 99 others); Mon, 27 Aug 2018 20:54:38 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:40555 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727281AbeH1Ayi (ORCPT ); Mon, 27 Aug 2018 20:54:38 -0400 Received: by mail-pg1-f193.google.com with SMTP id z25-v6so143396pgu.7 for ; Mon, 27 Aug 2018 14:06:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=SJPZB94REAEIC078OFGYFnLQNwdqil4F+Z/VRUyYtdU=; b=ZnYhu99lnWNClUTsnEKRDBQ+bpQG1vkesMksQO8hgdtBicdq1+2o39ZCDuWkmDiT1D /CRGwHiOk8JvbhJ7aQD6bQ8dUOLM+zj8xR+AwHV9kxorCwFf5pTHAPLo8OzpcVTTYeeg ITPMy6DNcIzMgc3NZJ8mi64lXVBubl5RqLaS4aU4TNPuoOBAbqYvmX7XxYGtGdrnhFbC dw5ji3fOGijDiv+l67SNHukn/nT813Pwu3MujJ87jhP46GSq0tyXlFKM0dguaKdEPjMQ AnT9tnPq8I7FaxS016EHKe55ejLdO5L3IuXfjJYDLNEumWwYvjrcuMn5NSJEdORrB84K YkDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=SJPZB94REAEIC078OFGYFnLQNwdqil4F+Z/VRUyYtdU=; b=rfQVtt6GPn2xe+nKz6sVlypobwfr/U2eOWASAYp/7/xWvBvrmzpw9IgWb8WYsIgJq8 UONj2dNbNSHen9aGxL6XpUYo5Bw5mJ+AqCK7jq0OMbD7oRwaHJyp15T279VlRirQnlyM 56jWIPp5dpq/epFGLEVDX0dyBADYA2ZS+DjfxPyIzO0whbxz9wxbxL8+aoURfR+CZGBv 0TJxO+fVEd2r62LBtrSaeiI+JIAaZX47aJS1aGePBvGJmVa9D0QAiwcxcpBYyk5nVCTh XXhQLpI/etuE+gPO0SthcBmpH9jq9GltZ7rUWioP4+MFZiB8ZAelkk1EFwnp1SwNVTZ+ oiEA== X-Gm-Message-State: APzg51CL778Rbxfoj2xqflkNtY9aCwdqclxf/d6Pj1/SeaLDMoeCiOjT rXwIvh/nM0v7JH5KUfJSYBBOZgjvbvo3l7fA7TzfnA== X-Received: by 2002:a62:1815:: with SMTP id 21-v6mr15765579pfy.227.1535403978894; Mon, 27 Aug 2018 14:06:18 -0700 (PDT) MIME-Version: 1.0 References: <20180723122413.003644357@linuxfoundation.org> <20180723122413.797031305@linuxfoundation.org> <1535152080.2902.58.camel@codethink.co.uk> In-Reply-To: <1535152080.2902.58.camel@codethink.co.uk> From: Nick Desaulniers Date: Mon, 27 Aug 2018 14:06:07 -0700 Message-ID: Subject: Re: [PATCH 4.4 018/107] x86/paravirt: Make native_save_fl() extern inline To: ben.hutchings@codethink.co.uk Cc: stable@vger.kernel.org, Arnd Bergmann , hpa@zytor.com, tstellar@redhat.com, sedat.dilek@gmail.com, jgross@suse.com, Linus Torvalds , Peter Zijlstra , Thomas Gleixner , acme@redhat.com, akataria@vmware.com, Andrew Morton , andrea.parri@amarulasolutions.com, Ard Biesheuvel , Andrey Ryabinin , Alistair Strachan , boris.ostrovsky@oracle.com, brijesh.singh@amd.com, Cao jin , Geert Uytterhoeven , Greg Hackmann , "J. Kiszka" , jarkko.sakkinen@linux.intel.com, joe@perches.com, Josh Poimboeuf , Kees Cook , "Kirill A . Shutemov" , Kate Stewart , linux-efi@vger.kernel.org, Linux Kbuild mailing list , Manoj Gupta , mawilcox@microsoft.com, Michal Marek , mjg59@google.com, Matthias Kaehlcke , Philippe Ombredanne , David Rientjes , rostedt@goodmis.org, thomas.lendacky@amd.com, Thiebaud Weksteen , virtualization@lists.linux-foundation.org, Will Deacon , Masahiro Yamada , Ingo Molnar , Greg KH , LKML 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 Fri, Aug 24, 2018 at 4:08 PM Ben Hutchings wrote: > > On Mon, 2018-07-23 at 14:41 +0200, Greg Kroah-Hartman wrote: > > 4.4-stable review patch. If anyone has any objections, please let me know. > > > > ------------------ > > > > From: Nick Desaulniers > > > > commit d0a8d9378d16eb3c69bd8e6d23779fbdbee3a8c7 upstream. > > > > native_save_fl() is marked static inline, but by using it as > > a function pointer in arch/x86/kernel/paravirt.c, it MUST be outlined. > > > > paravirt's use of native_save_fl() also requires that no GPRs other than > > %rax are clobbered. > [...] > > Shouldn't native_restore_fl() be changed similarly? You added an out- > of-line definition, but it doesn't seem like it will actually be used. > Good catch, will send a patch with your reported by. Thank you for the report. -- Thanks, ~Nick Desaulniers