Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2086193ybk; Mon, 11 May 2020 11:34:08 -0700 (PDT) X-Google-Smtp-Source: APiQypKW1llZjE5C1PBnvT3hYoQzmMKHaB+GwQbDDrDV2P2ociEC6Lxdi1Wf0Pq5iuufMxnjMMYE X-Received: by 2002:a50:a365:: with SMTP id 92mr15184056edn.220.1589222048139; Mon, 11 May 2020 11:34:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589222048; cv=none; d=google.com; s=arc-20160816; b=vhau5GqEZwVACZTeZBImrzvsIOEZ/AGalSbZ5Y1kvlSATXXG7t5tLB4u70tAHpudzB RoZehfR0eYWEyU9IwpP8extusTLsSzEFWG/8QIav2VeJs+DMe8sob+F+J6rKNdnkHYJe 19ddU6SBE67+czfoYLGxTnI6EDZrxFZ11s/drWoVk2waOnv74SvWayog5wNAoYPdl6QF ezcruj3+0htyki3R/bEEvMWbYeNZyTDRMxWC0kY89YxUBJZT6cSooAmQ3nlFSQlHBW+O UjjPY+Sl8l0BrYZ7Lg5Ab7r30aGbhAnSJMXEdfuis1gVhyxel3BRM7esdF1dRlDuEu/B m/sA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:cc:to:subject :dkim-signature; bh=0Ey/kzTRW0zR9w4JP8XW1qIbWybWgGoabtUmZPgIkpo=; b=KrLYnK4u3nZ19j5/TU9aFN8dRejBu85Aaa0JbdH4Q8lNqA7yKUqtLEF4yEdIBCdLx1 WhrG0whHhpsl8YfxJnwpAT4nFY4mIEQzEACU0orhGkI3D+oyz4NSmB255ofvvQp5vnrG YneHafkvqFQyhuFxH7v9WYmicybK9Tk9PGOsVRuB8/YpfgmUsfRDRY8AvTEN1ooGODnh /t5oHHtB+x38VLE86beQ+ftRRf7cxkBNKgDRHHCmr8+lyzwkdSACFVxNXQRQg4Sp7pg1 yddlB/2z3BUAkuzOPTRLZOpiE2gPID/fHIirDZ9GZ4QhkIkfRHVOYklsYOzjk9EJT0P1 Ya7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=zYc4mFUV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u14si4097976ejx.342.2020.05.11.11.33.45; Mon, 11 May 2020 11:34:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=zYc4mFUV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731176AbgEKScU (ORCPT + 99 others); Mon, 11 May 2020 14:32:20 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:53852 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729825AbgEKScT (ORCPT ); Mon, 11 May 2020 14:32:19 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 04BISS5A024294; Mon, 11 May 2020 18:32:08 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type; s=corp-2020-01-29; bh=0Ey/kzTRW0zR9w4JP8XW1qIbWybWgGoabtUmZPgIkpo=; b=zYc4mFUVMSlX3AVF0YDffObZ2Kkywl4qWE/KVYywaao9U7a+qhA/Zb9hgjQcRpuXRieY 2PJ3ioU3PpCT3nZk8M50yLPG9S5F8xi/PWGaoABCZOIePiAJWLFpeZqdAOjqj9lNFR00 BWtow/7DZsM5tv7VYZFma4co2T9hp6j+5WrOrF6fpAWlD2lWOcC5GimNdw8ZxilDrLgV Auy+tEBJPFdBLGnWpNFoBf6zVJL9VZUYO59tRVYoQGidFWgG/px8G8nErzTZ+U0FpjKZ 7JplPk5CSj0JsY3bE32wcnmbyKYuPp528Ay06e10UvwsKE3VRfYAsg4GMmNvjEN3R7RL 7A== Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by userp2130.oracle.com with ESMTP id 30x3gmetps-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 11 May 2020 18:32:08 +0000 Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 04BIS8KM068892; Mon, 11 May 2020 18:32:07 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userp3030.oracle.com with ESMTP id 30x6ewhy8w-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 11 May 2020 18:32:07 +0000 Received: from abhmp0003.oracle.com (abhmp0003.oracle.com [141.146.116.9]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 04BIW6NB006674; Mon, 11 May 2020 18:32:06 GMT Received: from [10.39.250.101] (/10.39.250.101) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 11 May 2020 11:32:06 -0700 Subject: Re: [PATCH 2/2] xen/xenbus: let xenbus_map_ring_valloc() return errno values only To: Juergen Gross , xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org Cc: Stefano Stabellini References: <20200511073151.19043-1-jgross@suse.com> <20200511073151.19043-3-jgross@suse.com> From: Boris Ostrovsky X-Pep-Version: 2.0 Message-ID: <692e23f8-1eb7-4fb2-7375-e85cb27dfab0@oracle.com> Date: Mon, 11 May 2020 14:32:05 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20200511073151.19043-3-jgross@suse.com> Content-Type: multipart/mixed; boundary="------------AE3EE8FF91A004904F775E68" Content-Language: en-US X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9618 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 spamscore=0 phishscore=0 mlxlogscore=999 mlxscore=0 malwarescore=0 bulkscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2005110141 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9618 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 mlxlogscore=999 clxscore=1015 spamscore=0 lowpriorityscore=0 phishscore=0 bulkscore=0 malwarescore=0 priorityscore=1501 mlxscore=0 suspectscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2005110141 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a multi-part message in MIME format. --------------AE3EE8FF91A004904F775E68 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 5/11/20 3:31 AM, Juergen Gross wrote: > Today xenbus_map_ring_valloc() can return either a negative errno > value (-ENOMEM or -EINVAL) or a grant status value. This is a mess as > e.g -ENOMEM and GNTST_eagain have the same numeric value. > > Fix that by turning all grant mapping errors into -ENOENT. This is > no problem as all callers of xenbus_map_ring_valloc() only use the > return value to print an error message, and in case of mapping errors > the grant status value has already been printed by __xenbus_map_ring() > before. > > Signed-off-by: Juergen Gross Reviewed-by: Boris Ostrovsky --------------AE3EE8FF91A004904F775E68 Content-Type: application/pgp-keys; name="pEpkey.asc" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="pEpkey.asc" -----BEGIN PGP PUBLIC KEY BLOCK----- mQINBFH8CgsBEAC0KiOi9siOvlXatK2xX99e/J3OvApoYWjieVQ9232Eb7GzCWrI tCzP8FUVPQg8rMsSd0OzIvvjbEAvaWLlbs8wa3MtVLysHY/DfqRK9Zvr/RgrsYC6 ukOB7igy2PGqZd+MMDnSmVzik0sPvB6xPV7QyFsykEgpnHbvdZAUy/vyys8xgT0P VYR5hyvhyf6VIfGuvqIsvJw5C8+P71CHI+U/IhsKrLrsiYHpAhQkw+Zvyeml6XSi 5w4LXDbF+3oholKYCkPwxmGdK8MUIdkMd7iYdKqiP4W6FKQou/lC3jvOceGupEoD V9botSWEIIlKdtm6C4GfL45RD8V4B9iy24JHPlomwoVWc0xBZboQguhauQqrBFoo HO3roEeM1pxXjLUbDtH4t3SAI3gt4dpSyT3EvzhyNQVVIxj2FXnIChrYxR6S0ijS qUKO0cAduenhBrpYbz9qFcB/GyxD+ZWY7OgQKHUZMWapx5bHGQ8bUZz2SfjZwK+G ETGhfkvNMf6zXbZkDq4kKB/ywaKvVPodS1Poa44+B9sxbUp1jMfFtlOJ3AYB0WDS Op3d7F2ry20CIf1Ifh0nIxkQPkTX7aX5rI92oZeu5u038dHUu/dO2EcuCjl1eDMG m5PLHDSP0QUw5xzk1Y8MG1JQ56PtqReO33inBXG63yTIikJmUXFTw6lLJwARAQAB tDNCb3JpcyBPc3Ryb3Zza3kgKFdvcmspIDxib3Jpcy5vc3Ryb3Zza3lAb3JhY2xl LmNvbT6JAjgEEwECACIFAlH8CgsCGwMGCwkIBwMCBhUIAgkKCwQWAgMBAh4BAheA AAoJEIredpCGysGyasEP/j5xApopUf4g9Fl3UxZuBx+oduuw3JHqgbGZ2siA3EA4 bKwtKq8eT7ekpApn4c0HA8TWTDtgZtLSV5IdH+9zJimBDrhLkDI3Zsx2CafL4pMJ vpUavhc5mE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