From patchwork Wed Sep 20 08:01:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oliver Upton X-Patchwork-Id: 13392256 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F2434CE79AB for ; Wed, 20 Sep 2023 08:02:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=8r6JWBUSGByhRoeCFQ8f6N65DEAybs4Gh5h5DzAFI2c=; b=zJmrwxlHUO9gIB UESRGXiGMJILVpq9ptS9vq3/b1VVhEKNtAdOnBgQUtVfsIRKuXIReZWEj4OFwDYd2RRLmIaIg0PjF cE+uq9tX2QBMtWoQ5Bn8eQnlHZ1eyqo+Hzi9F0VM5WoT8mRGQowSuZyfpjVoXZxI1Nud1EEI9ABJZ v4sQRRuziAjXd6bxQyPtLLIepAKjW5jw3SlrE2rA01dc2c4vOqxHeQWipj66EFXotFh0ut/DIrxQm yBa00WBZjxkk8lpMKjEXO2MDjpMkDwir4eXc7cJCbsS/LHQ8FK8fyIWQw0luCu4iUZO5Z1ib05lLt 06oR6R692LsqDJMIdmcw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qis9w-002DYB-36; Wed, 20 Sep 2023 08:02:08 +0000 Received: from out-226.mta1.migadu.com ([2001:41d0:203:375::e2]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qis9o-002DT3-15 for linux-arm-kernel@lists.infradead.org; Wed, 20 Sep 2023 08:02:02 +0000 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1695196907; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=MLW7qwdJIvj48Ety8MOzco+OBQsuiHw84jgrxmlkBac=; b=l2IgLoEqC/yOBo3Y5qEWPHQFyk0P8rAUR+VVbIDFcNfvcfqJaJN30zb2w511oSCcn1yONr EK9Z89DSDG9VbxGJKPjiUQiCC2zG9MRAhnAzmsA/NOUcwot8DT1+2o5IZLIDEzojmu/GUj WJLfDeXFG1wKtwR3dGVEHWKEUto/hVA= From: Oliver Upton To: kvmarm@lists.linux.dev Cc: kvm@vger.kernel.org, Marc Zyngier , James Morse , Suzuki K Poulose , Zenghui Yu , Will Deacon , Catalin Marinas , linux-arm-kernel@lists.infradead.org, Gavin Shan , Oliver Upton Subject: [PATCH 0/2] KVM: arm64: Address soft lockups due to I-cache CMOs Date: Wed, 20 Sep 2023 08:01:31 +0000 Message-ID: <20230920080133.944717-1-oliver.upton@linux.dev> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230920_010200_521990_1C2DCBBF X-CRM114-Status: UNSURE ( 5.19 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Small series to address the soft lockups that Gavin hits when running KVM guests w/ hugepages on an Ampere Altra Max machine. While I absolutely loathe "fixing" the issue of slow I-cache CMOs in this way, I can't really think of an alternative. Oliver Upton (2): arm64: tlbflush: Rename MAX_TLBI_OPS KVM: arm64: Avoid soft lockups due to I-cache maintenance arch/arm64/include/asm/kvm_mmu.h | 37 ++++++++++++++++++++++++++----- arch/arm64/include/asm/tlbflush.h | 8 +++---- 2 files changed, 35 insertions(+), 10 deletions(-) base-commit: ce9ecca0238b140b88f43859b211c9fdfd8e5b70 Reviewed-by: Marc Zyngier