Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3459125rdh; Thu, 28 Sep 2023 12:14:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFvjmc5Len3Y2HhU8fVRPZrD1mCVz+R5Dya+Oq4FBbDCYRzYoeeeUkg4DL+rbKM1OATzce3 X-Received: by 2002:a17:902:db08:b0:1c3:76c4:7242 with SMTP id m8-20020a170902db0800b001c376c47242mr3416295plx.22.1695928490223; Thu, 28 Sep 2023 12:14:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695928490; cv=none; d=google.com; s=arc-20160816; b=OqYzpj/GsZPSfrhBWckIV5ki+i3cwI8zwVkGhDSpN7+NWVooCr0/shnUJ0tpHI5H3Z X3RYblAloAHOIhVHsnX1JFJRMIIaODPo4T9W07iSbZUrqmha0XQzVbWOcbs5y2Xt4vEd 3OkqgHemwXYvf3gJQ2RphQ2AjLlnfoKt/QXo3btxtcIObCGWcZbxKUIx6TA62MYoJhdm 1EhAEgWVfpQjXav2kQFFIWn9GROlVwhPx6UsKKTu7i+X2FjxaZcKhUgOrMBwiQPKM0H+ M2p0NFHEkcwDUWLCN3NJ84wuyFWkaycJIaur4Gq+P8OvaJA+3vmcypjOC77YbW/WmEx9 9Hyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=X1WRNiJYKhsjhu9PboPlV47UeY0+Yci+Xnu7y1tiVFc=; fh=oNJvlPmIFpwfIkAABcMx9rUySvQYt47L4yNhdOcwda8=; b=fXg/D4dHGzY0E84pRXpEO0l/I7VFWbExM6pwVYulmKHpSXE5YbrvaByKkq/hmdOF8y +DXjzsgXEueOrk+3pTkHVaqRnT6uNCrWsD+SXNfzgi9DJe1+EhXpcUglPfUWzCgsKchM S+qZnHgRprSYZ9RUQB6KYg6KFCVTBN9LYXlaXh2ns0KRj4/xBo58GMY/atV4mgEWVxck /JS2QwH7aj/513+MeJDS+dIcbMoPgM7RNj90nAi0euml9CA0wsj3ISRMBFFMWRRSignC YAmKAby0pr1bTxTwpsngY6wvzWrm/tctLJIV8RKKK8a/4t1qsUXAjMGg4JvRnW0p+RtA 10pQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=jFDwChXL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id n4-20020a170903110400b001c4621ac000si20625043plh.246.2023.09.28.12.14.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 12:14:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=jFDwChXL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id B994080CB16A; Thu, 28 Sep 2023 10:36:19 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232123AbjI1Rf5 (ORCPT + 99 others); Thu, 28 Sep 2023 13:35:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232106AbjI1Rfw (ORCPT ); Thu, 28 Sep 2023 13:35:52 -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 6D5311A3 for ; Thu, 28 Sep 2023 10:35:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1695922503; 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; bh=X1WRNiJYKhsjhu9PboPlV47UeY0+Yci+Xnu7y1tiVFc=; b=jFDwChXLIB/q5aL9rRCiyNqvUshE2+aC7zXI0OCgppmRIIKKRAwLWpOOaqd65wG8FGgMyA PYNfYXhq6D84SSmU3HPWAJKxJH0bNteP+LcQOthUonJSxKAA4F+STvAJGgz9tVdLOljo1m KDJVUagcuPyd8LPQ7dSJlwvVdH9WU/w= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-2-PukTvQVcMWqAKQ7ZZyw2rA-1; Thu, 28 Sep 2023 13:33:59 -0400 X-MC-Unique: PukTvQVcMWqAKQ7ZZyw2rA-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 1D56B85A5BF; Thu, 28 Sep 2023 17:33:59 +0000 (UTC) Received: from localhost.localdomain (unknown [10.45.226.141]) by smtp.corp.redhat.com (Postfix) with ESMTP id 69CFE14171B6; Thu, 28 Sep 2023 17:33:55 +0000 (UTC) From: Maxim Levitsky To: kvm@vger.kernel.org Cc: iommu@lists.linux.dev, "H. Peter Anvin" , Sean Christopherson , Maxim Levitsky , 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 Subject: [PATCH v2 0/4] AVIC bugfixes and workarounds Date: Thu, 28 Sep 2023 20:33:50 +0300 Message-Id: <20230928173354.217464-1-mlevitsk@redhat.com> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Thu, 28 Sep 2023 10:36:19 -0700 (PDT) This patch series includes several fixes to AVIC I found while working=0D on a new version of nested AVIC code.=0D =0D Also while developing it I realized that a very simple workaround for=0D AVIC's errata #1235 exists and included it in this patch series as well.=0D =0D changes since v2:=0D =0D - added 'fixes' tags=0D - reworked workaround for avic errata #1235=0D - dropped iommu patch as it is no longer needed.=0D =0D Best regards,=0D Maxim Levitsky=0D =0D Maxim Levitsky (4):=0D x86: KVM: SVM: always update the x2avic msr interception=0D x86: KVM: SVM: add support for Invalid IPI Vector interception=0D x86: KVM: SVM: refresh AVIC inhibition in svm_leave_nested()=0D x86: KVM: SVM: workaround for AVIC's errata #1235=0D =0D arch/x86/include/asm/svm.h | 1 +=0D arch/x86/kvm/svm/avic.c | 68 +++++++++++++++++++++++++++-----------=0D arch/x86/kvm/svm/nested.c | 3 ++=0D arch/x86/kvm/svm/svm.c | 3 +-=0D arch/x86/kvm/svm/svm.h | 1 +=0D 5 files changed, 55 insertions(+), 21 deletions(-)=0D =0D -- =0D 2.26.3=0D =0D