From patchwork Mon Sep 16 09:20:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: WangYuli X-Patchwork-Id: 13805214 Received: from smtpbgsg2.qq.com (smtpbgsg2.qq.com [54.254.200.128]) (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 A44CA14B942; Mon, 16 Sep 2024 09:22:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=54.254.200.128 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726478526; cv=none; b=D8V2kfzK9FwE7nqr2J8NKA+5iXn+tcPWXoG8qIQcwh33W6JPmarwN4eN8CMss18+Oh53IP8oZwka1sXEO2TS7U2CnSsqGQXWrc6oi9D/NVmKjLXIAj57tbipgRgFyga7N+S4dM+QZvWdPW5/xPrjlSVzYXmWv3uilwpPh+vgeL4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726478526; c=relaxed/simple; bh=Pn4Mb45YuQUUz8lez6aSq4b1LZilNyAo+E6GTIEbwcI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=KHnrmUMPM8Zp/bG0YeOh33DrRWf1y2nH0NsgH0B7ywr7tahPB2UN/GStYLzDdeQXWdm7o/y7Ls64qrzBxCvju319llHvz0WpeJGP1/Q0PhXpzO2GwiVuaRjRj8fNSmW8hq3C9iXZwHlr6c6peqVSZ2+UmfUY9FMZTeVJ77kJBv4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=uniontech.com; spf=pass smtp.mailfrom=uniontech.com; dkim=pass (1024-bit key) header.d=uniontech.com header.i=@uniontech.com header.b=KuNOC/Sg; arc=none smtp.client-ip=54.254.200.128 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=uniontech.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=uniontech.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=uniontech.com header.i=@uniontech.com header.b="KuNOC/Sg" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uniontech.com; s=onoh2408; t=1726478470; bh=FF2mH2iaHnQrrYcfAju7qxAlGrPt1j84vZARlsclC5I=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=KuNOC/Sgj4Psd1ZV9gbpsNsknhiXwAt4DtWktvEaU0PHFQw2necj7H866Z5jQyeV4 QLwD3I8AI/QmyzSMDMWEUkW5ltiuRYq7FAt3P+5ARFWp7tHl8K+VZYBa2YbR2x0sMY iqyjqfdNNmfwwjfpF7TCMpq1zmqeqoUZXVcrZc7I= X-QQ-mid: bizesmtpip4t1726478463t5ngxjr X-QQ-Originating-IP: BaCeIgj2n06C8T+oUrEoS915inZDaCMbjGl6EasPm5o= Received: from avenger-OMEN-by-HP-Gaming-Lapto ( [localhost]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 16 Sep 2024 17:21:01 +0800 (CST) X-QQ-SSF: 0000000000000000000000000000000 X-QQ-GoodBg: 1 X-BIZMAIL-ID: 573196331074452442 From: WangYuli To: stable@vger.kernel.org, gregkh@linuxfoundation.org, sashal@kernel.org, maobibo@loongson.cn, guanwentao@uniontech.com, wangyuli@uniontech.com, chenhuacai@loongson.cn Cc: zhaotianrui@loongson.cn, kernel@xen0n.name, kvm@vger.kernel.org, loongarch@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 6.10] LoongArch: KVM: Remove unnecessary definition of KVM_PRIVATE_MEM_SLOTS Date: Mon, 16 Sep 2024 17:20:52 +0800 Message-ID: <796C6F09389EF61B+20240916092052.422948-1-wangyuli@uniontech.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtpip:uniontech.com:qybglogicsvrgz:qybglogicsvrgz8a-1 From: Yuli Wang [ Upstream commit 296b03ce389b4f7b3d7ea5664e53d432fb17e745 ] 1. "KVM_PRIVATE_MEM_SLOTS" is renamed as "KVM_INTERNAL_MEM_SLOTS". 2. "KVM_INTERNAL_MEM_SLOTS" defaults to zero, so it is not necessary to define it in LoongArch's asm/kvm_host.h. Link: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=bdd1c37a315bc50ab14066c4852bc8dcf070451e Link: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=b075450868dbc0950f0942617f222eeb989cad10 Reviewed-by: Bibo Mao Signed-off-by: Wentao Guan Signed-off-by: Yuli Wang Signed-off-by: Huacai Chen --- arch/loongarch/include/asm/kvm_host.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/loongarch/include/asm/kvm_host.h b/arch/loongarch/include/asm/kvm_host.h index c87b6ea0ec47..d348005d143e 100644 --- a/arch/loongarch/include/asm/kvm_host.h +++ b/arch/loongarch/include/asm/kvm_host.h @@ -26,8 +26,6 @@ #define KVM_MAX_VCPUS 256 #define KVM_MAX_CPUCFG_REGS 21 -/* memory slots that does not exposed to userspace */ -#define KVM_PRIVATE_MEM_SLOTS 0 #define KVM_HALT_POLL_NS_DEFAULT 500000