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=-6.9 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no 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 8BA42C4727C for ; Tue, 29 Sep 2020 13:00: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 F08B7207F7 for ; Tue, 29 Sep 2020 13:00:58 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="W0cPGVC2" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F08B7207F7 Authentication-Results: mail.kernel.org; dmarc=fail (p=none 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.197.444 (Exim 4.92) (envelope-from ) id 1kNFFD-00038L-Ae; Tue, 29 Sep 2020 13:00:35 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 197.444; Tue, 29 Sep 2020 13:00:35 +0000 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" Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kNFFD-00038E-7f; Tue, 29 Sep 2020 13:00:35 +0000 Received: by outflank-mailman (input) for mailman id 197; Tue, 29 Sep 2020 13:00:33 +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 1kNFFB-000389-JW for xen-devel@lists.xenproject.org; Tue, 29 Sep 2020 13:00:33 +0000 Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id d2a0c827-8ce6-4307-8ce1-ff1fde211db5; Tue, 29 Sep 2020 13:00:32 +0000 (UTC) Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 4C6F0AD82; Tue, 29 Sep 2020 13:00:31 +0000 (UTC) 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 1kNFFB-000389-JW for xen-devel@lists.xenproject.org; Tue, 29 Sep 2020 13:00:33 +0000 X-Inumbo-ID: d2a0c827-8ce6-4307-8ce1-ff1fde211db5 Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id d2a0c827-8ce6-4307-8ce1-ff1fde211db5; Tue, 29 Sep 2020 13:00:32 +0000 (UTC) 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=1601384431; 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: in-reply-to:in-reply-to:references:references; bh=NOUI2T2QEG2cZsWT9QTXecUHLmXjR+Kc4LmF65lV0Yc=; b=W0cPGVC268PGs6Ng0c4AwjYNBvJkA/REZLJM1owwX/7bjaS6fsl4t/pkej4DWk/AT66eEt Hbcc8HxOyEOTG2xWxCLX5LvUAKMdp/I6l7CqvTqAol3/CdzROHFTIn9CYQ74sOkPCvzI55 ZZZ1UeJgUIeEH5hLE4+xy/LZHofyL+k= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 4C6F0AD82; Tue, 29 Sep 2020 13:00:31 +0000 (UTC) Message-ID: <46a1e5429b11a4a16d49118c3ec20617fb63c374.camel@suse.com> Subject: Re: [PATCH 05/12] evtchn/sched: reject poll requests for unusable ports From: Dario Faggioli To: Jan Beulich , "xen-devel@lists.xenproject.org" Cc: Andrew Cooper , George Dunlap , Ian Jackson , Julien Grall , Wei Liu , Stefano Stabellini Date: Tue, 29 Sep 2020 15:00:29 +0200 In-Reply-To: <802a0866-6bcf-cb52-1c3f-edb628fbc9c7@suse.com> References: <0d5ffc89-4b04-3e06-e950-f0cb171c7419@suse.com> <802a0866-6bcf-cb52-1c3f-edb628fbc9c7@suse.com> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-+vyZnvdKLr6qs8rwi4C2" User-Agent: Evolution 3.38.0 (by Flathub.org) MIME-Version: 1.0 --=-+vyZnvdKLr6qs8rwi4C2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, 2020-09-28 at 12:58 +0200, Jan Beulich wrote: > Before and after XSA-342 there has been an asymmetry in how not > really > usable ports get treated in do_poll(): Ones beyond a certain boundary > (max_evtchns originally, valid_evtchns subsequently) did get refused > with -EINVAL, while lower ones were accepted despite there > potentially > being no way to wake the vCPU again from its polling state. Arrange > to > also honor evtchn_usable() output in the decision. >=20 > Requested-by: Andrew Cooper > Signed-off-by: Jan Beulich > Reviewed-by: Dario Faggioli I agree with Julien that a comment about how evtchn_port_poll() would improve things even further. Regards --=20 Dario Faggioli, Ph.D http://about.me/dario.faggioli Virtualization Software Engineer SUSE Labs, SUSE https://www.suse.com/ ------------------------------------------------------------------- <> (Raistlin Majere) --=-+vyZnvdKLr6qs8rwi4C2 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEES5ssOj3Vhr0WPnOLFkJ4iaW4c+4FAl9zL+0ACgkQFkJ4iaW4 c+7dMBAA3MDXfrRjIWmJfyglc25MPU+nc1DK8pr79F5lqOihbuJK/nx8S+aBG82g XOmW78ZQfCMzqONElJlZ4v1UHTYJjDxrSBlRA07On4iKR0sFzjCbTxxA+ZueVHQF tcIEZQcAftopQbhd02ReM/OZPexJZDrrjqL/nZ2HXKHBXWqg0B7SfrtUkzrfN2tg 5JboSxdJBcxSwFOA5eIaZ2UAfiY1uSPrAAUvTNMS6amTqWbx/zgMWFW7VfQpINzz xLZdG2l0gJWyH8Mjkcq7x9LSm7vL7Obr3CPVKXQw6PybtRPp14CZ+yY+K0O4iz9D vttbuyRucxJDcmEwmTopLTxomWlXxUVIJVt8Y8u6jSJ/Cqt5znV+8TuwLePnwNvW 7phJGd9Rlfs/T5tSyD+eLEMzV9AQwpttSpGBAifPoFEbg2vIKQW1LpWgncS96jvy ajCndoswtjqikNQIeNApqgK1g8z/h2LVOtcoRKzUH6IuvJ6WLdmjAbVkaWkn/LF8 Y0+eSaRFcE2xTAJvDbdDHnOb6tZ0CxlU7g6WlaK27bk3ILQCLIOvQONwq/6Bt5an VsvIRbr6rw4AIaYiukCr/XJ0ydrAaFVJK6eJtBXLKiXI+qbmvMoUHPATzgTDKxCE r6/o4QrH6XnZBTBY9SK+8f7FwugOPNnpUsuSY/CCo+TbT5Q3rQQ= =1Hmg -----END PGP SIGNATURE----- --=-+vyZnvdKLr6qs8rwi4C2--