Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp1962816rdg; Sun, 15 Oct 2023 05:26:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHoegGvOylq4fSmOQtXt7A3/qPRR055Ny12ierZQve9v8DVEGZZn0R9ZYU86/lf+KvZLwDs X-Received: by 2002:a05:6a00:190e:b0:693:3dcd:ecad with SMTP id y14-20020a056a00190e00b006933dcdecadmr32337068pfi.21.1697372769064; Sun, 15 Oct 2023 05:26:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697372769; cv=none; d=google.com; s=arc-20160816; b=wsVF3ssaWJCnbAckas33dJxf1sj+wgaxrjYOfC4+CEvcQwC8XLlxFABnWXjmHJmcad oiTU2TmDoG7JBaDkvHBAr/Ri7mOuBpC+pJK1B0IOVwmuBOVJR8sWwym9CihKGPD6dwJD 8t2pXSPtV6nl3sXxUZERonEYOdR+9vO1KBhgVGqwDUowvoYvAnAglgia85+WASx9+faz cmw5eY+REOpUgEVJr3obfUWKZQlH0h4p+def7694325hPu1go/++xzHSwZcbEVrK0HsJ RLLaHKK9eUP6EluQ/Llyi7H56XcqXaQV6919rOv2MOSa56ubmsSwhph4QffNBmpu0Ayl awxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=gOp94H6OSlV2qKKGzaRSRBTczHZK7QO4ptY+js4GFCE=; fh=qaYm4b6GKYlZ0T3gtLZ7fjEfCEC8jMv5XzYe6fOhw1Y=; b=VWWe7pFjQDdYnUWxLHoEv4Sa4sWgpo5Fv+R1fJsnOrJkuOUAlwWzc1UIoIAlAR7RzC rJRh7gVMc6LOBL/lOFcGaKyMz36HP/Of5DaAEgqXo/p4L+bbuAfbRZO5kHQ9r9xqzpJu /OoTTU/Ii2cejq3jrcBaFZnhF4Hoz2sjTwyKP7GFb8R/e1/uP7OkKJjF74NDE2G1EzBV 5ETmfm3KBMDz8UtxiL2LGAb+b/+LxXJ9rKQNinLQuBu+eHj10qpKZcw4gGLAGp4whxuc EOlYQmYF8PLuDsuYbHr1o4orei+Lq5fcaJRJl6HbzfMjQwcySNhY6FHVouPUH2knNGyM 0JaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=abmII4Id; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id bo12-20020a056a000e8c00b00690bc2ac50asi19043411pfb.246.2023.10.15.05.26.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Oct 2023 05:26:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=abmII4Id; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 2D2EB807FCDC; Sun, 15 Oct 2023 05:25:46 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229672AbjJOMZi (ORCPT + 99 others); Sun, 15 Oct 2023 08:25:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229603AbjJOMZh (ORCPT ); Sun, 15 Oct 2023 08:25:37 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7027CA9 for ; Sun, 15 Oct 2023 05:24:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1697372691; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gOp94H6OSlV2qKKGzaRSRBTczHZK7QO4ptY+js4GFCE=; b=abmII4IdXfvUadTjrHXrztg7BPrPiSIBoz0qIvu4aHP82oX6Y7zGoKed0qdjdBATHpX6/Z 36teqdrt3cT9n05huI7Ca95T5cvFP1rxCHWNIMOdZpFaVE/g2gWxWWNbjCNX+T9aw9uJxL RsqonEm2Zgk5NEp+oKOvRUAQT267ayc= Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-370-0INaAy4_MAuxNNOca-OWFw-1; Sun, 15 Oct 2023 08:24:50 -0400 X-MC-Unique: 0INaAy4_MAuxNNOca-OWFw-1 Received: by mail-ej1-f71.google.com with SMTP id a640c23a62f3a-9b2cf504e3aso244523266b.2 for ; Sun, 15 Oct 2023 05:24:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697372689; x=1697977489; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gOp94H6OSlV2qKKGzaRSRBTczHZK7QO4ptY+js4GFCE=; b=CklWfutiOhXyp/oQRkEO4LKQDpRwqidAvTFzQd4aYI7zg4mKRF4xiiFBZ51fNU3crx OUJ0y+bqKiqm03gbOgtyNKaxwLSYkmP61x/K+raGV0PPDYdvpgJfplyFrhF0DnY5q+hK xjGERHPPHkcxfkPBodwhC2dYl/XVRMHi/vTMp8cYScSx/ieLQ/6T2NS20ABYqAONn9ue /uq1N8ccfobE51v/CJedlW5oudrk8vSbt4Ajhum5qsxv5uSkriy+8kXqYUPgiDtaTCK0 6Y5dGCXvwQwLWLoYZ3tgaYyUId7fRjxXOdH20BfwSp0oH/yoJWQk2Phl8pVDCtlWsT/l 8Ilg== X-Gm-Message-State: AOJu0YxlVJnjC5XTydrvnRYbgGSKtaqBFF+1/cwvkAvC3yVYLQYIkMXK JoYBcoPvedBJ7Ye8UBpy3yfKyIDjOvRKTW/a4HyXZhXIzwpLcTowsymKFfwUoPJ5dB79q4FSbUI wIFJ1rXLurjUuozSL+sHSDWqRUVKFz8950+NUbzl0 X-Received: by 2002:a17:907:7f90:b0:9c2:2d0a:320c with SMTP id qk16-20020a1709077f9000b009c22d0a320cmr1218029ejc.46.1697372688855; Sun, 15 Oct 2023 05:24:48 -0700 (PDT) X-Received: by 2002:a17:907:7f90:b0:9c2:2d0a:320c with SMTP id qk16-20020a1709077f9000b009c22d0a320cmr1218016ejc.46.1697372688516; Sun, 15 Oct 2023 05:24:48 -0700 (PDT) MIME-Version: 1.0 References: <20231013234808.1115781-1-seanjc@google.com> In-Reply-To: <20231013234808.1115781-1-seanjc@google.com> From: Paolo Bonzini Date: Sun, 15 Oct 2023 14:24:35 +0200 Message-ID: Subject: Re: [GIT PULL] KVM: x86: PMU fixes for 6.6 To: Sean Christopherson Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email 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 (agentk.vger.email [0.0.0.0]); Sun, 15 Oct 2023 05:25:46 -0700 (PDT) On Sat, Oct 14, 2023 at 1:48=E2=80=AFAM Sean Christopherson wrote: > > Please pull three PMU fixes for 6.6. These aren't super urgent and have = all > existed from some time, i.e. don't absolutely need to go into 6.6, but I = also > don't see a good reason to hold them back (they're all tagged for stable,= so > it's kind of a moot point). Pulled, thanks. Paolo > The following changes since commit 5804c19b80bf625c6a9925317f845e497434d6= d3: > > Merge tag 'kvm-riscv-fixes-6.6-1' of https://github.com/kvm-riscv/linux= into HEAD (2023-09-23 05:35:55 -0400) > > are available in the Git repository at: > > https://github.com/kvm-x86/linux.git tags/kvm-x86-pmu-6.6-fixes > > for you to fetch changes up to 73554b29bd70546c1a9efc9c160641ef1b849358: > > KVM: x86/pmu: Synthesize at most one PMI per VM-exit (2023-09-25 14:42:= 52 -0700) > > ---------------------------------------------------------------- > KVM x86/pmu fixes for 6.6: > > - Truncate writes to PMU counters to the counter's width to avoid spurio= us > overflows when emulating counter events in software. > > - Set the LVTPC entry mask bit when handling a PMI (to match Intel-defin= ed > architectural behavior). > > - Treat KVM_REQ_PMI as a wake event instead of queueing host IRQ work to > kick the guest out of emulated halt. > > ---------------------------------------------------------------- > Jim Mattson (2): > KVM: x86: Mask LVTPC when handling a PMI > KVM: x86/pmu: Synthesize at most one PMI per VM-exit > > Roman Kagan (1): > KVM: x86/pmu: Truncate counter value to allowed width on write > > arch/x86/include/asm/kvm_host.h | 1 - > arch/x86/kvm/lapic.c | 8 ++++++-- > arch/x86/kvm/pmu.c | 27 +-------------------------- > arch/x86/kvm/pmu.h | 6 ++++++ > arch/x86/kvm/svm/pmu.c | 2 +- > arch/x86/kvm/vmx/pmu_intel.c | 4 ++-- > arch/x86/kvm/x86.c | 3 +++ > 7 files changed, 19 insertions(+), 32 deletions(-) >