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=-12.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,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 46C84C433DB for ; Wed, 10 Mar 2021 09:09:31 +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 D48BE64F2D for ; Wed, 10 Mar 2021 09:09:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D48BE64F2D Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=citrix.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.95921.181122 (Exim 4.92) (envelope-from ) id 1lJuq7-0001pg-44; Wed, 10 Mar 2021 09:09:11 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 95921.181122; Wed, 10 Mar 2021 09:09:11 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1lJuq7-0001pZ-0q; Wed, 10 Mar 2021 09:09:11 +0000 Received: by outflank-mailman (input) for mailman id 95921; Wed, 10 Mar 2021 09:09:08 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1lJuq4-0001pU-RV for xen-devel@lists.xenproject.org; Wed, 10 Mar 2021 09:09:08 +0000 Received: from esa3.hc3370-68.iphmx.com (unknown [216.71.145.155]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 5a4fab66-27ae-4504-9f4f-fb36d0266568; Wed, 10 Mar 2021 09:09:08 +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: 5a4fab66-27ae-4504-9f4f-fb36d0266568 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1615367347; h=subject:from:to:cc:references:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=4VmRMA+z46nfmAF79aPtxD7G3DEltQtHlbCtG5CBYG4=; b=DSNSKvuHi4szfT/QUYdsiFs1Nsx6SBK2uN4tmgDCRiYNb4oIl3FH+JCE 4WdwxUsthHP4JuKnp9CZXu3+xmkcb0ZxowUPWT3eBOc6O/myBl6B4myBb d8whet+j3qX4o+D7dkktlmmUasyZZI3lY0xl9jDQgBnXX4dWTiFSdaoxD 0=; Authentication-Results: esa3.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none IronPort-SDR: +BTeAh8Uamfyx7JXECtHe4MHBr+LasAM5IXnbCFVbC7EHr7AXjhpZ2DwltkQWS/F20JUriuzsK yA5Ums4mSHCc8c4kJo1ffSBruToMR/0xTG6++UDBIcucvS/OvayHRSpbeMhDloJihYTntaNyfa jqEn4uvZWBAZ+riECrRqYQ3GbIVyT8sXD7xh9a04GX7/ut8T9qZklS1VhoeCKg5MZXjDg8V1Yx 2w+5DjAbQJ9y7wGBDeYwVdahccCzVTRTFQyNi3lPb7BZqcVSOErEkrrdzjhPrJtpRcNvfkEfvQ zxE= X-SBRS: 4.0 X-MesageID: 38931597 X-Ironport-Server: esa3.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.81,237,1610427600"; d="scan'208";a="38931597" Subject: Re: [PATCH v4 2/3] xen/events: don't unmask an event channel when an eoi is pending From: Ross Lagerwall To: =?UTF-8?B?SsO8cmdlbiBHcm/Dnw==?= , Boris Ostrovsky , , CC: Stefano Stabellini , , Julien Grall , Julien Grall References: <20210306161833.4552-1-jgross@suse.com> <20210306161833.4552-3-jgross@suse.com> Message-ID: <3880be9d-1176-8beb-b192-20078cd39038@citrix.com> Date: Wed, 10 Mar 2021 09:08:34 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit On 2021-03-09 08:57, Ross Lagerwall wrote: > On 2021-03-09 05:14, Jürgen Groß wrote: >> On 08.03.21 21:33, Boris Ostrovsky wrote: >>> >>> On 3/6/21 11:18 AM, Juergen Gross wrote: >>>> An event channel should be kept masked when an eoi is pending for it. >>>> When being migrated to another cpu it might be unmasked, though. >>>> >>>> In order to avoid this keep three different flags for each event channel >>>> to be able to distinguish "normal" masking/unmasking from eoi related >>>> masking/unmasking and temporary masking. The event channel should only >>>> be able to generate an interrupt if all flags are cleared. >>>> >>>> Cc: stable@vger.kernel.org >>>> Fixes: 54c9de89895e0a36047 ("xen/events: add a new late EOI evtchn framework") >>>> Reported-by: Julien Grall >>>> Signed-off-by: Juergen Gross >>>> Reviewed-by: Julien Grall >>>> --- >>>> V2: >>>> - introduce a lock around masking/unmasking >>>> - merge patch 3 into this one (Jan Beulich) >>>> V4: >>>> - don't set eoi masking flag in lateeoi_mask_ack_dynirq() >>> >>> >>> Reviewed-by: Boris Ostrovsky >>> >>> >>> Ross, are you planning to test this? >> >> Just as another data point: With the previous version of the patches >> a reboot loop of a guest needed max 33 reboots to loose network in >> my tests (those were IIRC 6 test runs). With this patch version I >> stopped the test after about 1300 reboots without having seen any >> problems. >> > > Thanks, I'll test it today and get back to you. > Tested-by: Ross Lagerwall The updated patch seems fine in testing. Thanks Ross