From patchwork Sun Nov 6 08:46:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 16090 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1397451wru; Sun, 6 Nov 2022 01:51:10 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4TzmVbkBCUxbYl7NsSK+I4/8APGPUrqoQpjeN9EprltHEEAkfQc1Eker2ud5egsbjv9EEL X-Received: by 2002:a05:6a00:16c1:b0:563:177f:99ee with SMTP id l1-20020a056a0016c100b00563177f99eemr44765406pfc.7.1667724670361; Sun, 06 Nov 2022 01:51:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667724670; cv=none; d=google.com; s=arc-20160816; b=Rt/eACQVL0SFkO3D05Ln4xvWIKZGSY1Uj+OhiCbr285+Kv/NzgrdgFYygzn9QyJkI4 PSYUB1z9tHdwGADbp+1H1NYmoE5F6KBpCy64N5lMlFQolMJPRznBK6NjpgHIPGQE6fRy xTD/gGzarrqCutV50dixBB+MYcg83I0/Sz8B8TA7U3yM14nZGrb7JXMfc5Uyug7MvDrX b0znJdOiz1ktofF9MElAjPQT8wgqi5zE/zTlYbWW+QLjdeG6uJENWA6CGY45ZzRExczP fcJ2sJM+IkhXVHINCkAure63nJpdEacTJhscgPQkSaGUBMiKxXmMGDTCtVhSiUoHvq6p 6ivg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=O/XFZ/+6CJqUqFY2kBzrGvEKjq+yBbx5dOWN6p476wI=; b=gwR5KTpoRpA7hG2CiRs3TFTqnSvitYUgdpnjFdtLiNdu8mliEwmOFHLmrrbMyuUOzf 61geeHj0eKTG41WOyKW/PSxQHYoiAn9b7ECxrsMQ6al3ak4lXc/vE95XEMJObyeQL7Tq Gb/jpGoTR16v18QauY5i5Xeipc1jFB/iDRbgaHXa5f7Y4Oq4sYSDiYTWNZcTKF2x8Sb+ 2flrz2+7qjKCFyKVVS8zJvvS4dwPU/u+ufsv4TT5VTpFeYF+Pd3zdDs4nMYoGXDugkdF 01kkVvGGJZOGnFg4AIrFfiCmRZyJLQKvsCAwpoWXoCkT9+8JP5lhkdl8QSxOE+hUknKq +EAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=b89hndTH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b1-20020a170903228100b0016f1eb1317esi6176091plh.471.2022.11.06.01.50.57; Sun, 06 Nov 2022 01:51:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=b89hndTH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229758AbiKFIsP (ORCPT + 99 others); Sun, 6 Nov 2022 03:48:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229665AbiKFIsO (ORCPT ); Sun, 6 Nov 2022 03:48:14 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C722ADF45 for ; Sun, 6 Nov 2022 01:47:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1667724431; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=O/XFZ/+6CJqUqFY2kBzrGvEKjq+yBbx5dOWN6p476wI=; b=b89hndTH7NAXDATij7B0RfhOu8P4jjH4evSEQV5RvOfm4VPV9ETM24eEFj/n25XWEBAUeD bfkmpH0hXSE3mrz4oS8m4gTwwd5fmKfbn4k3cJuTdjW75w4PMQmXtLA40F5jdaeal7QC8Z hCZlkL9TgUz0fXuy/j87ZvdeY/7JETM= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-433-q4Vc802fMZKTta10W5WltQ-1; Sun, 06 Nov 2022 03:47:07 -0500 X-MC-Unique: q4Vc802fMZKTta10W5WltQ-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 701813803913; Sun, 6 Nov 2022 08:47:07 +0000 (UTC) Received: from virtlab701.virt.lab.eng.bos.redhat.com (virtlab701.virt.lab.eng.bos.redhat.com [10.19.152.228]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4851B140EBF5; Sun, 6 Nov 2022 08:46:57 +0000 (UTC) From: Paolo Bonzini To: torvalds@linux-foundation.org Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org Subject: [GIT PULL] More KVM fixes for Linux 6.1-rc4 Date: Sun, 6 Nov 2022 03:46:56 -0500 Message-Id: <20221106084656.148797-1-pbonzini@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748736063573264969?= X-GMAIL-MSGID: =?utf-8?q?1748736063573264969?= Linus, The following changes since commit 8e5423e991e8cd0988d0c4a3f4ac4ca1af7d148a: Merge tag 'parisc-for-6.1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux (2022-11-02 11:25:12 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/virt/kvm/kvm.git tags/for-linus for you to fetch changes up to f4298cac2bfcced49ab308756dc8fef684f3da81: Merge tag 'kvmarm-fixes-6.1-3' of git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm into HEAD (2022-11-06 03:30:49 -0500) ---------------------------------------------------------------- ARM: * Fix the pKVM stage-1 walker erronously using the stage-2 accessor * Correctly convert vcpu->kvm to a hyp pointer when generating an exception in a nVHE+MTE configuration * Check that KVM_CAP_DIRTY_LOG_* are valid before enabling them * Fix SMPRI_EL1/TPIDR2_EL0 trapping on VHE * Document the boot requirements for FGT when entering the kernel at EL1 x86: * Use SRCU to protect zap in __kvm_set_or_clear_apicv_inhibit() * Make argument order consistent for kvcalloc() * Userspace API fixes for DEBUGCTL and LBRs ---------------------------------------------------------------- Ben Gardon (1): KVM: x86: Use SRCU to protect zap in __kvm_set_or_clear_apicv_inhibit() Gavin Shan (1): KVM: Check KVM_CAP_DIRTY_LOG_{RING, RING_ACQ_REL} prior to enabling them Liao Chang (1): KVM: x86: Fix a typo about the usage of kvcalloc() Marc Zyngier (1): KVM: arm64: Fix SMPRI_EL1/TPIDR2_EL0 trapping on VHE Mark Brown (1): arm64: booting: Document our requirements for fine grained traps with SME Paolo Bonzini (2): Merge branch 'kvm-master' into HEAD Merge tag 'kvmarm-fixes-6.1-3' of git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm into HEAD Quentin Perret (1): KVM: arm64: Use correct accessor to parse stage-1 PTEs Ryan Roberts (1): KVM: arm64: Fix bad dereference on MTE-enabled systems Sean Christopherson (3): KVM: VMX: Advertise PMU LBRs if and only if perf supports LBRs KVM: VMX: Fold vmx_supported_debugctl() into vcpu_supported_debugctl() KVM: VMX: Ignore guest CPUID for host userspace writes to DEBUGCTL Documentation/arm64/booting.rst | 8 ++++++++ arch/arm64/kvm/hyp/exception.c | 3 ++- arch/arm64/kvm/hyp/include/hyp/switch.h | 20 ++++++++++++++++++++ arch/arm64/kvm/hyp/nvhe/mem_protect.c | 2 +- arch/arm64/kvm/hyp/nvhe/switch.c | 26 -------------------------- arch/arm64/kvm/hyp/vhe/switch.c | 8 -------- arch/x86/kvm/cpuid.c | 2 +- arch/x86/kvm/vmx/capabilities.h | 19 +++---------------- arch/x86/kvm/vmx/vmx.c | 18 +++++++++++------- arch/x86/kvm/x86.c | 3 +++ virt/kvm/kvm_main.c | 3 +++ 11 files changed, 52 insertions(+), 60 deletions(-)