From nobody Mon Mar 23 21:24:10 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=1773419730; cv=none; d=zohomail.com; s=zohoarc; b=cqq5qp1+klWbuwIDRPSVspKaKLbK8yCta1zS6OIuI8igmNSmWVcibhRp7U9HMZj1mmbHwlgH/dYjZmaP5UHz5+ilvBRilB2WyvZsFoFkhwf8vg3HIUn6bB6Ysp6pEuO/63ahkxolO1MqH1La5KHiY8uxULd7WuXiwVtYOPy8Z9c= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1773419730; 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=JfHFYvtudm5KF8F0VORCJcQt4zo5UBXTcc/C8TzmeOA=; b=HE6TgEWZPlJNNrH8XJB6lP+7i6U0soLhaQyu2txTvbTZc6MHG4VEpVQf1oI7O3nWz0oY5HMW8Wx+jeVSEwQhXM0BTTltz/v87E1EfuEx/Y+dw7+H4Svyogz02xJFbxkX1PKGYiQfceEM0+AbLbwz+WHTLbST1rm8wGQqGItDtbA= 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 17734197305881016.4860434334757; Fri, 13 Mar 2026 09:35:30 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.1253909.1549874 (Exim 4.92) (envelope-from ) id 1w15Th-0006fY-10; Fri, 13 Mar 2026 16:35:09 +0000 Received: by outflank-mailman (output) from mailman id 1253909.1549874; Fri, 13 Mar 2026 16:35:08 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1w15Tg-0006fR-TW; Fri, 13 Mar 2026 16:35:08 +0000 Received: by outflank-mailman (input) for mailman id 1253909; Fri, 13 Mar 2026 16:35:07 +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 1w15Tf-0006Ek-Mo for xen-devel@lists.xenproject.org; Fri, 13 Mar 2026 16:35:07 +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 95fd48a8-1efa-11f1-9ccf-f158ae23cfc8; Fri, 13 Mar 2026 17:35:03 +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 4fXVT26z4fzPm0Tfk for ; Fri, 13 Mar 2026 16:35:02 +0000 (GMT) Received: from [37.26.189.201] by mandrillapp.com id 67f6cedc721c42edbf171055fee92f62; Fri, 13 Mar 2026 16:35:02 +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: 95fd48a8-1efa-11f1-9ccf-f158ae23cfc8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mandrillapp.com; s=mte1; t=1773419703; x=1773689703; bh=JfHFYvtudm5KF8F0VORCJcQt4zo5UBXTcc/C8TzmeOA=; 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=Cr7ix8mpoVVF1RvAhtUe+IUrYgBDRBNVWvATBUdkAJ2uY6+EBxGn1JyzvK2jr/hK0 +2FzWg9tElDWxwwrdRNVOYCacTF3/82Jr1yYNtVciklRlwa76WKeuMfgOH35LAnsfR kJZUYEIppgxM8XI1W2ONvjARsMfksjiZ6yj/7FKz2Jvr62mXAsbpgf+t6OA4a1AZea tG9ubT5uxIPHTlM6yFCZtq+EiDTSqNgxx7i5EBdX2pKNaSOUuDRZvP1pfGPO6gdqNB PDkBzqYxCtPkwPXi8c/+HvBrAezSR07XaiAHoEr7qKfpqkziTqNDEhhMqku2etTE78 jRZP6fZdIFBfA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vates.tech; s=mte1; t=1773419703; x=1773680203; i=thierry.escande@vates.tech; bh=JfHFYvtudm5KF8F0VORCJcQt4zo5UBXTcc/C8TzmeOA=; 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=VJqFJtu2xGYuVcLOW7Apox2ntOVpWsXdMGjhm68+C5UgmO5mOaBcuv3T0zQZR55gc yPFw+iutjQLdj4RnAMKg2UHJlCj8QlPVXMG8eTqeU77Qz0CPBYIGC6qZWEI1493Uit wH/nKlGTZIS0Gwr6uKAtcP1/fDpdOSiOxR+wCV06PEFufh6galoubakN6LrigCxmU9 DtxBSMegYH4bSHnqwUkOdTMHc6YSIUhNB84cFFpWkjravbnWHjzIQCC0pun01LF9YE xNjUgRrPw0l5C0C0yXIyG8AgkgUMQvYOI8+kcmuuVe1Kxyt4GRTZhNUvRBJ6ysacMv 2a1rsCMbBZZGQ== From: "Thierry Escande" Subject: =?utf-8?Q?[PATCH=2005/17]=20hvmloader:=20add=20Q35=20DSDT=20table=20loading?= 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: 1773419701817 To: xen-devel@lists.xenproject.org Cc: "Thierry Escande" , "Jan Beulich" , "Andrew Cooper" , "=?utf-8?Q?Roger=20Pau=20Monn=C3=A9?=" , "Anthony PERARD" , "Alexey Gerasimenko" Message-Id: <20260313163455.790692-6-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.67f6cedc721c42edbf171055fee92f62?= X-Mandrill-User: md_30504962 Feedback-ID: 30504962:30504962.20260313:md Date: Fri, 13 Mar 2026 16:35:02 +0000 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @mandrillapp.com) (identity thierry.escande@vates.tech) X-ZM-MESSAGEID: 1773419732219154100 Content-Type: text/plain; charset="utf-8" This patch allows to select Q35 DSDT table in the function hvmloader_acpi_build_tables(). The machine_type global variable is used to select a proper table (i440/q35). As we are bound to the qemu-xen device model for Q35, there is no need to initialize config->dsdt_15cpu/config->dsdt_15cpu_len fields. Signed-off-by: Alexey Gerasimenko Signed-off-by: Thierry Escande --- tools/firmware/hvmloader/util.c | 17 +++++++++++++++-- tools/firmware/hvmloader/util.h | 2 ++ 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/tools/firmware/hvmloader/util.c b/tools/firmware/hvmloader/uti= l.c index f9116bea4d..45519ea583 100644 --- a/tools/firmware/hvmloader/util.c +++ b/tools/firmware/hvmloader/util.c @@ -885,8 +885,21 @@ void hvmloader_acpi_build_tables(struct acpi_config *c= onfig, s =3D xenstore_read("platform/device-model", ""); if ( !strncmp(s, "qemu_xen", 9) ) { - config->dsdt_anycpu =3D dsdt_i440_anycpu_qemu_xen; - config->dsdt_anycpu_len =3D dsdt_i440_anycpu_qemu_xen_len; + switch ( machine_type ) + { + case MACHINE_TYPE_Q35: + config->dsdt_anycpu =3D dsdt_q35_anycpu_qemu_xen; + config->dsdt_anycpu_len =3D dsdt_q35_anycpu_qemu_xen_len; + break; + case MACHINE_TYPE_I440: + config->dsdt_anycpu =3D dsdt_i440_anycpu_qemu_xen; + config->dsdt_anycpu_len =3D dsdt_i440_anycpu_qemu_xen_len; + break; + default: + /* Not likely to happen */ + BUG(); + } + config->dsdt_15cpu =3D NULL; config->dsdt_15cpu_len =3D 0; } diff --git a/tools/firmware/hvmloader/util.h b/tools/firmware/hvmloader/uti= l.h index 2f37504aca..4641ca0c46 100644 --- a/tools/firmware/hvmloader/util.h +++ b/tools/firmware/hvmloader/util.h @@ -393,7 +393,9 @@ bool check_overlap(uint64_t start, uint64_t size, uint64_t reserved_start, uint64_t reserved_size); =20 extern const unsigned char dsdt_i440_anycpu_qemu_xen[], dsdt_anycpu[], dsd= t_15cpu[]; +extern const unsigned char dsdt_q35_anycpu_qemu_xen[]; extern const int dsdt_i440_anycpu_qemu_xen_len, dsdt_anycpu_len, dsdt_15cp= u_len; +extern const int dsdt_q35_anycpu_qemu_xen_len; =20 unsigned long acpi_pages_allocated(void); =20 --=20 2.51.0 -- Thierry Escande | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech