Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3696515pxb; Sun, 7 Feb 2021 19:39:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJzJMtgcUnObXdZ1ez2YXaYWNkCjbIcAPdyeeQf3xbrpbYl/lvWGIL9Czn45jvfThtwggh6L X-Received: by 2002:a17:906:86cf:: with SMTP id j15mr14724123ejy.194.1612755589441; Sun, 07 Feb 2021 19:39:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612755589; cv=none; d=google.com; s=arc-20160816; b=o3fKwKsMIH2xKXp+EHGmo5LLXDR8HTz2D8e464fYBW0zNLwaUQH0aoAUt7QIIOP5KO 8CwswM6swzAF8qf4jQAJkVMEAMjyNvDGFiujjLUbDnkKAlrFmT/T7TcCeoO5C8WybrEh lRpL3C8iRv+xrKnc4zfvO9qfM9+Gyji2NA1WmbtyLDfKUqJx03SsCo30vimiiS6tC6Zk DG/DRp80L1eWwwOKPp61kMV5Xl9gUQOGzJJmGV7aYK2DkfeDDZoAgXUw1HWtIgV+5rBl hTwa+ZsuIsdKu1zDg8VEQvaZAW3O2A21Gtjj/TAnwuHWYo5UpW3creefJC9aDYkznq7y +ABg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:ironport-sdr:ironport-sdr; bh=41JUl7r0+q4zBBpespK9O8x7vZyfQD9ovs274MrVL7Y=; b=XZNjuRK98lQvYPLRlOJ06qVH7hIEChNJoHZUa7CqF9/96Yf5TnTFWhkzmzVIXtUXdC NUSg0FXS2B63sMUAqd+e3svrizlncKkVh6/klfc0l+b36mtGrBOYKOJ/lclTuYjb2swR qkD4+TXBuCRhROyAMUvFYE1Dl0MHGUAZHVKI8GAqmKkcKMr7KhzEYzPrQ3lYKAVq7a/z m9i+RGLW2h75tz4cQLU671wvxkxKDrs/3bRKN4QxkQbzWMHZlaXItMMWr+NLq51kEKZj bQl2AaAffcj+TjK3ifpj3tisC3YjQviJ9aGzvNtYZrK7qWiUbIBXZR58O2EN185eYfju g0Xg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jr2si10446884ejb.129.2021.02.07.19.39.24; Sun, 07 Feb 2021 19:39:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229601AbhBHDhD (ORCPT + 99 others); Sun, 7 Feb 2021 22:37:03 -0500 Received: from mga02.intel.com ([134.134.136.20]:16981 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229537AbhBHDhC (ORCPT ); Sun, 7 Feb 2021 22:37:02 -0500 IronPort-SDR: B0ifOn87Q9YPjZ3tpVT44vpQN4SfonZH2M6pZSzFPp+92+rF3EEtHgDji8uB12rFzc0V6uNYEw PuKkYgXm6wBA== X-IronPort-AV: E=McAfee;i="6000,8403,9888"; a="168777509" X-IronPort-AV: E=Sophos;i="5.81,160,1610438400"; d="scan'208";a="168777509" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Feb 2021 19:35:16 -0800 IronPort-SDR: HDxLVyIePuGZ1je3OPJ0RJlopV8uyvfolnmxjy00IYLaABmdDx53l5E2rm9zudA1h0LFTF02cc KFpnorD8b0rg== X-IronPort-AV: E=Sophos;i="5.81,160,1610438400"; d="scan'208";a="376959749" Received: from liujing-mobl.ccr.corp.intel.com (HELO [10.238.130.67]) ([10.238.130.67]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Feb 2021 19:35:13 -0800 Subject: Re: [PATCH RFC 3/7] kvm: x86: XSAVE state and XFD MSRs context switch To: Borislav Petkov Cc: pbonzini@redhat.com, seanjc@google.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, jing2.liu@intel.com, x86-ml References: <20210207154256.52850-1-jing2.liu@linux.intel.com> <20210207154256.52850-4-jing2.liu@linux.intel.com> <20210207114902.GA6723@zn.tnic> From: "Liu, Jing2" Message-ID: Date: Mon, 8 Feb 2021 11:35:11 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: <20210207114902.GA6723@zn.tnic> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/7/2021 7:49 PM, Borislav Petkov wrote: > On Sun, Feb 07, 2021 at 10:42:52AM -0500, Jing Liu wrote: >> diff --git a/arch/x86/kernel/fpu/init.c b/arch/x86/kernel/fpu/init.c >> index 7e0c68043ce3..fbb761fc13ec 100644 >> --- a/arch/x86/kernel/fpu/init.c >> +++ b/arch/x86/kernel/fpu/init.c >> @@ -145,6 +145,7 @@ EXPORT_SYMBOL_GPL(fpu_kernel_xstate_min_size); >> * can be dynamically expanded to include some states up to this size. >> */ >> unsigned int fpu_kernel_xstate_max_size; >> +EXPORT_SYMBOL_GPL(fpu_kernel_xstate_max_size); >> >> /* Get alignment of the TYPE. */ >> #define TYPE_ALIGN(TYPE) offsetof(struct { char x; TYPE test; }, test) >> diff --git a/arch/x86/kernel/fpu/xstate.c b/arch/x86/kernel/fpu/xstate.c >> index 080f3be9a5e6..9c471a0364e2 100644 >> --- a/arch/x86/kernel/fpu/xstate.c >> +++ b/arch/x86/kernel/fpu/xstate.c >> @@ -77,12 +77,14 @@ static struct xfeature_capflag_info xfeature_capflags[] __initdata = { >> * XSAVE buffer, both supervisor and user xstates. >> */ >> u64 xfeatures_mask_all __read_mostly; >> +EXPORT_SYMBOL_GPL(xfeatures_mask_all); >> >> /* >> * This represents user xstates, a subset of xfeatures_mask_all, saved in a >> * dynamic kernel XSAVE buffer. >> */ >> u64 xfeatures_mask_user_dynamic __read_mostly; >> +EXPORT_SYMBOL_GPL(xfeatures_mask_user_dynamic); >> >> static unsigned int xstate_offsets[XFEATURE_MAX] = { [ 0 ... XFEATURE_MAX - 1] = -1}; >> static unsigned int xstate_sizes[XFEATURE_MAX] = { [ 0 ... XFEATURE_MAX - 1] = -1}; > Make sure you Cc x86@kernel.org when touching code outside of kvm. > > There's this script called scripts/get_maintainer.pl which will tell you who to > Cc. Use it before you send next time please. > > Thx. Thank you for the reminder. I'll cc that next time. BRs, Jing