From patchwork Wed Jul 10 10:49:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Huacai Chen X-Patchwork-Id: 13729178 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 8CF013C39; Wed, 10 Jul 2024 10:49:37 +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=1720608577; cv=none; b=gK5HQKAuP16ufPmGbK8VM/3KPCKTMLInOulwUXX81vJyPbLn+6j3gzOZqbajLP5zGOcs0eGR31ohSXjCfL7R3let8cSailAy4BoyV5BvYELn0ahGaLHP44jygPHysqGPj4GzDNmZgWqU0WDsPQPT86TAgvNtEqDp4SJcRuov1rs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720608577; c=relaxed/simple; bh=mTV/Bxn5YrSb8vb6gm6dEmvdfCiglcs/3pLGoW2b1dM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=aH1jSS06HQJAMA4ks7b2eNGI3q3HnlaguCtIBM5qjyHitsZ87nnPlrpwjtvSWkT7tkxvacmWEmo39DlR+dSpHj/s4aUgWM5FNwUhizzhGenmJ7jqbMOUN0Vbhhfuk+1eD+La+5B1IegojL3WByrrrDjlirBI3h47AKrdw3OvCtk= 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 A0F58C32781; Wed, 10 Jul 2024 10:49:34 +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.11 Date: Wed, 10 Jul 2024 18:49:23 +0800 Message-ID: <20240710104923.2569660-1-chenhuacai@loongson.cn> X-Mailer: git-send-email 2.43.5 Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The following changes since commit 256abd8e550ce977b728be79a74e1729438b4948: Linux 6.10-rc7 (2024-07-07 14:23:46 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson.git tags/loongarch-kvm-6.11 for you to fetch changes up to 492ac37fa38faf520b5beae44c930063265ee183: perf kvm: Add kvm-stat for loongarch64 (2024-07-10 16:50:27 +0800) ---------------------------------------------------------------- LoongArch KVM changes for v6.11 1. Add ParaVirt steal time support. 2. Add some VM migration enhancement. 3. Add perf kvm-stat support for loongarch. ---------------------------------------------------------------- Bibo Mao (10): LoongArch: KVM: Sync pending interrupt when getting ESTAT from user mode LoongArch: KVM: Delay secondary mmu tlb flush until guest entry LoongArch: KVM: Select huge page only if secondary mmu supports it LoongArch: KVM: Discard dirty page tracking on readonly memslot LoongArch: KVM: Add memory barrier before update pmd entry LoongArch: KVM: Add dirty bitmap initially all set support LoongArch: KVM: Mark page accessed and dirty with page ref added LoongArch: KVM: Add PV steal time support in host side LoongArch: KVM: Add PV steal time support in guest side perf kvm: Add kvm-stat for loongarch64 Jia Qingtong (1): LoongArch: KVM: always make pte young in page map's fast path Documentation/admin-guide/kernel-parameters.txt | 6 +- arch/loongarch/Kconfig | 11 ++ arch/loongarch/include/asm/kvm_host.h | 13 ++ arch/loongarch/include/asm/kvm_para.h | 11 ++ arch/loongarch/include/asm/kvm_vcpu.h | 5 + arch/loongarch/include/asm/loongarch.h | 1 + arch/loongarch/include/asm/paravirt.h | 5 + arch/loongarch/include/uapi/asm/kvm.h | 4 + arch/loongarch/kernel/paravirt.c | 145 ++++++++++++++++++++++ arch/loongarch/kernel/time.c | 2 + arch/loongarch/kvm/Kconfig | 1 + arch/loongarch/kvm/exit.c | 38 +++++- arch/loongarch/kvm/main.c | 1 + arch/loongarch/kvm/mmu.c | 72 +++++++---- arch/loongarch/kvm/tlb.c | 5 +- arch/loongarch/kvm/vcpu.c | 154 +++++++++++++++++++++++- tools/perf/arch/loongarch/Makefile | 1 + tools/perf/arch/loongarch/util/Build | 2 + tools/perf/arch/loongarch/util/header.c | 96 +++++++++++++++ tools/perf/arch/loongarch/util/kvm-stat.c | 139 +++++++++++++++++++++ 20 files changed, 680 insertions(+), 32 deletions(-) create mode 100644 tools/perf/arch/loongarch/util/header.c create mode 100644 tools/perf/arch/loongarch/util/kvm-stat.c