From nobody Mon Mar 23 21:28:28 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass header.i=thierry.escande@vates.tech; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=none dis=none) header.from=vates.tech ARC-Seal: i=1; a=rsa-sha256; t=1773419862; cv=none; d=zohomail.com; s=zohoarc; b=kR6GiR1E3Yn0OFxFMsOfOe9Acr19byg/BtPEvJ6ONltPQJTyG8Kccj8tlHqkvANu+AnmYI5dF8XU3doz/4FuHATh1YcOPerk8kGccRH6KHsmUKwGr4hJc2Red9/Oz3CQkWCJh25b0+Wm9R8Idy/7TMsGJPHV8td7XNTO/KpAyb0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1773419862; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=LlYPKk0xH8yJMporrB500MvTCwnh+CM9hoJ6qpHIVMQ=; b=e8EyV6ojsOf2k+mcKxkzm0V/vU6uzNxLHE4iSfZhhSzaBSRcM9MFsdEYBwS71JFiOxhSTAgUz+grdjHHX8ix/voQIVuBkzBB6RS5i4NK5802tRxaPWZe8x0MDeq7Y7d1da2aRA/CEVKsSIGdd5aDI5FRmjlIdUVuHv58eClt7G8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=thierry.escande@vates.tech; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1773419862749221.79911397062926; Fri, 13 Mar 2026 09:37:42 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.1254035.1550044 (Exim 4.92) (envelope-from ) id 1w15Vu-0007bY-Bv; Fri, 13 Mar 2026 16:37:26 +0000 Received: by outflank-mailman (output) from mailman id 1254035.1550044; Fri, 13 Mar 2026 16:37:26 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1w15Vu-0007YY-1z; Fri, 13 Mar 2026 16:37:26 +0000 Received: by outflank-mailman (input) for mailman id 1254035; Fri, 13 Mar 2026 16:37:25 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1w15Tp-0006Ek-O4 for xen-devel@lists.xenproject.org; Fri, 13 Mar 2026 16:35:17 +0000 Received: from mail134-15.atl141.mandrillapp.com (mail134-15.atl141.mandrillapp.com [198.2.134.15]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 9a79d599-1efa-11f1-9ccf-f158ae23cfc8; Fri, 13 Mar 2026 17:35:10 +0100 (CET) Received: from pmta10.mandrill.prod.atl01.rsglab.com (localhost [127.0.0.1]) by mail134-15.atl141.mandrillapp.com (Mailchimp) with ESMTP id 4fXVT42nVczPm0V3w for ; Fri, 13 Mar 2026 16:35:04 +0000 (GMT) Received: from [37.26.189.201] by mandrillapp.com id 2bcbd756c26342c989cfe55e6cc82acb; Fri, 13 Mar 2026 16:35:04 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version 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" X-Inumbo-ID: 9a79d599-1efa-11f1-9ccf-f158ae23cfc8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mandrillapp.com; s=mte1; t=1773419704; x=1773689704; bh=LlYPKk0xH8yJMporrB500MvTCwnh+CM9hoJ6qpHIVMQ=; h=From:Subject:To:Cc:Message-Id:In-Reply-To:References:Feedback-ID: Date:MIME-Version:Content-Type:Content-Transfer-Encoding:CC:Date: Subject:From; b=hPzO+XdGGHvtKFO1fOJgo0kn40j1p7JS0jnOI/cOk+iPYBCdCWyvEYlpIh16M8yt8 yB7xy16VrFIzVtjjGO9cBoe3HEARG3Z3N/q89InuJOFVCV0o6S7O2CIufJi/gsXusi b9KRUBqXzoET0JovhnURvBaKkGCnpomfbImSrhtQRBQJoiA3G4n6vDYzimT/X7DJ6q ak4M8dhmzRT1dCL8+v6BCI0Gb/85AI6kW7YZpJx6bDQo/qmiwJAF67H5zYr29M5cwI c0Hwe6I2SR8jFRWM0QtJRfCTqIbnfeajxw3UnWT6PBbzELN//WYhdHwCSubS0KOLqX wAwgBA5Y3kdlA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vates.tech; s=mte1; t=1773419704; x=1773680204; i=thierry.escande@vates.tech; bh=LlYPKk0xH8yJMporrB500MvTCwnh+CM9hoJ6qpHIVMQ=; h=From:Subject:To:Cc:Message-Id:In-Reply-To:References:Feedback-ID: Date:MIME-Version:Content-Type:Content-Transfer-Encoding:CC:Date: Subject:From; b=YnPrZi1NG75A8b7T72/WH8GTlzBXWpWMNj9KPFvcXXpO4uyrhNwbz/XJ6DTImMNGZ 99vT2Nz2DRHLs8CDuvCjiNmpeKhMHoJroKOf4q64qGtNvttBpE7IxZnbjJyr+Lzi/i GRsBkc9NWNZbZ8yiw3Lf73gZtjyHl07waYrgCMX7k6Qk4kK/qhneRKDDZgl3oW9vLM CJMLApsEdmjyMcN6ncMYM2OInoqfv7VdWr8N5ZFdTzX7DjF53F4HTf/LqLDbbgE9nB /mGFXQX5gXEQhK9cwP4RTAIdL4xdLOvPYYwCB0nRGlgmKqfXuLekJJBO4deoCzXzHu fTmgyYr4kdilg== From: "Thierry Escande" Subject: =?utf-8?Q?[PATCH=2013/17]=20libxl:=20Add=20xen-platform=20device=20for=20Q35=20machine?= X-Mailer: git-send-email 2.51.0 X-Bm-Disclaimer: Yes X-Bm-Milter-Handled: 4ffbd6c1-ee69-4e1b-aabd-f977039bd3e2 X-Bm-Transport-Timestamp: 1773419703848 To: xen-devel@lists.xenproject.org Cc: "Thierry Escande" , "Anthony PERARD" , "Juergen Gross" Message-Id: <20260313163455.790692-14-thierry.escande@vates.tech> In-Reply-To: <20260313163455.790692-1-thierry.escande@vates.tech> References: <20260313163455.790692-1-thierry.escande@vates.tech> X-Native-Encoded: 1 X-Report-Abuse: =?UTF-8?Q?Please=20forward=20a=20copy=20of=20this=20message,=20including=20all=20headers,=20to=20abuse@mandrill.com.=20You=20can=20also=20report=20abuse=20here:=20https://mandrillapp.com/contact/abuse=3Fid=3D30504962.2bcbd756c26342c989cfe55e6cc82acb?= X-Mandrill-User: md_30504962 Feedback-ID: 30504962:30504962.20260313:md Date: Fri, 13 Mar 2026 16:35:04 +0000 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity thierry.escande@vates.tech) (identity @mandrillapp.com) X-ZM-MESSAGEID: 1773419864082154100 Content-Type: text/plain; charset="utf-8" Current Xen/QEMU method to control Xen Platform device is done by setting the 'xen_platform_device' option value that modifies QEMU emulated machine type, namely xenfv <--> pc. In order to avoid multiplying machine types, this patch supplies '-device xen-platform' directly to Qemu. To maintain backward compatibility with existing Xen/QEMU setups, this is currently only applicable to q35 machine. i440 emulation uses the old method (xenfv/pc machine) to control Xen Platform device. Signed-off-by: Thierry Escande --- tools/libs/light/libxl_dm.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/libs/light/libxl_dm.c b/tools/libs/light/libxl_dm.c index 36f2813cde..a64e4779d0 100644 --- a/tools/libs/light/libxl_dm.c +++ b/tools/libs/light/libxl_dm.c @@ -1811,6 +1811,12 @@ static int libxl__build_device_model_args_new(libxl_= _gc *gc, flexarray_append(dm_args, state->dm_runas); } } + + if (b_info->device_model_machine =3D=3D LIBXL_DEVICE_MODEL_MACHINE= _Q35 && + libxl_defbool_val(b_info->u.hvm.xen_platform_pci)) { + flexarray_append(dm_args, "-device"); + flexarray_append(dm_args, "xen-platform"); + } } flexarray_append(dm_args, NULL); *args =3D (char **) flexarray_contents(dm_args); --=20 2.51.0 -- Thierry Escande | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech