Received: by 2002:a05:6512:e85:0:0:0:0 with SMTP id bi5csp3091669lfb; Tue, 28 Jun 2022 06:18:07 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vQ03vjHSFGwmsVnd/f0lGfehF8MhrhHa6bPDKdxHXb26fuLqhwqxy2lzTqDXMxhCVn+Jph X-Received: by 2002:a17:902:b7cc:b0:16a:3f8:98c3 with SMTP id v12-20020a170902b7cc00b0016a03f898c3mr3705053plz.73.1656422286949; Tue, 28 Jun 2022 06:18:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656422286; cv=none; d=google.com; s=arc-20160816; b=OLM+uL2NLfyyiBt9H0mu8RWOIf8C2jlHg4jzkXcdMlkBj7HfhYbV5EedC/NOJ9HWyc ByIYENOFvgT3riVWRbyjSXrepJHb0HKGocqQrE7hWQNLiIAV5WaujVlrteFlLyhhwAQ3 /iAqeyBstwL/zpsZZIYFcUrz2uAyY3Fv2yDIcpqnlkw7MbapOWmQIz1Fe1Pxdpm698/3 2AXIuhedtcldlMQEMmyspFzg7PtiYxuTkgs89sWGQeldqRFmnTSrTxYFPHfsZ/a9zmy7 fW7ltqO8YXnWR9Sv9MAaHcDwORA4D86a6ZunAk/7QOVpHVfEh6Nmn2xGFmLFo/+2RztP b0QA== 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 :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=/ZOCb43a6XtspipSZyH021F8n9v8AZtTda7ttlCF3gs=; b=TEQ7MsBIE3+Zvg0ALEi6GDzejg+IkJKF1R0Nl8++mAtZ4H9WEcf88gFhQ698HkP9hn niwI4kPzYOmiGV9ucSepeD5WAzqj5I6DzXpYeGzPdSVCvM5pVOceWM9kfuQEFcIa73Mg 8c+uUrXSutq2di10ihfhZ8C5zJCVKbjo7/NIQ4LdkHz36itMaFp3Ft99JWlzIOwlOzjB F3yb62RjEAXM3gHaQ1Ob7pG6AztqFwNscsoMgruvH47wYw6iWGa/s5Bwp21qk4z3z57o Hdfd3a7kut6iRQJ3Ae6hGukzdOGSXO0ZJNfRjbduu+JPG+djXvaTsIA6m/JNKyyJEi60 alDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=SNUMSmmc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 17-20020aa79251000000b0051bb1890459si15817583pfp.28.2022.06.28.06.17.45; Tue, 28 Jun 2022 06:18:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=SNUMSmmc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345597AbiF1NPI (ORCPT + 99 others); Tue, 28 Jun 2022 09:15:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240713AbiF1NPF (ORCPT ); Tue, 28 Jun 2022 09:15:05 -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 ESMTP id 3DAE62C12F for ; Tue, 28 Jun 2022 06:15:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1656422103; 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=/ZOCb43a6XtspipSZyH021F8n9v8AZtTda7ttlCF3gs=; b=SNUMSmmc36xOfaswi4u3sXJLQxCxQIXimiZsbcXd2N+0UnKfXEHSINwSeOoNFZmyQ4Js0J N0NYu2ZqSmUVXirYj3yqEFz0cdE/CGkIPi/f+YDH/pDrJwfnlCOJ922G2fgOnxFAUgJnzy Jyx7CA5jCHkNmKpupc6xeFdZdGLMq/A= 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-550-nlKef17tMHuexN_WhN-YCg-1; Tue, 28 Jun 2022 09:15:02 -0400 X-MC-Unique: nlKef17tMHuexN_WhN-YCg-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 5F9CD811E7A; Tue, 28 Jun 2022 13:15:01 +0000 (UTC) Received: from starship (unknown [10.40.194.38]) by smtp.corp.redhat.com (Postfix) with ESMTP id 45BEB492C3B; Tue, 28 Jun 2022 13:14:59 +0000 (UTC) Message-ID: Subject: Re: [PATCH v6 15/17] KVM: SVM: Use target APIC ID to complete x2AVIC IRQs when possible From: Maxim Levitsky To: "Suthikulpanit, Suravee" , Paolo Bonzini , linux-kernel@vger.kernel.org, kvm@vger.kernel.org Cc: seanjc@google.com, joro@8bytes.org, jon.grimm@amd.com, wei.huang2@amd.com, terry.bowman@amd.com Date: Tue, 28 Jun 2022 16:14:58 +0300 In-Reply-To: References: <20220519102709.24125-1-suravee.suthikulpanit@amd.com> <20220519102709.24125-16-suravee.suthikulpanit@amd.com> <9f3ffe16-2516-d4ec-528e-6347ef884ad5@amd.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 (3.36.5-2.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.85 on 10.11.54.9 X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Tue, 2022-06-28 at 19:36 +0700, Suthikulpanit, Suravee wrote: > Paolo / Maxim > > On 6/28/2022 3:59 PM, Maxim Levitsky wrote: > > > > Hi Paolo and Suravee Suthikulpanit! > > > > > > > > Note that this patch is not needed anymore, I fixed the avic_kick_target_vcpus_fast function, > > > > and added the support for x2apic because it was very easy to do > > > > (I already needed to parse logical id for flat and cluser modes) > > > > > > > > Best regards, > > > > Maxim Levitsky > > > > > > > Understood. I was about to send v7 to remove this patch from the series, but too late. I'll test the current queue branch and provide update. > > Also this really needs a KVM unit test, to avoid breaking corner cases like > > sending IPI to 0xFF address, which was the reason I had to fix the > > avic_kick_target_vcpus_fast. > > > > We do have 'apic' test in kvm unit tests, > > and I was already looking to extend it to cover more cases and to run it with AVIC's > > compatible settings. I hope I will be able to do this this week. > > Thanks. Would you please CC me as well once ready? Of course! > > > Best regards, > > Maxim Levitsky > > I have also submitted a patch to fix the 603ccef42ce9 ("KVM: x86: SVM: fix avic_kick_target_vcpus_fast"), > which was queued previously. Thank you very much! Best regards, Maxim Levitsky > > Best Regards, > Suravee Suthikulpanit >