Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.5 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CF591C433E6 for ; Fri, 22 Jan 2021 11:37:59 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8AAFC23106 for ; Fri, 22 Jan 2021 11:37:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8AAFC23106 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=suse.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.72701.130953 (Exim 4.92) (envelope-from ) id 1l2ulB-0000t8-FR; Fri, 22 Jan 2021 11:37:49 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 72701.130953; Fri, 22 Jan 2021 11:37:49 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1l2ulB-0000t0-Bh; Fri, 22 Jan 2021 11:37:49 +0000 Received: by outflank-mailman (input) for mailman id 72701; Fri, 22 Jan 2021 11:37:48 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1l2ulA-0000sn-FX for xen-devel@lists.xenproject.org; Fri, 22 Jan 2021 11:37:48 +0000 Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 02527e93-90c2-4c2b-98c3-ad5fcc467b1f; Fri, 22 Jan 2021 11:37:47 +0000 (UTC) Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id B7028AC4F; Fri, 22 Jan 2021 11:37:46 +0000 (UTC) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 02527e93-90c2-4c2b-98c3-ad5fcc467b1f X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1611315466; h=from:from:reply-to: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=5fEMuR81WAbwUUpUnl9gfrKTh7f01kWJIh3wylQXtVs=; b=HlSHa2cFBxku4ZZWMLqNUdZQK29AwQU3mZv+zSdeq4pACS8JJ+RneJUsEfZmeRtwc9Sur8 TrNdDapBThsLPpKuwAwo/7RgPPvALZ3l8M3TVdHYjGcSsEy3oX9VpfDKvrKooC0+VSOmCm kShvNCGkl/H9EtVah/1ovm60MnxTpH0= Subject: Re: [PATCH v2 4/4] x86/dpci: remove the dpci EOI timer To: Roger Pau Monne , Ian Jackson Cc: Kevin Tian , Paul Durrant , Andrew Cooper , Wei Liu , xen-devel@lists.xenproject.org References: <20210115142820.35224-1-roger.pau@citrix.com> <20210115142820.35224-5-roger.pau@citrix.com> From: Jan Beulich Message-ID: Date: Fri, 22 Jan 2021 12:37:47 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: <20210115142820.35224-5-roger.pau@citrix.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit On 15.01.2021 15:28, Roger Pau Monne wrote: > Current interrupt pass though code will setup a timer for each > interrupt injected to the guest that requires an EOI from the guest. > Such timer would perform two actions if the guest doesn't EOI the > interrupt before a given period of time. The first one is deasserting > the virtual line, the second is perform an EOI of the physical > interrupt source if it requires such. > > The deasserting of the guest virtual line is wrong, since it messes > with the interrupt status of the guest. This seems to have been done > in order to compensate for missing deasserts when certain interrupt > controller actions are performed. The original motivation of the > introduction of the timer was to fix issues when a GSI was shared > between different guests. We believe that other changes in the > interrupt handling code (ie: proper propagation of EOI related actions > to dpci) will have fixed such errors now. > > Performing an EOI of the physical interrupt source is redundant, since > there's already a timer that takes care of this for all interrupts, > not just the HVM dpci ones, see irq_guest_action_t struct eoi_timer > field. > > Since both of the actions performed by the dpci timer are not > required, remove it altogether. > > Signed-off-by: Roger Pau Monné Reviewed-by: Jan Beulich with ... > Changes since v1: > - Add parentheses. ... this, as you've already clarified, indeed having happened. I understand this change is independent of the earlier ones in this series. The minor adjustment could be taken care of while committing, and I'm inclined to not wait ... > xen/drivers/passthrough/vtd/x86/hvm.c | 3 - ... for Kevin's ack on this obvious part of the change, considering his prior input on the discussion we've had (where he did signal agreement with the removal). However, despite this series having been posted before the deadline, it feels to me like a change that doesn't come without risk (and hence would have been better to have earlier in the release cycle). Hence, Ian, I'd like to gather your release manager opinion on taking this now vs postponing for 4.16 (and then still being a likely backporting candidate). My vote is "pro", in case it matters. Jan