From patchwork Mon Aug 13 17:33:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 144039 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp3348523ljj; Mon, 13 Aug 2018 10:35:58 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwLUw2fixIf4MH/SYvY+WBI/DfIYfIwLWTtnIwylzmeHp+bAVPkmURMOgE+eeOYc/g7Zv18 X-Received: by 2002:a24:6241:: with SMTP id d62-v6mr6357041itc.118.1534181758660; Mon, 13 Aug 2018 10:35:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534181758; cv=none; d=google.com; s=arc-20160816; b=hNRXbiryogPW3+GRCV0a8YulO0eH8uvUaERvEYMw4stqFydMIo5SM7g9kZq4OwOe7a Or/XjTHlu0QLI3V0YMDblXVUiMMnurXC+36/KVtp/5Y4pNlTC62vr7OhQSfEbgdM0Diw +1vURID0N1zsCUDCPj91nrMF08gscfiMVvNxERRnoMoXZdIkYi9kwOgweOPBS5ql2ZJC jHRolAZ8gKHXXAMFuug5Rh1rokvE5KU+2HbO9qLc1bbwPyTgQMxTiiSAMYw7Kjp+Ovaf ZHnmlyv8JKHR8lp6nIZN8KzMcWtmS648A8q3r3rGAM93z5pw3LoXr29e80oa1bwatndS BaQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-unsubscribe:list-id :precedence:subject:message-id:date:to:from :arc-authentication-results; bh=5r9Hyq78z5oi2FhboTETCqYm8QqG33SOyMakAxiGtFE=; b=bQK+v1Y4ZEwafLWfCDPTgf1/HTeZrvgAKwe6NRm5Q7vAbJi9AuWRCMhoziWFVJkkQ5 e2kdtgTvk1rfFfDsQshtSpZBP4l+Iej++juOItnwONmh4KyGusLH/8dDBtXWQuZ1CZf7 /PM4pl2yOG02QA7vjfEIxLuVK6ur+83C04lfGByJ80mMLXgvdYaFyE6rMU48diYg2Cm0 dw5hgN0v2KWySld0pNARv2VnaPIh5YrwYPm5GK5GgXtIX3gUkbbKjRng/aKWQbwQfKrC dIKX4i3f9L/fyc1ySi9XF79paA3Yi2iRZbHiRS8UqhP1ysni+hfJP7FUO8qDX+8pMNgj LFug== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id e126-v6si6880001itc.122.2018.08.13.10.35.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 13 Aug 2018 10:35:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1fpGim-0005Op-7J; Mon, 13 Aug 2018 17:33:36 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1fpGik-0005Ok-Kt for xen-devel@lists.xenproject.org; Mon, 13 Aug 2018 17:33:34 +0000 X-Inumbo-ID: 12edc168-9f1f-11e8-a6a9-d7ebe60f679a Received: from foss.arm.com (unknown [217.140.101.70]) by us1-amaz-eas1.inumbo.com (Halon) with ESMTP id 12edc168-9f1f-11e8-a6a9-d7ebe60f679a; Mon, 13 Aug 2018 17:34:04 +0000 (UTC) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 47C037A9; Mon, 13 Aug 2018 10:33:32 -0700 (PDT) Received: from e108454-lin.cambridge.arm.com (e108454-lin.emea.arm.com [10.4.12.35]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 38F893F73C; Mon, 13 Aug 2018 10:33:31 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Mon, 13 Aug 2018 18:33:25 +0100 Message-Id: <20180813173325.14697-1-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 Subject: [Xen-devel] [PATCH] libs/foreignmemory: Avoid printing an error for ENOTSUPP X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: wei.liu2@citrix.com, Julien Grall , paul.durrant@citrix.com, ian.jackson@eu.citrix.com MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Resource mapping is not supported on Arm and results to an error message at every guest boot: xenforeignmemory: error: ioctl failed: Operation not supported Hide the error message when errnor is ENOTSUPP. Signed-off-by: Julien Grall Reviewed-by: Paul Durrant Acked-by: Wei Liu --- tools/libs/foreignmemory/linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libs/foreignmemory/linux.c b/tools/libs/foreignmemory/linux.c index a6b41b0b7f..3686cf41e0 100644 --- a/tools/libs/foreignmemory/linux.c +++ b/tools/libs/foreignmemory/linux.c @@ -307,7 +307,7 @@ int osdep_xenforeignmemory_map_resource( { int saved_errno; - if ( errno != ENOTTY ) + if ( errno != ENOTTY && errno != EOPNOTSUPP ) PERROR("ioctl failed"); else errno = EOPNOTSUPP;