Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1710746lqe; Mon, 8 Apr 2024 19:02:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXr+oTmWX2/XSKhkpPR/kkgOJvbbe9nlDkpvp593+QpKiLbu/ylWBdGOQ38vys2rboyFfkI56jaG1hr15Ixzqjjq5/2kBnqtZ8a14Mczg== X-Google-Smtp-Source: AGHT+IGXouMB8YbhflwVW3T9hL0llrfuQVOOEOz3lzklduG9MSis0iDHDxp8Fje58JVkrQ3QARnr X-Received: by 2002:a17:90a:8cd:b0:2a5:3aa6:caf6 with SMTP id 13-20020a17090a08cd00b002a53aa6caf6mr2028244pjn.6.1712628134714; Mon, 08 Apr 2024 19:02:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712628134; cv=pass; d=google.com; s=arc-20160816; b=0LO5etw4y28+qfHpUSzj5kN2mnINImdRvZUpJw323RQcjVezkuDdSKInCC1zvUpN5l WITYh6O6pHQRFap30Brbm1BcfEAAoReso7IwXuzLU2c3GmvZahFsUDVLd47bFXy+lq82 ZomGxXaqmQvt2EHFttsxRwrHvnx3SNgrQlkBXBvXViVrdBYSoDk05nPymb44x0OGCxZR R2n7B4zy2pCF8KOjKDklBFa16FPNWtxJzPjmJ94+D5oFSA2/kBd8P5VKEx2cNQxnm+XC gwrVukG0N/auSKejMnKiKXMxusBasFfqp4vjN6D8zGQMWcYSVo5CFuligh0QftdNWh0N l+jA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:references:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to:date :dkim-signature; bh=2FWHqdez77NfnwFdv1MlKZWeYLKe/YUQINtEFCpbrlo=; fh=xbRMoVc0+hKk9XcMy5NqhHu1aTSYTN7mSjd7m9xPYWY=; b=AUEuOwaNmEtKcoOMYejeglt7ANA4iuPJ8GPFVPz6oTVnLZfObUUfyC9hl6M5h7+z1T RnKvTvolyYZ3sKpFKVn4/ySgOTLcuJY3FP5vfT28eyzJ1d4cZiZkFqorS9tJNP1dR/2G 2lD3Yd1v48g+qs90tnh0IopH3s1mFIEk2K5PYa2uCv0Wf7mAxd66ds+f+s+qyIdPAbd7 9YBPQ5Qn5QdMDVvuaAMltghNu47KQKhl6LbXbxUy4cCNeXNyHtL/iRTlHrFIn5zISz/P jUO1W++EOV6yXe49C0xpdwZkn1GaAPsmy3/VT+nt7TgmpsnRHAQloe7v+DZiN2H+GRfn 7K0w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=n1yyYNVV; arc=pass (i=1 spf=pass spfdomain=flex--seanjc.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-136115-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136115-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id f2-20020a17090a120200b002a330a7b1d4si7547218pja.173.2024.04.08.19.02.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 19:02:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-136115-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=n1yyYNVV; arc=pass (i=1 spf=pass spfdomain=flex--seanjc.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-136115-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136115-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 3F141283033 for ; Tue, 9 Apr 2024 02:02:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9B92A51C4D; Tue, 9 Apr 2024 02:01:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="n1yyYNVV" Received: from mail-yb1-f201.google.com (mail-yb1-f201.google.com [209.85.219.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5D57D5102E for ; Tue, 9 Apr 2024 02:01:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712628115; cv=none; b=lgQZeasGbatunPEukC0/TRMVifFVz5wk27DFLm1LZBTJufIcGU66FbtxDRNACzqmdL7280e7f0ADKbGyXHAWRW/3uBiFV3PjXruNdZFrIyC0iIVn052DLevL+TxL6MnsD/LKRAY/qktuxdigmR1g/I8fdGCJn67ZTBokvOYZRS8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712628115; c=relaxed/simple; bh=Idd1OGdzEkMkRZJRWImpyOGXFz5IB4BbPtSiNGNyeHQ=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=FunGx4Fem0v1WV1qrDSo9tDnZboakUAj9iivquCGzs/xa96qrlO3LbPz6AV+dg7N2WHxwX9S9AvoYy5lc/Wa43RjwABHdBtf+3Okc0KgR6+d9iL4VzXpsJrxxJW9Iok3zl5NwFtm6QH1ehDdnvHux3SbJjn5oi45aiuzUSV2gME= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=n1yyYNVV; arc=none smtp.client-ip=209.85.219.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com Received: by mail-yb1-f201.google.com with SMTP id 3f1490d57ef6-dce775fa8adso8672960276.1 for ; Mon, 08 Apr 2024 19:01:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1712628113; x=1713232913; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=2FWHqdez77NfnwFdv1MlKZWeYLKe/YUQINtEFCpbrlo=; b=n1yyYNVVdudZ9KtPOJO00SGJdhG39Svc8MUHVGzo/DtVZ0Ib3e++4091LnjRnAwWLS DiLmr0NGV/43YfzD9b8UaE9oJ8CEDONDFwWNk0x93gJwSfjNLv/WKuFhVnAQ5G4wq1Xe YFvm7c2JkHhdZCVskiIPwa5V84mj7NPc1Pd1AbIBjv3ZSwkoWk+9jnJ3SEoqGJuvbDgX A7Ruo5XKsG1sxavpWE+bNsrWeYSfhKVbn/v0708WFCA+hRsitk257fogBLMXcQwlllC4 hB/SFlH69Tq7fbuIrO8y09LfpxdB11+YpDfSs/h1zTe0V7vinMZOglr0WLQjNOkngcEg 708g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712628113; x=1713232913; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=2FWHqdez77NfnwFdv1MlKZWeYLKe/YUQINtEFCpbrlo=; b=CLsiIfilzT3r7B0UUt3SkI0YsAo1CNTNHkfYfaIJ5gKo20c+Y31y022KAuMDnEjZxl ytfXPv/k1qcu0KVxcVh870wgVIpUZOgzclTHCigLszTOVSK+Pr7GxiKay04s7MOopvf7 kx7QlP2nymIacgiW6uTNZjNwrxc9jg204NGbKDbTrNehRg6ngRZN7lPYrRk0bCBOyf4I qc1Hu665YKIm9mzjPltjNxr5eVWAItgFWMK6oSOhNgLg/RiaOgLZ7r9rCRQDaTlvQsRi UZMHys9ZvQPD6/AhPgdiV2RxLfeRj2wpUohtaaKl/upTd7avg8FQ85BDpkpSAiuVU83V BPSA== X-Forwarded-Encrypted: i=1; AJvYcCVKsUOsOcyePSyr7tmVq6yBa0g9FHF3CZOqRpDw8HM0TCPQLYUI4HeTnUz+kzBT9YtswlVkIBOwetW6CJQzV7ndoFIMErd1mP1XyqJ2 X-Gm-Message-State: AOJu0Yx7bY0QKz8ywjp16KJ0AeGaWbraa4qGYWCcR4LnS3GzI3jHAWbe KdPekAeL9tSWFid3QQ2vVddZEEMoWh0XRhUu5cH6IPO07wThJ3Nolg3FXv0O5tWx3qFDdz146CN gtA== X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a05:6902:1893:b0:dcc:5a91:aee9 with SMTP id cj19-20020a056902189300b00dcc5a91aee9mr3228659ybb.7.1712628113439; Mon, 08 Apr 2024 19:01:53 -0700 (PDT) Date: Mon, 8 Apr 2024 19:01:27 -0700 In-Reply-To: <20240405235603.1173076-1-seanjc@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240405235603.1173076-1-seanjc@google.com> X-Mailer: git-send-email 2.44.0.478.gd926399ef9-goog Message-ID: <171262747625.1420673.10308591615885503972.b4-ty@google.com> Subject: Re: [PATCH 00/10] KVM: x86: Fix LVTPC masking on AMD CPUs From: Sean Christopherson To: Sean Christopherson , Paolo Bonzini Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Sandipan Das , Jim Mattson , Like Xu Content-Type: text/plain; charset="utf-8" On Fri, 05 Apr 2024 16:55:53 -0700, Sean Christopherson wrote: > This is kinda sorta v2 of Sandipan's fix for KVM's incorrect setting of > the MASK bit when delivering PMIs through the LVTPC. > > It's a bit rushed, as I want to get Sandipan's fix applied early next > week so that it can make its way to Linus' tree for -rc4. And I didn't > want to apply Sandipan's patch as-is, because I'm a little paranoid that > the guest CPUID check could be noticeable slow, and it's easy to avoid. > > [...] Applied 1 and 2 to kvm-x86 fixes. [01/10] KVM: x86: Snapshot if a vCPU's vendor model is AMD vs. Intel compatible https://github.com/kvm-x86/linux/commit/3b764d0af391 [02/10] KVM: x86/pmu: Do not mask LVTPC when handling a PMI on AMD platforms https://github.com/kvm-x86/linux/commit/85cff527ab31 -- https://github.com/kvm-x86/linux/tree/next