Received: by 2002:ab2:7407:0:b0:1f4:b336:87c4 with SMTP id e7csp23566lqn; Thu, 11 Apr 2024 12:30:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUbmDLnGeGhj/eGPOCxbFBj5kRJo9bPBy/J38a2TYLwcCJGP1j5wSrcUvegKmpi3pjKZN98eRcWJ4A3gH+ZgpFJ54VIUnLCINfDkDyT4Q== X-Google-Smtp-Source: AGHT+IGfwptmUJ7Tx6BTjTzSVii+/l+VpjxZfAByWWa4r8VBXWXsbLyiJx/ymwJjRoIBzPo7yckn X-Received: by 2002:a05:6a00:4642:b0:6ee:1c9d:b471 with SMTP id kp2-20020a056a00464200b006ee1c9db471mr794459pfb.25.1712863823279; Thu, 11 Apr 2024 12:30:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712863823; cv=pass; d=google.com; s=arc-20160816; b=w4BOiOzV8/EH75EFefLDVJ2CC+o7e7O97wdF6DXAlkfBapYTZCilpjyzlEJ1Z5T7tb 7JozJC5kxiMSyQcA2PEBVfS4QCM+76moWvfMetI/93mjSECbIIIMwaaxX93jBDM7Vr+8 C9sFqpZKZOxSpW3B86l3vk2pFD/MNiS+m1G/Kx3ntiYWB6SrOGlmElIyTUOil38nzLEA tNqfT6dLsCMPv4XRS4mVxZeRweD1e/WTEK4hi7pbPtBXprCK/hjoE/3XLSuDJYgENVFb oD6Y2WolDJ0r5JSroxFUF9y3rqTk90KQ2VCggmFXbFx0G5pg/0Ce85Q4l31OrXDQj6Pb FIHA== 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=clKeq70RPFc9QXZP7aF0MPVECFwTUekvQYtIoU4m4cM=; fh=M910mvxNiuOVp8hX12pLRIwcEKV2/MsdYAgxNY116Zk=; b=T4/8SnyOhHOB/r7KGh0Z23V9ivYHtxxSkkO5Pq6qEqxKmrmi2bNhiGTE5c4ctjvopx uYlh1AoVgnWdZ4K8zfvl8qQm5GBLvUYnW5d+2e+IrrLyhKx3UmxT6r4tbAdalRtJ8DpI fyqqpF2piXIYYLaLSgeDMb3XA2wWrJQTla3b/jS93RJC2Jri2jTWHFoKu5fBf4bjap21 CavNc95bPBa+y5v6TzdXc3hh2zbRqFcw1rCVoQ7/f2+yHY8QmjlgJWM9uKfBSGiU1QHy sXkkwu6OgnM/miVYc1TuKunjLKfaOX18rMvkura12ikRJzwULLFzBGI36EaME7xS6no5 b/yg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="OTCyS/BY"; 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-141500-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141500-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id g11-20020a056a0023cb00b006eadffbe8d6si1922629pfc.339.2024.04.11.12.30.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 12:30:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-141500-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="OTCyS/BY"; 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-141500-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141500-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id DE172B24F99 for ; Thu, 11 Apr 2024 19:05:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F416414286; Thu, 11 Apr 2024 19:05:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="OTCyS/BY" Received: from mail-yw1-f201.google.com (mail-yw1-f201.google.com [209.85.128.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 35421D51D for ; Thu, 11 Apr 2024 19:05:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712862333; cv=none; b=Aq5vO+XFglFGudr0RN+05GbpT9evBUlkGE2Sq1rRcfVGxOrQrZbFMr2/OTkPtbNVreAzUPc2HsKdn+AGioLbs6XTt3V79iFB8ogN+FrcQgQwG5fadme4rvz9F1ByVfO5lPhIVXkjfBEFiNoJrUHyFdEkjYlq75dmmx8MvkLFpjc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712862333; c=relaxed/simple; bh=Ocy+0fEzfXS5sQAYwDMV8ViHyq+Ou3j+fV+ygiLQfSY=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=l85Jc0YTZcqr0aDFXLxBkB06V+e1Qv0PW5rO8uEm+mxW1tfBCgJ/JPOLPxViC9Uk0KSXzDTv4I+fg5j2x0sWcHGCqharwSK8MEIJCM5cujf64paXjd7+HXL6yzP9jJ1YxUk9VZVVaVqngBziF6Bbx9Gy+javAxjUMvJe1WYXSb8= 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=OTCyS/BY; arc=none smtp.client-ip=209.85.128.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-yw1-f201.google.com with SMTP id 00721157ae682-615372710c4so1410717b3.1 for ; Thu, 11 Apr 2024 12:05:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1712862330; x=1713467130; 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=clKeq70RPFc9QXZP7aF0MPVECFwTUekvQYtIoU4m4cM=; b=OTCyS/BYVf+ENgYAbGX1LJ0oJYrmUiuxBZ/VR6HPeVtHXNopiRvTh2WrqWgog5NVdp WRHDekQiezQu2dKpus+TOWdcr4w7qQmi8zZMRYfe3r3LsYBTaYKrcVEp/yBJxU22Qq2a gfZ93fQKkNHIKQCBWwLOMxKn0jaj4/h6kZAn1wIj0Lxuu2ea6U5inln+Bvqm+z6u/RSw /o5GezRrFWkZZErs4epuwRfjyGCN6gmSCNTaDqhsv+k7+T7EsMaAgLnRi88wZ713b5Pk 9nArVE/XAWOyNU1YzhH62q+hnWRiUUUEs84TgJLsB/c7pa+TtDwk+tmyP4XQxqnCCoEO n4MA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712862330; x=1713467130; 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=clKeq70RPFc9QXZP7aF0MPVECFwTUekvQYtIoU4m4cM=; b=w+9l5b2thEaRUqQasJgqPfhtT2wQPoK9jPT2U7jXlHXGPD47VA5Bq5FeJlA/K5KIkd Fna8Uld8RZkSsi8fEBEivwDN7NAKLO2De6FR7mfYDrMmsag+Y3yzZlnZPiFl5+H0qYPL jSSo1WVTwMKnqQLSDxPDvIi1AihSU4AN2vyA0rUBWZJhapPALrNH3fvwbTxFRgYJqkCC wAvJds2aW8xxmL0BdOZRDFmmp36woMyu6ZlFMOlb5eg94upRkV/1MuFWkk/nOqx47qHu AXqRjbTEpw4ZAFivKicdUHAEZVKtl3XuRN9sbNv/2ENK+ocMVWKaoeo13umEc3sNpX3C A+7w== X-Forwarded-Encrypted: i=1; AJvYcCX5oiO6u6uC5gZAwhRit0Siy5OR4oXxKowgSdiUCxHdp9/94kvR3Qja5B2Z3el0zQpXJbyocMO+ykukUJWHLSSfT9B/xGT/b+R6sg7v X-Gm-Message-State: AOJu0YxE55JS3YxAnQkO3ciAN88EQ7haDxXUsPUjxZrFZOborBiOXDOx R37EfRoHmuCwcSLvmf3w1gwyZnM7e4fnxTNEwslbphkmX6Vc4Y15oLnEhfRR1WofIjW9VOhfEGN dIw== X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a81:848b:0:b0:615:ca8:6058 with SMTP id u133-20020a81848b000000b006150ca86058mr70184ywf.5.1712862330335; Thu, 11 Apr 2024 12:05:30 -0700 (PDT) Date: Thu, 11 Apr 2024 12:05:28 -0700 In-Reply-To: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240126085444.324918-1-xiong.y.zhang@linux.intel.com> <20240126085444.324918-5-xiong.y.zhang@linux.intel.com> Message-ID: Subject: Re: [RFC PATCH 04/41] perf: core/x86: Add support to register a new vector for PMI handling From: Sean Christopherson To: Xiong Zhang Cc: pbonzini@redhat.com, peterz@infradead.org, mizhang@google.com, kan.liang@intel.com, zhenyuw@linux.intel.com, dapeng1.mi@linux.intel.com, jmattson@google.com, kvm@vger.kernel.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, zhiyuan.lv@intel.com, eranian@google.com, irogers@google.com, samantha.alt@intel.com, like.xu.linux@gmail.com, chao.gao@intel.com, Xiong Zhang Content-Type: text/plain; charset="us-ascii" On Thu, Apr 11, 2024, Sean Christopherson wrote: > > diff --git a/arch/x86/include/asm/idtentry.h b/arch/x86/include/asm/idtentry.h > > index 05fd175cec7d..d1b58366bc21 100644 > > --- a/arch/x86/include/asm/idtentry.h > > +++ b/arch/x86/include/asm/idtentry.h > > @@ -675,6 +675,7 @@ DECLARE_IDTENTRY_SYSVEC(IRQ_WORK_VECTOR, sysvec_irq_work); > > DECLARE_IDTENTRY_SYSVEC(POSTED_INTR_VECTOR, sysvec_kvm_posted_intr_ipi); > > DECLARE_IDTENTRY_SYSVEC(POSTED_INTR_WAKEUP_VECTOR, sysvec_kvm_posted_intr_wakeup_ipi); > > DECLARE_IDTENTRY_SYSVEC(POSTED_INTR_NESTED_VECTOR, sysvec_kvm_posted_intr_nested_ipi); > > +DECLARE_IDTENTRY_SYSVEC(KVM_VPMU_VECTOR, sysvec_kvm_vpmu_handler); > > I vote for KVM_VIRTUAL_PMI_VECTOR. I don't see any reasy to abbreviate "virtual", > and the vector is a for a Performance Monitoring Interupt. Actually, I vote for KVM_GUEST_PMI_VECTOR. The IRQ/PMI itself isn't virtual, it is quite literally the vector that is used for PMIs in KVM guests.