Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp634841lqi; Thu, 7 Mar 2024 07:22:29 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVLg+BcsZGVVSAoDIfXobLrGD2M3P/jaZVI+WRcqrHGlv4LkSdQBGAGCbV/cUkA4mcNgvIdP677T/EKlKDP2e4xpIkYWtc2ApnzGZ56Mw== X-Google-Smtp-Source: AGHT+IH374MVT/vAJjL0dRGlg5+lupM/nHlYYrz4vEFWTRrA0d7q5MXOSyUCpFML/TYjoQPNakQE X-Received: by 2002:a17:902:b684:b0:1dc:d642:aacd with SMTP id c4-20020a170902b68400b001dcd642aacdmr8107161pls.67.1709824949010; Thu, 07 Mar 2024 07:22:29 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709824948; cv=pass; d=google.com; s=arc-20160816; b=U2Tgthn89jCpjnpShZioskPJFukNxPPzZhE1D+eVI9MQxZ5qHOnMh2JSIGjKJ2QPVp e83MG7OHYvs6/UaPvwVFX9CZpTyCUGjE/i3tvqUCc81WyuQp2VgzaIVFbze3PPhh4Xpe doChxhFp+QvoUFVePMHpZblid+30EelLEpaqqP5IlvQTkyewZfra9ngHrH13XZgl0WsZ ELmu6hD5JtlscitaLz/SY9yStgmRm9xjTYViPhJon38f+4HFguA95MlHZWPmAEnos3nw fSFp2o9UsmVMvdQ5kUhIFSv9Fp5JiEK0l9qmKELbuqI/yhOQRtT4R6pNM7acYV75ib5W cqdA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=Al8PDM0dt/fLg5gvnFWmFAc1/ib2LIoSdUPDEv4xkLw=; fh=l0Wi35CV2/KtREk3MQ//86GDpTdLxbghSY8Ko4eJwnE=; b=WPqC507ZpjXl2/97/q1/N5EI3AEshjvf3QcyH7SLDhPSQASHie82vpB0ZUYpqtewQU OtcEGsyQwfWgSntfRB5rq62ToAOoKh2jjIva6go0U70UJ7sAfpRq5lzrMBE1B3LxmKNC bie8cHUWyrwU3eXKS7qH5ov/a9gQvy5xM04MPuLfROLpoTNw6hiRMWFLEK9F/n//GtQG CMvp7M7w/caf+WaShIGUChUUKB01TCjRtzeGgiGaL/bRIBFU5UDsC3VoPmK7p7lDG1ys pATVItRfz+hbK2pdgknVCfg1sGw0wGKUV1M4topYDML3kArFhSNF9AxkqJRWwVFbhKPZ IeOQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-95768-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95768-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id z1-20020a170903018100b001d55aa9ffecsi14728734plg.253.2024.03.07.07.22.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 07:22:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-95768-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-95768-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95768-linux.lists.archive=gmail.com@vger.kernel.org" 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 9B1AAB23423 for ; Thu, 7 Mar 2024 14:50:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 377F012BF12; Thu, 7 Mar 2024 14:50:15 +0000 (UTC) Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 ACC951E865; Thu, 7 Mar 2024 14:50:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709823014; cv=none; b=AIbctfHstqM6s6SlejE/ivSxq004q0kWoDQQg7rDy50NgoWqpo11GV44mQ24x8xrTrRorl5EQfhvg0Zqw/XdikqFj+uh88ikuXFzXTLCU7h15BS1gY0v0NfZZzN9mLEzbzs+k/dVKEEDs5b0a4lZAmsKHe/CNCGPqtmYtb25mP8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709823014; c=relaxed/simple; bh=C/qCrjhoIs3jvOYBesJnb1uSBPlCckrGFa/pt10VT+w=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=UxrW17U1pJYfE9LqtM5uFa8bhVU1u11nyoy+Pd4ptm0AQEGujl13bC5/9MOYgVSqh+PnftUV8wKIof/vWQtODJpgNzZaCBKm06DzafKhxutktFOqvFEGKnsuvOlObAV/ffpY5pCXWGad0EqbRn+HQSjnZhiOWx6TGnsR/6524Io= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id DB558C433C7; Thu, 7 Mar 2024 14:50:11 +0000 (UTC) From: Huacai Chen To: Paolo Bonzini , Huacai Chen , Tianrui Zhao , Bibo Mao Cc: kvm@vger.kernel.org, loongarch@lists.linux.dev, linux-kernel@vger.kernel.org, Xuerui Wang , Jiaxun Yang , Huacai Chen Subject: [GIT PULL] LoongArch KVM changes for v6.9 Date: Thu, 7 Mar 2024 22:49:30 +0800 Message-ID: <20240307144930.3919566-1-chenhuacai@loongson.cn> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The following changes since commit 90d35da658da8cff0d4ecbb5113f5fac9d00eb72: Linux 6.8-rc7 (2024-03-03 13:02:52 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson.git tags/loongarch-kvm-6.9 for you to fetch changes up to b99f783106ea5b2f8c9d74f4d3b1e2f77af9ec6e: LoongArch: KVM: Remove unnecessary CSR register saving during enter guest (2024-03-06 09:12:13 +0800) ---------------------------------------------------------------- LoongArch KVM changes for v6.9 1. Set reserved bits as zero in CPUCFG. 2. Start SW timer only when vcpu is blocking. 3. Do not restart SW timer when it is expired. 4. Remove unnecessary CSR register saving during enter guest. KVM PV features are unfortunately missing in v6.9 for some implementation controversies, sigh. ---------------------------------------------------------------- Bibo Mao (4): LoongArch: KVM: Set reserved bits as zero in CPUCFG LoongArch: KVM: Start SW timer only when vcpu is blocking LoongArch: KVM: Do not restart SW timer when it is expired LoongArch: KVM: Remove unnecessary CSR register saving during enter guest arch/loongarch/kvm/switch.S | 6 ------ arch/loongarch/kvm/timer.c | 43 ++++++++++--------------------------------- arch/loongarch/kvm/vcpu.c | 33 ++++++++++++++++++++++++++------- 3 files changed, 36 insertions(+), 46 deletions(-)