From nobody Fri Dec 19 18:41:50 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=kernel.org ARC-Seal: i=1; a=rsa-sha256; t=1686873284; cv=none; d=zohomail.com; s=zohoarc; b=Z9MifNcptvF9yc7l5TrUxjLcf2W32rr8qxtjasdmXAmDk+In7ctOvcZezUgiLavAaROfXimVX07PiVY90k6hPAIFibAS78GBsERKPs9/K4Gcf9vISmcKGVTJWkTGxFHfWIohbm58ReyWxyX3+fbBYJtYqjOkxhGCkwIWCIIek5Q= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1686873284; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=7F5KlG8UlwiPET8h/yRinc7aS67IvTLutrnSCbz3T/Y=; b=Rw6Ag0G20M0oV9NP/7skQTAlyV7to8t9fSX3v5uZMS7Fujl+HkG9Q1HtbmkssTGQcMwDBfjPFvseoPm4wvA5EPM9c1pcfrYnzggzIq/tCBZZHufkxKvLxv5MUHDdn/aIGrgJFgxPcIiu0sE8Avc9LsaT29ZYOsaGgivd3S1RQyU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1686873284138758.4498509760725; Thu, 15 Jun 2023 16:54:44 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q9wm8-0002U1-8a; Thu, 15 Jun 2023 19:53:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q9wm4-0002T7-J6 for qemu-devel@nongnu.org; Thu, 15 Jun 2023 19:53:08 -0400 Received: from dfw.source.kernel.org ([139.178.84.217]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q9wm3-0003qN-2R for qemu-devel@nongnu.org; Thu, 15 Jun 2023 19:53:08 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 93E08628A1; Thu, 15 Jun 2023 23:53:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A4721C433C9; Thu, 15 Jun 2023 23:53:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686873185; bh=Qkhi0HmOXFV2iHT0Eu1wE5dAe3UoFdWhAkJ8b51q7gY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lf94IrZsGSVrQxYqsmLSM2gW2zcBJkz/ifpOEsReUhw7Ee+4DhU+C/RTevS4E9znV 05zupudW/ve/0cVsNgop7IYPD9s/3xXvGgGHnRNKNkJ5MhEhOdiHkGAoQDbkGtSlvs EDf3oP+ZMf4Z+nR0XkYgrLD+uT7Xz/SM6P5X6GNoQz3LVZKjYvcx0QMZYs10CrsqtK 61M/BdsV2a45y7+oBJCODAWhVT51q35tYQKiuNpyVCC7AVYYJpsew2ffpXt2b8t3LN 0wjuOJhWMBPdkrzRkYjDPtkdWflptUYrdjuG864QBrbDM/d50X0ADkGKVZhFLaX/oI /s6ku6ji1Rghg== From: Stefano Stabellini To: peter.maydell@linaro.org, richard.henderson@linaro.org Cc: sstabellini@kernel.org, qemu-devel@nongnu.org, vikram.garhwal@amd.com, Stefano Stabellini , Paul Durrant Subject: [PULL v5 05/11] include/hw/xen/xen_common: return error from xen_create_ioreq_server Date: Thu, 15 Jun 2023 16:52:48 -0700 Message-Id: <20230615235254.1366267-5-sstabellini@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=139.178.84.217; envelope-from=sstabellini@kernel.org; helo=dfw.source.kernel.org X-Spam_score_int: -70 X-Spam_score: -7.1 X-Spam_bar: ------- X-Spam_report: (-7.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_HI=-5, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @kernel.org) X-ZM-MESSAGEID: 1686873285298100003 Content-Type: text/plain; charset="utf-8" From: Stefano Stabellini This is done to prepare for enabling xenpv support for ARM architecture. On ARM it is possible to have a functioning xenpv machine with only the PV backends and no IOREQ server. If the IOREQ server creation fails, continue to the PV backends initialization. Signed-off-by: Stefano Stabellini Signed-off-by: Vikram Garhwal Reviewed-by: Stefano Stabellini Reviewed-by: Paul Durrant --- include/hw/xen/xen_native.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/include/hw/xen/xen_native.h b/include/hw/xen/xen_native.h index f11eb423e3..4dce905fde 100644 --- a/include/hw/xen/xen_native.h +++ b/include/hw/xen/xen_native.h @@ -463,8 +463,8 @@ static inline void xen_unmap_pcidev(domid_t dom, PCI_FUNC(pci_dev->devfn)= ); } =20 -static inline void xen_create_ioreq_server(domid_t dom, - ioservid_t *ioservid) +static inline int xen_create_ioreq_server(domid_t dom, + ioservid_t *ioservid) { int rc =3D xendevicemodel_create_ioreq_server(xen_dmod, dom, HVM_IOREQSRV_BUFIOREQ_ATOM= IC, @@ -472,12 +472,14 @@ static inline void xen_create_ioreq_server(domid_t do= m, =20 if (rc =3D=3D 0) { trace_xen_ioreq_server_create(*ioservid); - return; + return rc; } =20 *ioservid =3D 0; use_default_ioreq_server =3D true; trace_xen_default_ioreq_server(); + + return rc; } =20 static inline void xen_destroy_ioreq_server(domid_t dom, --=20 2.25.1