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=-8.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS 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 57485C432BE for ; Fri, 27 Aug 2021 06:05:13 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (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 C78206023F for ; Fri, 27 Aug 2021 06:05:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org C78206023F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=irrelevant.dk Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=nongnu.org Received: from localhost ([::1]:53396 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mJUzH-0006jp-HQ for qemu-devel@archiver.kernel.org; Fri, 27 Aug 2021 02:05:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40200) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mJUtm-0004Ny-Uh; Fri, 27 Aug 2021 01:59:30 -0400 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:40467) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mJUtl-000645-Gw; Fri, 27 Aug 2021 01:59:30 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id F1D5332009A9; Fri, 27 Aug 2021 01:59:26 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Fri, 27 Aug 2021 01:59:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=irrelevant.dk; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=tefJ4acTvueJ0u8oTQQHCzB8ysa kv4d2aG4q0iCibgk=; b=jzPTUzObAqitBb2cdhASmPXx/wOf5MVeGk/Z4Sb7CIs cJZIba1usUy4gBBf+5tyPo+R3xX5H5YXntySZPUy3qJD4nUCLZ3m6avY5MSG44DE Vjke7dv46UDhRiPOiYKyJ8fXQdPivPOh+LrsCwc2+isvJtCLFun4EtsJF0aiOKBp B54gU0fkQIL7jLtKe5/B243UBksFjTeAHCuQYxdAXKc6G2xwHuYm380HVSylaTqZ i3EI75uOHqjU8KTYL/CoN053etzaMtgudfYAB4MbYq9ujEJriWgEtYMNrKYlhxmW MR33rDKrv4fnKgefRSwqas16UYOXnPkzUVVEl3TZyzg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=tefJ4a cTvueJ0u8oTQQHCzB8ysakv4d2aG4q0iCibgk=; b=H+6e1L0aksqRpq6OGj8VSu ScDT27JLXwCuVqDIWpclRAFVVKU8RVlWhmhIv6dL63JAgRJqABNkWmPbSUoLruNu 98cbjmLFpgTQIgfE+8LH/MnPL8WahEtrNBTAAbD7HEoy4PSx7txajTgftwi8YF5J oORdqBtalQ67lvCpytOfaLUNTVSjqFvwc3CI1q0d8eKlsFWD5lKYRcN4Y/jO9cm3 TZl09S1nq8dcLGvpeWIH58k3FAFD5djD66jnReNBCEfALdK9fDTOY/CXH5Bp9GE2 S2pntm4EQbZ0kkUDQT0s7ZSVRx+Uj7CJq813Z0JGBbwJTpJtHnPy0IOyCEwxrtPw == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudduvddguddtvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvuffkfhggtggujgesghdtreertddtjeenucfhrhhomhepmfhlrghu shculfgvnhhsvghnuceoihhtshesihhrrhgvlhgvvhgrnhhtrdgukheqnecuggftrfgrth htvghrnhepjeegudffueeiteekieelkedvueelteevjeduieeludfffeejgeffhfduvddu ffeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepih htshesihhrrhgvlhgvvhgrnhhtrdgukh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 27 Aug 2021 01:59:23 -0400 (EDT) Date: Fri, 27 Aug 2021 07:59:21 +0200 From: Klaus Jensen To: Philippe =?utf-8?Q?Mathieu-Daud=C3=A9?= Subject: Re: [PATCH v2 10/11] util/vfio-helpers: Let qemu_vfio_do_mapping() propagate Error Message-ID: References: <20210826195014.2180369-1-philmd@redhat.com> <20210826195014.2180369-11-philmd@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="GhFN0YcjxgEH6k3Q" Content-Disposition: inline In-Reply-To: <20210826195014.2180369-11-philmd@redhat.com> Received-SPF: pass client-ip=64.147.123.24; envelope-from=its@irrelevant.dk; helo=wout1-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kevin Wolf , Fam Zheng , qemu-block@nongnu.org, Klaus Jensen , qemu-devel@nongnu.org, Auger Eric , Hanna Reitz , Stefan Hajnoczi Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" --GhFN0YcjxgEH6k3Q Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Aug 26 21:50, Philippe Mathieu-Daud=C3=A9 wrote: > Pass qemu_vfio_do_mapping() an Error* argument so it can propagate > any error to callers. Replace error_report() which only report > to the monitor by the more generic error_setg_errno(). >=20 > Reviewed-by: Fam Zheng > Reviewed-by: Stefan Hajnoczi > Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Klaus Jensen --GhFN0YcjxgEH6k3Q Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUigzqnXi3OaiR2bATeGvMW1PDekFAmEofzgACgkQTeGvMW1P DekvKggAtipT4IPRp4EmSyiZrcpfLUvqQUkWoZt8mvoLJ2Nm159oN+nfmJQ+gLY8 VKh8sd78PFPfYZVx0K8x2nrD88k2qzrXLzmIJMjRmWsRZb5qzYZdi0HqKar9VqbE IwXtBbjNzY31o+tn6sfSQom5OvkRI8m/MqEI6itgrKTxCH92WdYqrrVt2NXB00lV HdjQLKQRc+n7cpsIKkQLNyYyOcEY4gLUsf/dQz98ev/EGOcCmJzobLX9SKYnd99z wehO3nmjXmwg7reuylUfjG3XcduCs492I279DZGTzPyLCdZnEpm+3IaY2vW1SzrW SyLVLq8dQOdP2THNIRQ7A5Vhbzr4lA== =skkR -----END PGP SIGNATURE----- --GhFN0YcjxgEH6k3Q--