public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Thomas Lamprecht <t.lamprecht@proxmox.com>
To: Stefan Reiter <s.reiter@proxmox.com>,
	Proxmox VE development discussion <pve-devel@lists.proxmox.com>
Subject: Re: [pve-devel] [PATCH 0/4] add meta info and bandaid for QEMU 6.1 and unpinned q35 machine backward compat
Date: Thu, 21 Oct 2021 12:01:41 +0200	[thread overview]
Message-ID: <f68eb4e5-1c55-7f51-6cc7-80a678fe75c4@proxmox.com> (raw)
In-Reply-To: <385c4810-af7e-15de-cf79-263c8804ec2b@proxmox.com>

On 21.10.21 11:56, Stefan Reiter wrote:
> On 10/21/21 11:47 AM, Thomas Lamprecht wrote:
>> On 21.10.21 11:34, Stefan Reiter wrote:
>>> On 10/21/21 10:36 AM, Thomas Lamprecht wrote:
>>>> First add a new meta property that is currently exclusively set on new
>>>> VM creation and then read-only, initially add the creation time as UNIX
>>>> epoch and the QEMU version that was installed during installation
>>>> (thought about using the one on first start but that actually does not
>>>> gives any more guarantee, so just go for simple).
>>>>
>>>> Use that information to band aid around a change regarding hotplug in
>>>> QEMU 6.1 that can affected older VMs on fresh start (migration and
>>>> rollback is covered by force-machine mechanisms as always already).
>>>>
>>>> I'm not 100% convinced of the whole thing, albeit I see some merit in
>>>> the meta property even if we do not go with the last patch, anyhow, I
>>>> proposed this off-list to Dominik (and those thing is partly his idea
>>>> too), Wolfgang, Fabian and Stefan and none of them rejected the idea nor
>>>> communicated a better/more preferred alternative, so I went for it
>>>> (still not steaming from enthusiasm though)
>>>
>>> So we're doing all of this to avoid issues with older VMs that expect
>>> "acpi-pci-hotplug-with-bridge-support=off" on Q35 (previously default),
>>> but we still want to set it for new VMs that are created with QEMU 6.1
>>> and never booted with anything older.
>>>
>>> But taking a step back, do we actually want the new ACPI hotplug in
>>> general? If we choose to simply leave it be, we could just always add
>>> "acpi-pci-hotplug-with-bridge-support=off" to Q35 on QEMU > 6.1.
>>> Since it's a global property, I think we wouldn't even need to check
>>> machine-type/forcemachine at all, since we'd only make the default
>>> explicit with older ones.
>>
>> Check the commit I linked in patch 4/4, the change has some value.
>>
>> https://gitlab.com/qemu-project/qemu/-/commit/17858a1695
>>
> 
> I did read it, and I agree it has some improvements, was just
> wondering if it was worth our effort here (never encountered any of
> the described bugs or saw a user that encountered them anywhere).
> 

hmm, yeah neither did, but not sure how much worth it is to go against
the upstream's new default here...

FWIW, I also stumbled upon a followup for that change that happened after
6.1 release:

https://gitlab.com/qemu-project/qemu/-/commit/0e780da76a6fe283a20283856718bca3986c104f

> But I don't think this series is as bad as you make it out to be
> either ;)

hehe, thanks! ;)

      reply	other threads:[~2021-10-21 10:01 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-21  8:36 Thomas Lamprecht
2021-10-21  8:36 ` [pve-devel] [PATCH 1/4] config: add new meta property withe creation time Thomas Lamprecht
2021-10-21  8:36 ` [pve-devel] [PATCH 2/4] config: meta: also save the QEMU version installed during creation Thomas Lamprecht
2021-10-21  8:36 ` [pve-devel] [PATCH 3/4] tests: cfg2cmd: add a few q35 related tests Thomas Lamprecht
2021-10-21  9:34   ` Stefan Reiter
2021-10-21  9:45     ` Thomas Lamprecht
2021-10-21  8:36 ` [pve-devel] [PATCH 4/4] cfg2cmd: switch off ACPI hotplug on bridges for q35 VMs Thomas Lamprecht
2021-10-21  9:34   ` Stefan Reiter
2021-10-21  9:47     ` Thomas Lamprecht
2021-10-21  9:34 ` [pve-devel] [PATCH 0/4] add meta info and bandaid for QEMU 6.1 and unpinned q35 machine backward compat Stefan Reiter
2021-10-21  9:47   ` Thomas Lamprecht
2021-10-21  9:56     ` Stefan Reiter
2021-10-21 10:01       ` Thomas Lamprecht [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f68eb4e5-1c55-7f51-6cc7-80a678fe75c4@proxmox.com \
    --to=t.lamprecht@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    --cc=s.reiter@proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal