all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Arthur Bied-Charreton <a.bied-charreton@proxmox.com>
To: Fiona Ebner <f.ebner@proxmox.com>
Cc: pve-devel@lists.proxmox.com
Subject: Re: [PATCH pve-qemu 2/3] build: query Hyper-V enlightenment flags for CPU flags list
Date: Fri, 29 May 2026 07:53:06 +0200	[thread overview]
Message-ID: <xwj3gkmhlmlx5kkimwvbibxxxi2wfwuwzhvx33lsiiurnxwfnt@2bgoeol2nl5v> (raw)
In-Reply-To: <5a69ae56-3533-45e3-a3ba-7ba2512f0b84@proxmox.com>

On Thu, May 28, 2026 at 05:43:26PM +0200, Fiona Ebner wrote:
> Am 28.05.26 um 5:29 PM schrieb Arthur Bied-Charreton:
> > On Thu, May 28, 2026 at 03:38:43PM +0200, Fiona Ebner wrote:
> >> I'm also thinking about whether we should go ahead and use just the QOM
> >> CPU properties rather than relying on the -cpu help output. We would
> >> then need a hardcoded blacklist of boolean properties that are not to be
> >> expose as flags (and also the aliases to avoid duplication). It's not
> >> that long of a list, but going forward, we'll need to be slightly more
> >> careful not to add anything as a flag that we don't want. In practice,
> >> after patch 3/3, every new boolean option needs to be looked at anyways
> >> and then the person doing the rebase needs to check if it is actually a
> >> flag. I'm not fully sure, but it would avoid the mixing info from
> >> different sources altogether. What do you think?
> >>
> > From a quick diff the only flag present in -cpu help that is not also in
> > qom-list-properties is kvmclock (on 11.0.0). In the other direction it's
> > 62 (I guess 58 after resolving QEMU aliases) properties, without 
> > counting the Hyper-V enlightenments, since we want to include those.
> > 
> > Some thoughts:
> > 
> > QEMU accepts all flags that would be added with qom-list-properties 
> > (just successfully booted a VM with a custom CPU model that had all of 
> > them set), so on that front we would be okay AFAICT.
> > 
> > The blocker is query_supported_cpu_flags, it reports a lot of the new 
> > flags I checked as unsupported. There is likely a way to make the 
> > temporary VM we query for flag support advertise those as well, like 
> > there was for the Hyper-V enlightenments, but I think that should be 
> > figured out before we start including those flags. 
> > 
> > I would suggest keeping '-cpu help' as the base set for now and just 
> > moving the qom-list-properties call for hv-* into the script so we stop 
> > mixing STDIN and a passed-in binary. At least until we have a good way 
> > to query support for the new flags. This way we avoid recreating the 
> > Hyper-V enlightenments issue at a larger scale.
> > 
> > I might still be missing a piece though, will definitely look into the
> > support-query path with fresh eyes tomorrow. 
> 
> I didn't mean to include all boolean properties of the QOM CPU object as
> new flags. Many are not proper CPUID flags and I don't think we want to
> expose them in the same way. That's why I wrote we'd need a hard-coded
> list to filter out non-flag boolean properties. Those non-flag
> properties should rather be additional properties in our CPU model
> schema, if we ever choose to add one of them.
> 
I see, I will look into this and update v2 accordingly.
> That said, I'm fine with keeping -cpu help as the basis too if you prefer.
I don't have a strong opinion on this, just misunderstood you - sorry
about that. 




  reply	other threads:[~2026-05-29  5:53 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-22 13:21 [PATCH qemu/qemu-server 0/3] include Hyper-V enlightenment flags in CPU flags lists Arthur Bied-Charreton
2026-05-22 13:21 ` [PATCH qemu-server 1/3] cpu flags: include Hyper-V enlightenment flags in supported flags Arthur Bied-Charreton
2026-05-26  8:43   ` applied: " Fiona Ebner
2026-05-22 13:21 ` [PATCH pve-qemu 2/3] build: query Hyper-V enlightenment flags for CPU flags list Arthur Bied-Charreton
2026-05-28 13:38   ` Fiona Ebner
2026-05-28 15:30     ` Arthur Bied-Charreton
2026-05-28 15:43       ` Fiona Ebner
2026-05-29  5:53         ` Arthur Bied-Charreton [this message]
2026-05-22 13:21 ` [PATCH pve-qemu 3/3] build: fail when recognized CPU flags list changes Arthur Bied-Charreton

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=xwj3gkmhlmlx5kkimwvbibxxxi2wfwuwzhvx33lsiiurnxwfnt@2bgoeol2nl5v \
    --to=a.bied-charreton@proxmox.com \
    --cc=f.ebner@proxmox.com \
    --cc=pve-devel@lists.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal