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 7C7A1606A31A for ; Tue, 1 Dec 2026 09:33:55 +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=bPcfGUoO Received: from list by lists.xenproject.org with outflank-mailman.1508394.1701309 (Exim 4.92) (envelope-from ) id 1xYKEx-000239-FR; Tue, 01 Dec 2026 09:33:35 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 1508394.1701309; Tue, 01 Dec 2026 09:33:35 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1xYKEx-000232-CX; Tue, 01 Dec 2026 09:33:35 +0000 Received: by outflank-mailman (input) for mailman id 1508394; Tue, 01 Dec 2026 09:33:34 +0000 Received: from mx.expurgate.net ([194.145.224.10]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1xYKEw-00022w-Ht for xen-devel@lists.xenproject.org; Tue, 01 Dec 2026 09:33:34 +0000 Received: from mx.expurgate.net (helo=localhost) by mx.expurgate.net with esmtp id 1xYKEv-00DTyL-IA for xen-devel@lists.xenproject.org; Tue, 01 Dec 2026 10:33:33 +0100 Received: from [10.42.69.3] (helo=localhost) by localhost with ESMTP (eXpurgate MTA 0.9.1) (envelope-from ) id 6b0e9464-8faa-0a2a0a5109dd-0a2a4503a7a2-26 for ; Tue, 01 Dec 2026 10:33:33 +0100 Received: from [170.10.129.124] (helo=us-smtp-delivery-124.mimecast.com) by tlsNG-33051d.mxtls.expurgate.net with ESMTPS (eXpurgate 4.57.1) (envelope-from ) id 6b0e946c-fae8-0a2a45030019-aa0a817c75d7-3 for ; Tue, 01 Dec 2026 10:33:33 +0100 Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-665-NuUOJq99OM-M80517W47Xw-1; Tue, 1 Dec 2026 09:33:29 +0000 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (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-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 75394180ABE5; Tue, 1 Dec 2026 09:33:28 +0000 (UTC) Received: from redhat.com (headnet04.pony-001.prod.iad2.dc.redhat.com [10.2.32.116]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id DD1A91955F71; Tue, 1 Dec 2026 09:33:26 +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:In-Reply-To:References" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1796117611; 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:in-reply-to:in-reply-to: references:references; bh=IC1Z7bzZyzfX/zp3k+jnvbMBNIQNCqw0gG+sGcFHV3Q=; b=bPcfGUoOv8tIOy6vjg4Iit3mTUQXt58GM5uQ9//Zj2mZM/b82N78Y4yFE8xtXQk+ia1dAu sZFRNO3URifx/0NRWyBiMS2IXHChRx6xCsKH7jE1bBmveSsLvMT2HH/41aKYqoZjmPe9UU qDetOL++YS5dcmNFdzoJBJNYmOnnkWo= X-MC-Rep: binary re single X-MC-Unique: NuUOJq99OM-M80517W47Xw-1 X-Mimecast-MFC-AGG-ID: NuUOJq99OM-M80517W47Xw_1796117608 Date: Tue, 1 Dec 2026 09:33:23 +0000 From: Daniel =?utf-8?B?UC4gQmVycmFuZ8Op?= To: Stefano Stabellini Cc: 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> X-Archived-By: MIME-Version: 1.0 In-Reply-To: <9649c8f9-0eec-a812-85d6-f858f5ac11b8@kernel.org> User-Agent: Mutt/2.4.3 (2026-10-09) X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 X-Mimecast-MFC-PROC-ID: ng1ZnOLq5y9p9mJb2fD-N0PVqI7mVhDPRb-RNuSIHxc_1796117608 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Disposition: inline X-purgate-ID: tlsNG-33051d/1796117613-754844E9-E40574A5/35/111497 X-purgate-type: clean X-purgate-size: 4104 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 Mon, Nov 30, 2026 at 04:28:12PM -0800, Stefano Stabellini wrote: > +xen-devel > > On Fri, 27 Nov 2026, Thomas Huth wrote: > > Hi! > > > > As you might know, since a couple of releases, QEMU has the policy to treat > > all versioned machine types older than 6 years as obsolete and disables them > > automatically. The code then can be removed. > > > > This week, I started looking into removing the code of the old pc-q35-4.2 and > > pc-i440fx-4.2 machine types - but I got stuck with the "xenfv-4.2" machine > > since this is still calling the pc_i440fx_machine_4_2_options() function. > > > > Being a Xen ignorant, this was quite confusing for me: Why is there this old > > "xenfv-4.2" machine, but not a newer one? Is it still used, or could it be > > removed nowadays, too? Or if it could not get removed completely, could it get > > replaced by a newer variant or non-versioned machine type instead? > > Upstream Xen (libxl) does not use versioned machine types: it always > passes "-machine xenfv". From that point of view, xenfv-4.2 as such > could be removed. > > However, since the removal of xenfv-3.1, "xenfv" is an alias of > xenfv-4.2 (see 6ccf1e73fc). If we remove xenfv-4.2, "xenfv" goes away > with it and HVM guests started by libxl fail with: > > qemu-system-i386: unsupported machine type: "xenfv" > > So xenfv-4.2 cannot simply be dropped, but we could turn it into a > non-versioned machine type. It would need to keep the current 4.2 > properties so that live migration and save/restore of existing guests > keep working. If it needs to keep ABI compat with 4.2, then that is defacto a versioned machine type, whether it is used via the alias or not. Effectively Xen has been relying on the fact that no one would add a 'xenfv-11.2' and change 'xenfv' alias to point to that. What was the criteria for deciding to switch from xenfv-3.1 to xenfv-4.2, and can be it repeated to get onto something less ancient ? Outside this xenfv machine, every versioned machine gets a new version added in every release. Each version, gets a 6 year lifetime before it is automatically deleted. We decided 6 years was sufficiently long for live migration compatibility between platform upgrades, without an intervening cold reboot of a VM. QEMU only wants to promise ABI compatibility for versioned machines that are following this scheme, but we've unfortunately overlooked xenfv-4.2 which wasn't using any of our macros for defining versions, as it was just hardcoded at a fixed version. Being able to purge old versions is important for QEMU's ability to drop historical technical debt, so we really don't want to get fixated on an ancient version that can never be changed forever. For every other versioned machine our current oldest version is already raised to 6.0. More generally though, I'm wondering if the 'xenfv' machine type really needs to exist though ? 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. 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 :|