Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1419527rdh; Fri, 27 Oct 2023 13:50:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGU7WQUq7Hhypoo1i8r8yRgcXj5PnBkvqEIj/b5AJlGnIk9sp/kUsp2rMPrJaRA33VOhgrM X-Received: by 2002:a05:6a20:430d:b0:171:a2df:4e68 with SMTP id h13-20020a056a20430d00b00171a2df4e68mr4790337pzk.36.1698439812078; Fri, 27 Oct 2023 13:50:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698439812; cv=none; d=google.com; s=arc-20160816; b=u/ILs4wMHfnzqz9WGIhFWCvg7t3R3idhE/j7BD4Jorj70hKHiJkZpX3naDz1wC+8uK duaDkU3T5q7Qiy7KqfKzg8qb4ifqKwQpDIKFlI63imBPqiY2DwDtyr9BbYEAC0SxQX97 X3ZYo91THSE0fSkre7u8QbM1sG2Ngcoary1Zy9yFVlPear2yC8HL541JqAEdtdrjgcVg booJ2Nu8QdRTGKJSz3JvSrQ16Y8xe/qzLkmylq8HDvyXpj5CDDc9hJ+ErsfHymBYncB9 sdea0xd9dP8XXwwcxKHqYifoPjho4ov5OyGzeAs3YbHwZqZt/D5+bPR2OYaAKv9b8TLv K/bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:reply-to:dkim-signature; bh=f1ReUtUHakvXxrTTVPsvLxhNP/KZhPScACaGU9TuGJw=; fh=dogxdQWc7Q2U5Ekp9F18wEHwMgE3kRwQ/60KgTj3654=; b=YnaTxGBZ4t71LV8Q8T/oDLW5DYk94lhGLDjx5EZYTblS6ZytttCNJcj6e6gBHAzRz7 J0qgqS6AwtyXPHS3wFe3m/ZBbumN1dB/kjKFYBF1BKYX5cUkwrEWLjU0E46LWiECYwPm 1qeVEB6Uj8UMhQGyHlYAbhopmxKdPXxshi4LTxSUVMjLRmDY7WePsrTIW1BSsqncqxCa WZC4dUZnZQTtybk1zCWoMc++kLREwHqwxLvXyLDsUMI7dKonjwPFLHdu4v5xH0qebcQg 1NPUkUsWq1FUHbs01LLPoZuB1EVwepK8ReyXel2hYyTfpg2RMICMVmxRwyCP46htkATS 0RMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=TQx1+u8f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id m17-20020a056a00081100b0069100706960si1499539pfk.116.2023.10.27.13.50.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 13:50:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=TQx1+u8f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id B74B580AB1E9; Fri, 27 Oct 2023 13:50:10 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235248AbjJ0UuE (ORCPT + 99 others); Fri, 27 Oct 2023 16:50:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346513AbjJ0Utv (ORCPT ); Fri, 27 Oct 2023 16:49:51 -0400 Received: from mail-yw1-x1149.google.com (mail-yw1-x1149.google.com [IPv6:2607:f8b0:4864:20::1149]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC051D47 for ; Fri, 27 Oct 2023 13:49:47 -0700 (PDT) Received: by mail-yw1-x1149.google.com with SMTP id 00721157ae682-5a90d6ab944so25227827b3.2 for ; Fri, 27 Oct 2023 13:49:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1698439786; x=1699044586; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:reply-to:from:to:cc:subject:date:message-id:reply-to; bh=f1ReUtUHakvXxrTTVPsvLxhNP/KZhPScACaGU9TuGJw=; b=TQx1+u8fPhIp9iPerUK8qDODmu3Ow5OuxQT+wXMahiZ9aj20lS5y1PBqvndUtKPX/W YMWbUOunZLXdZNgPrjPGSr8AVRnXtpqyu7zLkA19CvR0/d5CAIPRzHAx5nQ3vMn2fXSY n71+nZXI6LCShyCt9pbQV2wgYHMAyOX7BAOO+H/PBu7MZhQ5cNHBWB0OT+jInBaBRRR2 yU9r9PseSQg+eS7Zz6oUH0zlZyKnuskp/RhCgGfepio4AHZUPswB86krG+tRUI0h5hEE VlTtwbSpqJaZgewRMZ2WoJhOqJ/tzHnCYMnwqhM0ci9ZMq+zwC8sEewMBJW84QoJZZ5j 66Vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698439786; x=1699044586; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:reply-to:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=f1ReUtUHakvXxrTTVPsvLxhNP/KZhPScACaGU9TuGJw=; b=Da05Z0NGdAZCFpn1CVR4xxwWWVyHn23twf6qJRVkUyY3b7Y46tBl1Pp+itxZaD5qub 1/wnvv6B97M9qH1vsbCULBl27XqQMd3A/TYSQlj4PqxvohoWpETO5qH1+JKUlZJDLqe4 E7sGKKXX/XIsue0ljwAzYePueIWfpo//gQSQl+cBv82ld4h9af9CPrpeR/GyeGiavBXg iE9XgdpbruVXibpsMgd/uHlyMPAlXCqXM0cDSLUKRKCbYLUB6UqNm50mI5rNZ+nCntbx SK/Eim1nVLN/r3CSBecrb2KhaR6x298dCroi2RBtF8SjED7QZbDX1bwBHoT0gCA5YQRG x1Ew== X-Gm-Message-State: AOJu0YxOJu0Ds/o/oDPiDPD+UhPiDfRG8/Nb0AbBY9kPRSNHASckIWwT S6vBdJ5RVlT/vTPPJMW6xZbB+ApQnRQ= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a81:9214:0:b0:5a7:bbdb:6b39 with SMTP id j20-20020a819214000000b005a7bbdb6b39mr76039ywg.3.1698439786542; Fri, 27 Oct 2023 13:49:46 -0700 (PDT) Reply-To: Sean Christopherson Date: Fri, 27 Oct 2023 13:49:29 -0700 In-Reply-To: <20231027204933.3651381-1-seanjc@google.com> Mime-Version: 1.0 References: <20231027204933.3651381-1-seanjc@google.com> X-Mailer: git-send-email 2.42.0.820.g83a721a137-goog Message-ID: <20231027204933.3651381-6-seanjc@google.com> Subject: [GIT PULL] KVM: x86: PMU change for 6.7 From: Sean Christopherson To: Paolo Bonzini Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Sean Christopherson Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=ham 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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 27 Oct 2023 13:50:10 -0700 (PDT) A single PMU change for 6.7. Note, this _just_ got rebased because I had a brain fart and used kvm-x86/next as the base when recreating the "pmu" branch after the fixes for 6.6 were merged. The commit has been in -next since October 16th as 4b09cc132a59. This is not at all urgent and can definitely be deferred to 6.8 if the late rebase is an issue. The following changes since commit 2b3f2325e71f09098723727d665e2e8003d455dc: Merge tag 'kvm-x86-selftests-6.6-fixes' of https://github.com/kvm-x86/linux into HEAD (2023-10-15 08:25:18 -0400) are available in the Git repository at: https://github.com/kvm-x86/linux.git tags/kvm-x86-pmu-6.7 for you to fetch changes up to fad505b2cb838fb52cb72fa22830824c80330f2f: KVM: x86: Service NMI requests after PMI requests in VM-Enter path (2023-10-27 13:20:29 -0700) ---------------------------------------------------------------- KVM PMU change for 6.7: - Handle NMI/SMI requests after PMU/PMI requests so that a PMI=>NMI doesn't require redoing the entire run loop due to the NMI not being detected until the final kvm_vcpu_exit_request() check before entering the guest. ---------------------------------------------------------------- Mingwei Zhang (1): KVM: x86: Service NMI requests after PMI requests in VM-Enter path arch/x86/kvm/x86.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)