Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp1363052rdb; Sat, 23 Dec 2023 04:07:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IHWFIxa+gYWdM73grHIr4C/eAFrFdfVItYFdIRg5MPjG3I3AJK29bMUBtG6bmp4jgg7TQgq X-Received: by 2002:a05:6e02:160a:b0:35d:6a77:64c9 with SMTP id t10-20020a056e02160a00b0035d6a7764c9mr4554258ilu.37.1703333247823; Sat, 23 Dec 2023 04:07:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703333247; cv=none; d=google.com; s=arc-20160816; b=biA7wJS7yOn7118zKxVaFAxce2YQkfbulVCgk2q7dVwi6F15T33s6kQsH+2mHwfpSb MK0ATAbDHAZhmSqW0PaiTtCVctXRItnhEA2gyna28SrRy4380JDEvMZr/1BqxpFmoBnA LDcDDxxaVqxD05PrxQxyaT5qiVl7G6PmyQ+l4N4x9934eseGKLXezeEFlTbKYIeIJ3GS QzBgRxCc3axDPkpNSTPDPlc4ntFA2hx69gt/GMlyocNS5UApqsd7BkkJNJp0A/prfvWS n+i8gsZLYtnDY7MdbkADUVtwyHFPA0fMPas7jIRFcMPg949Q2DXEiw+ekZ87bjPhNLhN WgeQ== ARC-Message-Signature: i=1; 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=91V5K133aqBrV7JHXn1l7scENp9uZzUrqLRQ7teY2so=; fh=l0Wi35CV2/KtREk3MQ//86GDpTdLxbghSY8Ko4eJwnE=; b=fI/s8DyYBK43gx2ur3lQNwumbgRrOMt65W+03qer50nKVfCScLtxK6b78fXB9WX4nV jde6xptafPF8LmOUqaIjpElnjZqtsnytQ+YReG8pHdo9LVEqyv3m4wxHTEpNyysDHsoI 7rQSNuDV7AlB6azxTprTbjRrqY2UgW539pMUmVXiQd9VASJjsQg+0aNwngMLpiVIcB0/ qTQ/ypNpWLjFuXCxaNeRfcN1Eks5iVcRHbD281HbpDi1tHlJmmfyQ1lSMF3hJSAoDijD mB0gZ6WDM+Cwbne1Qg8dDW3M6hvuL24N5O1bZbegCTTJGM/0fhWNaUag4ikmVi+kHMiX C0DA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-10400-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10400-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 nv8-20020a17090b1b4800b002888396d22esi5082576pjb.6.2023.12.23.04.07.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Dec 2023 04:07:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-10400-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; spf=pass (google.com: domain of linux-kernel+bounces-10400-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10400-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 5AB82B22E85 for ; Sat, 23 Dec 2023 12:07:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 39FE9D278; Sat, 23 Dec 2023 12:07:10 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org 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 B8242CA58; Sat, 23 Dec 2023 12:07:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A9F56C433C8; Sat, 23 Dec 2023 12:07:06 +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.8 Date: Sat, 23 Dec 2023 20:06:42 +0800 Message-Id: <20231223120642.1067728-1-chenhuacai@loongson.cn> X-Mailer: git-send-email 2.39.3 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 ceb6a6f023fd3e8b07761ed900352ef574010bcb: Linux 6.7-rc6 (2023-12-17 15:19:28 -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.8 for you to fetch changes up to 118e10cd893d57df55b3302dfd188a981b6e6d1c: LoongArch: KVM: Add LASX (256bit SIMD) support (2023-12-19 10:48:28 +0800) ---------------------------------------------------------------- LoongArch KVM changes for v6.8 1. Optimization for memslot hugepage checking. 2. Cleanup and fix some HW/SW timer issues. 3. Add LSX/LASX (128bit/256bit SIMD) support. ---------------------------------------------------------------- Bibo Mao (5): LoongArch: KVM: Optimization for memslot hugepage checking LoongArch: KVM: Remove SW timer switch when vcpu is halt polling LoongArch: KVM: Allow to access HW timer CSR registers always LoongArch: KVM: Remove kvm_acquire_timer() before entering guest LoongArch: KVM: Fix timer emulation with oneshot mode Tianrui Zhao (2): LoongArch: KVM: Add LSX (128bit SIMD) support LoongArch: KVM: Add LASX (256bit SIMD) support arch/loongarch/include/asm/kvm_host.h | 24 ++- arch/loongarch/include/asm/kvm_vcpu.h | 21 ++- arch/loongarch/include/uapi/asm/kvm.h | 1 + arch/loongarch/kernel/fpu.S | 2 + arch/loongarch/kvm/exit.c | 50 ++++-- arch/loongarch/kvm/main.c | 1 - arch/loongarch/kvm/mmu.c | 124 +++++++++----- arch/loongarch/kvm/switch.S | 31 ++++ arch/loongarch/kvm/timer.c | 129 ++++++++------ arch/loongarch/kvm/trace.h | 6 +- arch/loongarch/kvm/vcpu.c | 307 ++++++++++++++++++++++++++++++---- 11 files changed, 551 insertions(+), 145 deletions(-)