Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3782163rdh; Fri, 29 Sep 2023 02:02:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFWPXMbIY7DqGaWyRD8lTuE1gjDrVHzPrfTz414WMNKtfzTHD7LLgYuw3CqX6guLmr7c/+P X-Received: by 2002:a05:6a20:3d0a:b0:161:3120:e840 with SMTP id y10-20020a056a203d0a00b001613120e840mr4615671pzi.2.1695978124624; Fri, 29 Sep 2023 02:02:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695978124; cv=none; d=google.com; s=arc-20160816; b=LKcClG3MFyyUUizyEDg/BdxAOGrCBfvBlIToWYBOfK+Jm/mKXv4VtaXyCCnOj0Qhu9 1ELB43N0ZumZ4/Hf+evdFRwjNfTEblwUDZ2Lh3l71l0t1DQz/h+3rhfGHASnPuhxrAs5 8SmEmnRU21hMw1CV9M7Qd6dAqdYHMEVCm4J+1V07fg/gyoI58tK8CCYEDpz6E5VoJPNM 1oA7+lp7ZwxfBtuPgT8HsLkfpwdDR17CG9KvvddCerhoTpQD2m5OqR1Eu+6RFtTYKewV cpAIty2hRdPnvHOoU5g4XFdiPZ8CzOTON1PK/iDWw7wJZdDZS0VVl+fmMqDE9u1XKuhT IG3A== 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:dkim-signature; bh=LHnl2CsLxrfQz4bzbwJAj223y7XyxSn5JpaUfYsfSDE=; fh=fmFd1GcxnHjt05sWIwnBP0J3x/U3BgYOM1urXhBsTVk=; b=mDSLd9WLubHVo5LTGenM57l/2FU0ZNCamr5ddNCvK9clTdVUg5dOwQbXOreRykyPG0 jdQJKoaMI2Y1Ri3ZdX/vVMIIbG3445AtAQdfelwexthlGGYy7PCdKNphfWzFNeTSCuld pkfhLLH5TUkliTnYAd4wXJ9O4jnjFv7hYi+WZkM5V4YRKzo2cG2AjPo3c0SAHWpR0w9M ifiVtBGETHlL06F4AOdhv6Ja2tfx6v+nfrxKiIFBwwx/RqC4awQUp12DR/9xpIba5e3W U1MS01NiPIyUBO9V+wqUFd4tG7XdiLoa1Yqz7CRl6aBwbOqdk0oSFQ9uJkcwPuBuzziO WoFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="rC1/WGQG"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id t2-20020a1709027fc200b001b8a8f359fcsi18980479plb.208.2023.09.29.02.02.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Sep 2023 02:02:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="rC1/WGQG"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 98A90825FDEC; Thu, 28 Sep 2023 17:42:29 -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 S232370AbjI2Am1 (ORCPT + 99 others); Thu, 28 Sep 2023 20:42:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232303AbjI2AmZ (ORCPT ); Thu, 28 Sep 2023 20:42:25 -0400 Received: from mail-pl1-x64a.google.com (mail-pl1-x64a.google.com [IPv6:2607:f8b0:4864:20::64a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5ED4D194 for ; Thu, 28 Sep 2023 17:42:23 -0700 (PDT) Received: by mail-pl1-x64a.google.com with SMTP id d9443c01a7336-1c61aafab45so102500185ad.3 for ; Thu, 28 Sep 2023 17:42:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1695948143; x=1696552943; 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=LHnl2CsLxrfQz4bzbwJAj223y7XyxSn5JpaUfYsfSDE=; b=rC1/WGQGD7SZLSycCz9NRY4e71edtsK2IX3bbn6OuMS8KtS3xBBxX+YbzEBoQx+WWI yR1GtfF2TV8Lam5xWApyMqRy4O2Nec4K0Fyj+wWl5C3UcAaK7UtYRVvQBgInXGaHIon3 LMcwIF99+jHB/C1fChwXUfLb6EGQ3KC15/SI1hSs1X+T+tUYLVzY4DIk1JHnghsNlSts qEL+AMNKgEe0iXvO9BKE3NR/in/dEvc8r1Zeof3kNcgyTLV1Ivi6w+RrCiIGOdZ9uKhu 4TSH/YkeswaD1yWzlmgZGIghpoW58KEC2rJKv6ye9+OcLcvCVNuEHFjTan+/Y8jNUHHs PTfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695948143; x=1696552943; 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=LHnl2CsLxrfQz4bzbwJAj223y7XyxSn5JpaUfYsfSDE=; b=GEijbvfc3Voj8nxjTrIaWFp1FnMrxYA6yS9PXTxBaDkqTWeTNnTEfzgNoMqM//3orr uuSsXe2JzfTalRVfGh0IYaTj1daswGuhy9hEdJWDZADKrWC+5UrJD1iutohRU///2Xs7 f9Jye7ocPIlxM/qqeAQ7ubY82p/F8FHLyXRfZbli240sRi5bGJZlC8pdEYf5YGI8T3nt JKzSkpjSkQMcFObYukAp//cL0Y4wwiKM4XScoNSE9QT0+tsiGfHP/cz/KA+SlG4Ilx3G +8xzB8AuX+m2q94nPCfjdiKvyQjU7lGNzqyMETZqmZT1Ju4PuvoW/WpockZn9+b3FxFU u0Iw== X-Gm-Message-State: AOJu0Yxp/i/4Ya+JCVg0a08LVv1hzfEyn7makf1WlOjyAf75pYnqswjm WjqXuP9Nk947nFro3oXh37dpZ8F4w+4= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a17:902:e851:b0:1c6:2b9d:570b with SMTP id t17-20020a170902e85100b001c62b9d570bmr34467plg.7.1695948142799; Thu, 28 Sep 2023 17:42:22 -0700 (PDT) Date: Thu, 28 Sep 2023 17:42:20 -0700 In-Reply-To: <20230928173354.217464-3-mlevitsk@redhat.com> Mime-Version: 1.0 References: <20230928173354.217464-1-mlevitsk@redhat.com> <20230928173354.217464-3-mlevitsk@redhat.com> Message-ID: Subject: Re: [PATCH v2 2/4] x86: KVM: SVM: add support for Invalid IPI Vector interception From: Sean Christopherson To: Maxim Levitsky Cc: kvm@vger.kernel.org, iommu@lists.linux.dev, "H. Peter Anvin" , Paolo Bonzini , Thomas Gleixner , Borislav Petkov , Joerg Roedel , x86@kernel.org, Suravee Suthikulpanit , linux-kernel@vger.kernel.org, Dave Hansen , Will Deacon , Ingo Molnar , Robin Murphy , stable@vger.kernel.org Content-Type: text/plain; charset="us-ascii" 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=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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 28 Sep 2023 17:42:29 -0700 (PDT) On Thu, Sep 28, 2023, Maxim Levitsky wrote: > In later revisions of AMD's APM, there is a new 'incomplete IPI' exit code: > > "Invalid IPI Vector - The vector for the specified IPI was set to an > illegal value (VEC < 16)" > > Note that tests on Zen2 machine show that this VM exit doesn't happen and > instead AVIC just does nothing. > > Add support for this exit code by doing nothing, instead of filling > the kernel log with errors. > > Also replace an unthrottled 'pr_err()' if another unknown incomplete > IPI exit happens with vcpu_unimpl() > > (e.g in case AMD adds yet another 'Invalid IPI' exit reason) > > Cc: > Signed-off-by: Maxim Levitsky > --- Reviewed-by: Sean Christopherson