Message ID | 20240222184004.C5E65C3C@davehans-spike.ostc.intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-77182-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp169356dyb; Thu, 22 Feb 2024 11:43:46 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVx9sI9j5+X4kcTuPiI2DsRMIhdONUc85dAmCNrYljN7Ux11y+QbkePfeLyIroGTfnUI6zi09YgByukTWOahNkR//BWEQ== X-Google-Smtp-Source: AGHT+IF102WC8l6Bj8vC7GQaL/0ErKBGZIDD0514fmYuDYH4iFYZJrC1ZWmW/lttUcKDzt9v39Rx X-Received: by 2002:a17:902:7847:b0:1db:5213:222 with SMTP id e7-20020a170902784700b001db52130222mr16877423pln.5.1708631025788; Thu, 22 Feb 2024 11:43:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708631025; cv=pass; d=google.com; s=arc-20160816; b=h/jOoXyX5XTEpPc8vsaNqmt/vKK7GHyeiLMc/jZiai9cjyD6UyrSIFKaHPE6FHR3t6 Xstsad/yuk9WecJA4QFvfSgwZr7Ha+OhmZtx4xNrHGcLxhO/TRFfkeRYTuZiVrN3kHR9 SwbjURbrWn9ZjeuFa+fTQdkzBnep9SLEGFGMzA42kQtKbE6MbP2ZS09DxBufOn/z8ypH 1ygDndR0BT6hTtyquO/mgZ1jK1kc2UsfIiY0fBYUNj9S0EJIkAeNwU2S83oTBQmSdk/v Z2UVpg7u9ibrQhUCAumoX6sY3HYxlX7Cp48+SF+yCeva2Jcz/+sfuHzGix3p6SlpScyr Y0wg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:message-id :in-reply-to:references:date:from:cc:to:subject:dkim-signature; bh=LgQ0NG89NcwonskSzs9LFmvvjI0Tt3qTAeOmvlqdMSQ=; fh=HUgOPOMLUPcroonsK10/uEWpbBCP57e0QFUoVmMwghQ=; b=XtRXuwfw9k3giX1adQ/RSiM42vCTGAb8krDJrwIZFAXTftLFXOIrUUYhQ+BUxVAoJ3 Zr6iwTkc+U/WO3dPl0mLukq8A7DwDBjh7IiQ4htkdI+4Ssd2OyCx3lfITpYORdSC0lP7 MyvmiuPqx+MZ2unD0CYwr1+dE2m6rr2H9kHZh4TkJ5OKGvZGtZNe1OEBWytY2ngXL3Po mBYHrxsLgferkPDIjpsHDeWF1hRKK7S5kwe0LqUaYL04Sv3EcH86W1i5V0Z5+Pj4NGPn 9SSoXFQ+ZcUb62XVSbpRKwbfwbqcEM06kL4sTVN/c1zoDhmCfQEOiNI7M8rLj5me7Eix Z89g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mQHvS9Xa; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-77182-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77182-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id j12-20020a170903028c00b001dc3437ccabsi3591693plr.580.2024.02.22.11.43.45 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 11:43:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-77182-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mQHvS9Xa; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-77182-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77182-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 72579B29D98 for <ouuuleilei@gmail.com>; Thu, 22 Feb 2024 18:50:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D683B140E47; Thu, 22 Feb 2024 18:40:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="mQHvS9Xa" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 255D714EFC7 for <linux-kernel@vger.kernel.org>; Thu, 22 Feb 2024 18:40:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708627206; cv=none; b=XD91gesTGmsuw+5xf+3ZBixAfUl8H30mGE0oC3t0h1k1/CvyKIFq39hsrKw5OopGLZPp8m1c+WP/xwqW1U5zjpuByZcBIt2X2S5nZymtxYH08IKR8mf0Zt3FgCvf8MrB4rjdj4yXXMV3y36FhRhIYYRhIanzvzIFfs0YYQJ0tDw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708627206; c=relaxed/simple; bh=qBn4TiOyJK73Ejv38vlOE4n5SWGEzB9iLnbLIjuNbPw=; h=Subject:To:Cc:From:Date:References:In-Reply-To:Message-Id; b=D7VXxwZEmGXNRggk+4kh4ZM70MYBbRFT9LvrmMbrmQ1jBcf5p5LdAnzg6eUFYlnFMK5bRPjuQfOHqN0+OlxxRe0S4yGDw950Ii3JdVz3h0EkLUEU/ut+a93RJQiaNJMrTJ0L0HvELhuTvjyqiNthgdcI5sOcDm3t0NsyvjTeafM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=mQHvS9Xa; arc=none smtp.client-ip=192.198.163.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1708627205; x=1740163205; h=subject:to:cc:from:date:references:in-reply-to: message-id; bh=qBn4TiOyJK73Ejv38vlOE4n5SWGEzB9iLnbLIjuNbPw=; b=mQHvS9Xa6qEW9scb65ws0Dfmfjzyi19XNkUPG1WOJdKoocVSupuWbKta QeMuvy+v1kq5M1//ABn8JFr3NAKVKOs87RqB39h+OPPuwaCnSSI/Knvrf Wt05TUk1VOxhIWVD46yKfe8B/uVBDaLBQVcOkhHZS+dPM1spTz3i/GvpV hrhXRzcqMhdyIsAfpeINR9MkyhOwJEAk+cMRPuNto6Zn2ot1AjmWhFTgE ZIGmj5XV8RNVEWlydJAw4DS1UOQ7qAk7L1G2Bx1dAKRuyBgv/7rCatqiR 9zmhgKWCz/Kw40bFI+tNyZZpflAhYxE9S+B8Sv81tplUnx7pah6D6JRye Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10992"; a="13584579" X-IronPort-AV: E=Sophos;i="6.06,179,1705392000"; d="scan'208";a="13584579" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by fmvoesa103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Feb 2024 10:40:04 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,179,1705392000"; d="scan'208";a="10265264" Received: from davehans-spike.ostc.intel.com (HELO localhost.localdomain) ([10.165.164.11]) by orviesa004.jf.intel.com with ESMTP; 22 Feb 2024 10:40:05 -0800 Subject: [RFC][PATCH 29/34] x86/xen: Remove extra get_cpu_address_sizes() call To: linux-kernel@vger.kernel.org Cc: kirill.shutemov@linux.intel.com,pbonzini@redhat.com,tglx@linutronix.de,x86@kernel.org,bp@alien8.de,Dave Hansen <dave.hansen@linux.intel.com> From: Dave Hansen <dave.hansen@linux.intel.com> Date: Thu, 22 Feb 2024 10:40:04 -0800 References: <20240222183926.517AFCD2@davehans-spike.ostc.intel.com> In-Reply-To: <20240222183926.517AFCD2@davehans-spike.ostc.intel.com> Message-Id: <20240222184004.C5E65C3C@davehans-spike.ostc.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791629486753714785 X-GMAIL-MSGID: 1791629486753714785 |
Series |
x86: Rework system-wide configuration masquerading as per-cpu data
|
|
Commit Message
Dave Hansen
Feb. 22, 2024, 6:40 p.m. UTC
From: Dave Hansen <dave.hansen@linux.intel.com> Xen PV should now be avoiding reading 'x86_config' at all due to previous fixes. Even if something was missed, it should now get sane values *and* be able to survive long enough to get a warning out later in boot. Remove the belt-and-suspenders call to get_cpu_address_sizes(). Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com> --- b/arch/x86/xen/enlighten_pv.c | 3 --- 1 file changed, 3 deletions(-)
diff -puN arch/x86/xen/enlighten_pv.c~xen-remove-early-addr_size-fun arch/x86/xen/enlighten_pv.c --- a/arch/x86/xen/enlighten_pv.c~xen-remove-early-addr_size-fun 2024-02-22 10:09:02.753014433 -0800 +++ b/arch/x86/xen/enlighten_pv.c 2024-02-22 10:09:02.757014590 -0800 @@ -1386,9 +1386,6 @@ asmlinkage __visible void __init xen_sta */ xen_setup_gdt(0); - /* Determine virtual and physical address sizes */ - get_cpu_address_sizes(&boot_cpu_data); - /* Let's presume PV guests always boot on vCPU with id 0. */ per_cpu(xen_vcpu_id, 0) = 0;