From patchwork Sat Dec 23 12:06:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Huacai Chen X-Patchwork-Id: 182954 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2483:b0:fb:cd0c:d3e with SMTP id q3csp1634324dyi; Sat, 23 Dec 2023 04:07:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IFw5nqu77+zo6f0oSn5pLyNMk+47nnEff3dkxLpho2eWd7DSE3gLbGcy1NAuUtMdOzixOfm X-Received: by 2002:a50:f68c:0:b0:554:5e42:9ea4 with SMTP id d12-20020a50f68c000000b005545e429ea4mr1432010edn.45.1703333252314; Sat, 23 Dec 2023 04:07:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703333252; cv=none; d=google.com; s=arc-20160816; b=pRY4mVHJtnJD7qy7QXjxzFkqNApCrac9BJnPTySbfq/WS4bF4zxNCj8kge6P94ZOBo /Dia0+RlLAf5EBTdGPcAb8k242KGP8xXyzUdfr27ouCqTz3HUxJhVKdhgRXzoYRfJogz skFABvO9JCSg2c5ZF94GagrpISCI7z0DkleGJe/3BDYC8UEKoIBHMyxg+SOL2OEKcHNo aLwqBdt3N+effQ3RA42ECH/vsaRSjX3Oo1Gs9gf/exxOsYAzX7UwwNPhXJBbsWb/6Edw SWq8mvkKmkWHUiNdvaDAvpPIHBKB3RLN0Z1yn9axWCdhv8FFwtQILRlhIjskYuPB8iZc nIbg== 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-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10400-ouuuleilei=gmail.com@vger.kernel.org" Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id cw8-20020a056402228800b00554005e079fsi2775947edb.130.2023.12.23.04.07.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Dec 2023 04:07:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-10400-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-10400-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10400-ouuuleilei=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 am.mirrors.kernel.org (Postfix) with ESMTPS id E96441F22199 for ; Sat, 23 Dec 2023 12:07:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 388B2D302; Sat, 23 Dec 2023 12:07:11 +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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1786074368364536183 X-GMAIL-MSGID: 1786074368364536183 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(-)