From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B9F6A606A32C for ; Thu, 3 Dec 2026 09:10:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=aV5Riyr8 Received: from list by lists.xenproject.org with outflank-mailman.1511909.1704254 (Exim 4.92) (envelope-from ) id 1xZ2p7-0002aD-JU; Thu, 03 Dec 2026 09:09:53 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 1511909.1704254; Thu, 03 Dec 2026 09:09:53 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1xZ2p7-0002a6-Gi; Thu, 03 Dec 2026 09:09:53 +0000 Received: by outflank-mailman (input) for mailman id 1511909; Thu, 03 Dec 2026 09:09:51 +0000 Received: from mx.expurgate.net ([195.190.135.10]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1xZ2p5-0002Zh-GB for xen-devel@lists.xenproject.org; Thu, 03 Dec 2026 09:09:51 +0000 Received: from mx.expurgate.net (helo=localhost) by mx.expurgate.net with esmtp id 1xZ2p4-00DCnK-OX for xen-devel@lists.xenproject.org; Thu, 03 Dec 2026 10:09:50 +0100 Received: from [10.42.69.10] (helo=localhost) by localhost with ESMTP (eXpurgate MTA 0.9.1) (envelope-from ) id 6b1131d9-8faa-0a2a0a5109dd-0a2a450ae31c-22 for ; Thu, 03 Dec 2026 10:09:50 +0100 Received: from [170.10.133.124] (helo=us-smtp-delivery-124.mimecast.com) by tlsNG-4011c0.mxtls.expurgate.net with ESMTPS (eXpurgate 4.57.1) (envelope-from ) id 6b1131dd-f2d2-0a2a450a0019-aa0a857c71af-3 for ; Thu, 03 Dec 2026 10:09:50 +0100 Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-688-gBQZtq15ME6T_OjQkdNPgg-1; Thu, 3 Dec 2026 09:09:44 +0000 Received: from mx-prod-int-10.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-10.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.95]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id DE8D1197732D; Thu, 3 Dec 2026 09:09:21 +0000 (UTC) Received: from redhat.com (headnet04.pony-001.prod.iad2.dc.redhat.com [10.2.32.116]) by mx-prod-int-10.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 04965B8B; Thu, 3 Dec 2026 09:09:19 +0000 (UTC) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Post: List-Help: List-Subscribe: , Precedence: list Sender: "Xen-devel" Authentication-Results: eu.smtp.expurgate.cloud; dkim=pass header.s=mimecast20190719 header.d=redhat.com header.i="@redhat.com" header.h="From:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding:In-Reply-To:References" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1796288990; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NtpIhIzAFIumpDMhCadU7tRBLtaVPofVokMeIDeYUkk=; b=aV5Riyr8DRmjRWptZyM5i6RZudQNNI/zjQAphUrqJaDuS5G7k9a6j15TuUY3U6ywnTDom0 v4+nbEKdqAfC+WC3fo87+NcMkqbmmrUHRDX+r0sXaFcKckBCf5XS4KsNlJ0rgwjA6G/Ys4 inJjrs2eII0ZBWkc08ghmfHTho1aFYw= X-MC-Rep: binary re single X-MC-Unique: gBQZtq15ME6T_OjQkdNPgg-1 X-Mimecast-MFC-AGG-ID: gBQZtq15ME6T_OjQkdNPgg_1796288968 Date: Thu, 3 Dec 2026 09:09:17 +0000 From: Daniel =?utf-8?B?UC4gQmVycmFuZ8Op?= To: Philippe =?utf-8?Q?Mathieu-Daud=C3=A9?= Cc: Stefano Stabellini , Thomas Huth , QEMU Developers , "Edgar E. Iglesias" , Anthony PERARD , xen-devel@lists.xenproject.org Subject: Re: Can xenfv-4.2 be removed nowadays? Message-ID: Reply-To: Daniel =?utf-8?B?UC4gQmVycmFuZ8Op?= References: <7b691889-f9a9-48bd-b671-af3f44cb97a7@redhat.com> <9649c8f9-0eec-a812-85d6-f858f5ac11b8@kernel.org> <76de0429-b03f-436b-bc57-8aeeaf8eb9fd@oss.qualcomm.com> X-Archived-By: MIME-Version: 1.0 In-Reply-To: <76de0429-b03f-436b-bc57-8aeeaf8eb9fd@oss.qualcomm.com> User-Agent: Mutt/2.4.3 (2026-10-09) X-Scanned-By: MIMEDefang 3.6 on 10.30.177.95 X-Mimecast-MFC-PROC-ID: DQGfTlLrH2zdS8Nzxff5DdlK1egfVTJbcNEWSoWbzZE_1796288968 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-purgate-ID: tlsNG-4011c0/1796288990-4B0D9CFC-E623A18F/35/111497 X-purgate-type: clean X-purgate-size: 2797 X-Spam-Status: No, score=-7.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_PASS,SPF_PASS,UNPARSEABLE_RELAY, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Thu, Dec 03, 2026 at 08:32:56AM +0100, Philippe Mathieu-Daudé wrote: > On 3/12/26 00:27, Stefano Stabellini wrote: > > On Tue, 1 Dec 2026, Daniel P. Berrangé wrote: > > > On Mon, Nov 30, 2026 at 04:28:12PM -0800, Stefano Stabellini wrote: > > > > > Compared to the regular i440fx machine type the only differences > > > appear to be > > > > > > m->max_cpus = HVM_MAX_VCPUS; > > > m->default_machine_opts = "accel=xen,suppress-vmdesc=on"; > > > > > > The default_machine_opts are just syntax sugar, iow, from an machine > > > ABI point of view > > > > > > -M xenfv-4.2 > > > > > > would be functionally identical to > > > > > > -M pc-i440fx-4.2,suppress-vmdesc=on -accel xen > > > > > > The 'max_cpus' field is used to provide error checking on the -smp > > > value, and I would have thought the Xen mgmt tools would already > > > sanity check the CPU count before launching QEMU. > > > > > > Unless I'm missing something else that's significant about 'xenfv', > > > it feels like it is redundant and the Xen tools could be updated > > > to use the standard pc-i440fx machine types, allowing us to phase > > > out 'xenfv', after a suitable time has passed to allow updated > > > Xen tools to deploy across the ecosystem. > > - TYPE_IGD_PASSTHROUGH_I440FX_PCI_DEVICE is used when > xen_igd_gfx_pt_enabled() is true, xen_igd_gfx_pt_enabled() returns true, if xen_igd_gfx_pt_set(true) was called, which is wired up to use of "-accel xen" > - xen_igd_reserve_slot(pcms->pcibus) called, > - pci_create_simple(pcms->pcibus, -1, "xen-platform") called. > > We need to add "-device xen-platform" to the new command line. > > No clue how to setup the IGD passthrough host bridge / slot reservation. Sigh, I got confused by fact that we have two methods with almost identical names xen_hvm_init_pc() and pc_xen_hvm_init(). The former is called from pc_init1(), so gets wired up correctly in any pc-piix* / pc-q35* machines. The latter is only called from the 'xenfv' machine. I'm wondering why the logic that's in pc_xen_hvm_init() can't be moved into the pc_init1() method, and toggled from xen_enabled() like all the other Xen functionality is. Are the pc-piix* machines already being used by Xen in other scenarios perhaps, which don't want the extra xen-platform device. The alternative to eliminating xenfv is to setup the versioned machines so that we just track the regular piix versioned machines in some more reliably automated manner. With regards, Daniel -- |: https://berrange.com ~~ https://hachyderm.io/@berrange :| |: https://libvirt.org ~~ https://entangle-photo.org :| |: https://pixelfed.art/berrange ~~ https://fstop138.berrange.com :|