From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f195.google.com (mail-pf1-f195.google.com [209.85.210.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1B386290DBB for ; Mon, 2 Feb 2026 16:48:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.195 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770050925; cv=none; b=J//HYVn9rc/fv81Wxgq8IMzXVxhX29vZQYuKcx9/9ey/lISlMGf3THrg5NvXqGtfbwiRCXXOMr9NUczqu2i/W+EV5I8/lyVNQWpnh0yyQKBqD4YVjTskPhPU1zvdM13qd7nV8+QHmcLRWxvYjBwuZFonAtFF9WSakRMknrFfdis= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770050925; c=relaxed/simple; bh=YZpYzr3von3OP0WHTI8MlCB59T1dhP/Et0EJVS7EqYo=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=tC+bgX2rp7rjuDteNNvEBxlhrr18j0VZ8B4a24RM5U7peFGxgd7yOT1LdRth8vJRMtL3mHlhWrDZzDZ9wsCIp307zzHeLOY/FHBtS5egh8F16ss5OiPwzXAt4GflNVEUMgSL27467AgtFTxZ8ZJQjvkhtLCsn/ve1Jq6WR31Aoo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=KpoM0kp4; arc=none smtp.client-ip=209.85.210.195 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="KpoM0kp4" Received: by mail-pf1-f195.google.com with SMTP id d2e1a72fcca58-81e9d0cd082so3739092b3a.0 for ; Mon, 02 Feb 2026 08:48:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1770050923; x=1770655723; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:reply-to:message-id:date :subject:to:from:from:to:cc:subject:date:message-id:reply-to; bh=oSkt8Z+PMTqFG74uJb+GYoFmGk1VZAsFykf4JCeNoR4=; b=KpoM0kp4L2x0/jhbTtezO7CtHor2I9lvhk3HdeTJLxbNVINTnGuhY1X7AKhTY18Dg5 i/YopGfhRHapiw9qVLopUIqz/HDPAaR1AUS5JhKtCYCIaj1FH8h6mq+AdeXNfxBNE+JX TouwRSodTdDbK5rN3b1RJd76xCfqcA3CASlSF9Fv+AzRWIGy8FkMA3vQfygRlWoxBpVx boU9ljfxW1OIbhX+CjZFpX2MB38AOM2fejUpAYWm7erRbcWqWzI2TJ5zcvuJqZFQE7EC qp2J0w81mrQzNY0NVxcAdMRff70d94kA+dMifR6wFo//8G7N8pOjUQB4DcZX4YHY+nCO j+xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770050923; x=1770655723; h=content-transfer-encoding:mime-version:reply-to:message-id:date :subject:to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=oSkt8Z+PMTqFG74uJb+GYoFmGk1VZAsFykf4JCeNoR4=; b=AH2JP1TL1+r2ecve4i2vy4wvs3cwxu4Il543RBz0JwpQtOBJ2ISu9ijXbidDUD7fyW 9At13CW5wN63Z99iCwbDutlSeeQrnej4RVw09n7chtrHerbmJ1YUjnbC1eYp8lxpl7R/ +1aUiIVG67mjolKXYZjTckDuowCB/3YfntUVNhuN7zcidGurRtR7Oi9Ai2UFcKRIQcv8 Gcm92h23iW5OvVP3OJW5ALYZCTdRLG2ApFmTKSlcrdbJ0OnXVa8psSe+QDYRtGTt9o37 lBRvZV4YJI62YICkLyow+Jwxy7yISKQWE/gqOpbCh+h4TbB5IJJ6EhI5s+jGSfkxDCBO 1R0A== X-Forwarded-Encrypted: i=1; AJvYcCUHkdT5jIbzPSyu52Nc1be3tolSsIeCu/1vSQwOmy5bkDsyyu/neHpJ1VNZr18XBoWOFNcgBFmEzehcaCU=@vger.kernel.org X-Gm-Message-State: AOJu0Yw1CpX8xhxKqSpBwpGstdFK9wg1/IFU2+LGnrZFBnBJuXlUjBRu DT8O7fl4/2TeRZB1VGX+TbTuLCQfCBQfKPyq+6eCzj12a3xW+oNM9KJ3 X-Gm-Gg: AZuq6aK2pAJx39tjxqfos5aVJJxdcDZKlbJobFpGbSRTcdcPCtCXCbZ/ijtSSYJNd+j kP5rcDGQMrILX7W5bohxMESNJNq1ontRhNKavRg0aNnh43CQUBPtvRTdFMg0O7llQn2ZMRFI4LS UNSd0IZDOIbn5o62QhLxKlcSJuWhNebRCMZ86UKfS4SrGnLYCQtGqn8Kcw3kgVApx/GNtOasXDU kfH3rL8bMpNw6vKSIWiDUdkHLhkxg+lfQEyhWfUvRFXYh/nrlDM0TrMyhqtodMzIPen3358ttso Qm/ZOxAWeKxJSSUAxP8ng+hkwyQ+pnKNS+t/QADdcwmrNBTnj4c7S7sx5AjBb07IarV6VNPt5+A iAUpQmo/NktNBrL34wtCx1MxbryfAZWZ5o4P7W+LG5MY8S7aZ8bkal5Ahu+5Cz8YIGZrKAzFgXR Aw0o2WujprJEGdcCFNzB2OQRTCqqoloFKdyH3WqWtysopH/B+dfKPr90qFujs1HerqMQ== X-Received: by 2002:a05:6a21:6f89:b0:35e:5a46:2d6b with SMTP id adf61e73a8af0-392dfff5a20mr12436011637.8.1770050923485; Mon, 02 Feb 2026 08:48:43 -0800 (PST) Received: from localhost.localdomain (c-174-165-208-10.hsd1.wa.comcast.net. [174.165.208.10]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-c642a3356a6sm15737502a12.18.2026.02.02.08.48.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Feb 2026 08:48:43 -0800 (PST) From: mhkelley58@gmail.com X-Google-Original-From: mhklinux@outlook.com To: kys@microsoft.com, haiyangz@microsoft.com, wei.liu@kernel.org, decui@microsoft.com, longli@microsoft.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/1] x86/hyperv: Update comment in hyperv_cleanup() Date: Mon, 2 Feb 2026 08:48:39 -0800 Message-Id: <20260202164839.1691-1-mhklinux@outlook.com> X-Mailer: git-send-email 2.25.1 Reply-To: mhklinux@outlook.com Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Michael Kelley The comment in hyperv_cleanup() became out-of-date as a result of commit c8ed0812646e ("x86/hyperv: Use direct call to hypercall-page"). Update the comment. No code or functional change. Signed-off-by: Michael Kelley --- arch/x86/hyperv/hv_init.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/arch/x86/hyperv/hv_init.c b/arch/x86/hyperv/hv_init.c index 14de43f4bc6c..a777e43a5de1 100644 --- a/arch/x86/hyperv/hv_init.c +++ b/arch/x86/hyperv/hv_init.c @@ -633,9 +633,13 @@ void hyperv_cleanup(void) hv_ivm_msr_write(HV_X64_MSR_GUEST_OS_ID, 0); /* - * Reset hypercall page reference before reset the page, - * let hypercall operations fail safely rather than - * panic the kernel for using invalid hypercall page + * Reset hv_hypercall_pg before resetting it in the hypervisor. + * hv_set_hypercall_pg(NULL) is not used because at this point in the + * panic path other CPUs have been stopped, causing static_call_update() + * to hang. So resetting hv_hypercall_pg to cause hypercalls to fail + * cleanly is only operative on 32-bit builds. But this is OK as it is + * just a preventative measure to ease detecting a hypercall being made + * after this point, which shouldn't be happening anyway. */ hv_hypercall_pg = NULL; -- 2.25.1