Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp526845rdb; Thu, 22 Feb 2024 10:49:52 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX7JsbBW4zHzIWD2Eb1qWiQQTmjf9LkdaDNpplfb2dxmqHKkPQPyiAarD5/zxuCUyoO5Uf/jLUeWgV2pZ8Sf6Ue8StESRbb7ywihxOpAQ== X-Google-Smtp-Source: AGHT+IG84ax9dsB2InsqvGYfGRKelq1kC1pqnwxY/19H4iVxGyPUTMUvxPrkvDbGLkiaQcUQXoJD X-Received: by 2002:a17:906:3b52:b0:a3f:1e62:2674 with SMTP id h18-20020a1709063b5200b00a3f1e622674mr4833954ejf.48.1708627792422; Thu, 22 Feb 2024 10:49:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708627792; cv=pass; d=google.com; s=arc-20160816; b=UngcgxGv/cpf8f9b2BUbx3MkVXgsTumE28Vvs5bUJYRLdAaxllzh8yBSNelDUxV74g T2Up93Mlu1KJBOuCqdLB0t7UOtuf4Ma1CcmqQ9hEfX8qLBuNyGWCOiLbSfcFzDITyEh7 f01W1nzDb0wVJ5JyvfJbu+vZyW23fquvYEJ6tVYmAcvQUk6nuthCTq8+2YrHlNYt5xIZ YzNpb/yJmQF+SwUNYkmPy4gZf/MR2UR6IqU0kd/u4w0jzBTwrCY1y68pndlH5LpuJoZm erYUUJx0g04kxX801kDT2J93E5tFhLdQ6/tdLCF+Gu+2GpOCQ9KxuuUfH3klj+a/FT3+ jJCA== 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77182-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id w11-20020a170906130b00b00a3fac55093esi194894ejb.690.2024.02.22.10.49.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 10:49:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-77182-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77182-linux.lists.archive=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 am.mirrors.kernel.org (Postfix) with ESMTPS id 0C0171F29F92 for ; Thu, 22 Feb 2024 18:49:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 149D814EFD8; Thu, 22 Feb 2024 18:40:08 +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 ; 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 From: Dave Hansen 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: List-Subscribe: List-Unsubscribe: From: Dave Hansen 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 --- 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; _