Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp558324lqo; Wed, 8 May 2024 08:03:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWIDFVJvgziEd1ZN8aQBM9a0XUWH2CbZdAZJnrK+8gehFRtGsY8nuegtsqPURRrZV9c6VutVwCBTr+mCIksmmgm0zd9UX2+j17mIrKsmw== X-Google-Smtp-Source: AGHT+IFXW4kt29NDc4eYjhx2m2H5Drxxw8p42jlVuqs2Hps/wmxcrCC2/q00xlNbTpMTybiCu+2I X-Received: by 2002:a05:6830:4118:b0:6f0:7e5a:95ec with SMTP id 46e09a7af769-6f0b80e3a15mr3147936a34.37.1715180591389; Wed, 08 May 2024 08:03:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715180591; cv=pass; d=google.com; s=arc-20160816; b=eM9QJMFF0wXTbPOn0qMTmgJuRpda+WP5ZlUVyTAwvMrcztlKrUvS0LZGXZENmWM3BT 1IrZ7M/sEtb2FVUOT6qA8+9peiiwPLWWXysWWbk25gzsA3lCI+kscFu+oVVuSKkMP4xo 7hlm/FPO7MhT9Pi/LzXuVn48Hbs5RGEbvTsitOBE/GbWkss5kqDpUgo5iceKK0dV5vuj 23cM7A44+FvRyLgoUwjQFKXbdJXmqwosRnmcADxK0uRs3Cet2BIsQIlqCi7yqyqRc0yR oVYvUpS7SK80xk36/pRmVUpPAqQ+0HjhNveMQrnXO0/WqcX3gkMOyuLABR2lB4RsjB2l L94Q== 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=yhaN7KTVIeD91rdoqTxGGquHfmZ50jFOfd9WOtCmVj4=; fh=l0Wi35CV2/KtREk3MQ//86GDpTdLxbghSY8Ko4eJwnE=; b=XqkmpnAvlci63+/vMKO9g0AHmZbscvGLi4ucGqu7E5a5o0jKdnJWDjXAz4d0xWaHUh 6fhtPdOlCea9XtIWl90dA9mVbquvDhi0oBTKCRJNwG4naJ0nlMP8wuZcXbPKsp8oDl1U lSV37UpZ+H4WlbTB0H2c9ZK8Am/SYr+ewTH3s17ij31x6QZYPTrAY6kRA7tJeNK6wCSl FRCDhfnKnI6csIwd4Hw12HdGZguTsjI8thzfPeKG41amoLhu4U773w0Z8uu0Q64eypXe 0HwY7x6g3eQ1kjaj96JWkChJWqa09bsPHZGyugZjN0DT2ZzMMC8T6UiFzIZaztEuWw3L FlPw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-173447-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173447-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id s5-20020a4ab545000000b005b245a6dc97si913408ooo.70.2024.05.08.08.03.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 08:03:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-173447-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-173447-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173447-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 4B598286DD7 for ; Wed, 8 May 2024 15:03:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3B8E8126F05; Wed, 8 May 2024 15:03:04 +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 A21218626D; Wed, 8 May 2024 15:03:03 +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=1715180583; cv=none; b=kH/PxC847GxTv29dqJPMOAlPyCerCPscGA5GnKSyrOVAoFjWt8J85pz40A2NvkOyPtlcFp1efkO1I/FPstrQ0WeWsrEH0FVHxB+Camf5iWuqFC03YWTI1iy0tCbRFfj2E+BfScAZVZcN/BDeiZY+z1hAxq46wGGUBeFr+9xeL8c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715180583; c=relaxed/simple; bh=YmVwwD29BaB0nxCNkc9kQIER7FM7cJMCW4mogzEXRN8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=TqutMGjjiNldG3s7mumv1EJlBBeGBNTWdAgpKE7Ac48DEqk06xF6EAvtUR4695BtjIlEIlT8eKR6fF3A2i4HmZ8/0Fz/XbIhfhLH+NJYPlk2g765uazDG8+HvUedmm6r/03DMEqyLrrURO1sPAqX3KJH8wtU+d6n4jFdRvK1BPM= 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 B46FDC113CC; Wed, 8 May 2024 15:02:58 +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.10 Date: Wed, 8 May 2024 23:02:40 +0800 Message-ID: <20240508150240.225429-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 dd5a440a31fae6e459c0d6271dddd62825505361: Linux 6.9-rc7 (2024-05-05 14:06:01 -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.10 for you to fetch changes up to 7b7e584f90bf670d5c6f2b1fff884bf3b972cad4: LoongArch: KVM: Add mmio trace events support (2024-05-06 22:00:47 +0800) ---------------------------------------------------------------- LoongArch KVM changes for v6.10 1. Add ParaVirt IPI support. 2. Add software breakpoint support. 3. Add mmio trace events support. ---------------------------------------------------------------- Bibo Mao (8): LoongArch/smp: Refine some ipi functions on LoongArch platform LoongArch: KVM: Add hypercall instruction emulation LoongArch: KVM: Add cpucfg area for kvm hypervisor LoongArch: KVM: Add vcpu mapping from physical cpuid LoongArch: KVM: Add PV IPI support on host side LoongArch: KVM: Add PV IPI support on guest side LoongArch: KVM: Add software breakpoint support LoongArch: KVM: Add mmio trace events support arch/loongarch/Kconfig | 9 ++ arch/loongarch/include/asm/Kbuild | 1 - arch/loongarch/include/asm/hardirq.h | 6 + arch/loongarch/include/asm/inst.h | 2 + arch/loongarch/include/asm/irq.h | 11 +- arch/loongarch/include/asm/kvm_host.h | 33 +++++ arch/loongarch/include/asm/kvm_para.h | 161 ++++++++++++++++++++++++ arch/loongarch/include/asm/kvm_vcpu.h | 11 ++ arch/loongarch/include/asm/loongarch.h | 12 ++ arch/loongarch/include/asm/paravirt.h | 30 +++++ arch/loongarch/include/asm/paravirt_api_clock.h | 1 + arch/loongarch/include/asm/smp.h | 22 ++-- arch/loongarch/include/uapi/asm/kvm.h | 4 + arch/loongarch/kernel/Makefile | 1 + arch/loongarch/kernel/irq.c | 24 +--- arch/loongarch/kernel/paravirt.c | 151 ++++++++++++++++++++++ arch/loongarch/kernel/perf_event.c | 14 +-- arch/loongarch/kernel/smp.c | 52 +++++--- arch/loongarch/kernel/time.c | 12 +- arch/loongarch/kvm/exit.c | 151 +++++++++++++++++++--- arch/loongarch/kvm/trace.h | 20 ++- arch/loongarch/kvm/vcpu.c | 105 +++++++++++++++- arch/loongarch/kvm/vm.c | 11 ++ 23 files changed, 746 insertions(+), 98 deletions(-) create mode 100644 arch/loongarch/include/asm/kvm_para.h create mode 100644 arch/loongarch/include/asm/paravirt.h create mode 100644 arch/loongarch/include/asm/paravirt_api_clock.h create mode 100644 arch/loongarch/kernel/paravirt.c