From: "DERUMIER, Alexandre" <alexandre.derumier@groupe-cyllene.com>
To: "pve-devel@lists.proxmox.com" <pve-devel@lists.proxmox.com>,
"aderumier@odiso.com" <aderumier@odiso.com>,
"f.ebner@proxmox.com" <f.ebner@proxmox.com>
Subject: Re: [pve-devel] [PATCH pve-qemu 1/1] patch: add 0001-add-cpu-models-x86-64-abi.patch
Date: Wed, 17 May 2023 08:25:44 +0000 [thread overview]
Message-ID: <b914156befc014c60e3df8555d88c2069fcd25ae.camel@groupe-cyllene.com> (raw)
In-Reply-To: <683002e1-e5ac-6eb4-01df-d2f6fae2a1e2@proxmox.com>
Le mercredi 17 mai 2023 à 09:46 +0200, Fiona Ebner a écrit :
> Am 17.05.23 um 09:02 schrieb Alexandre Derumier:
> > Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
> > ---
> > .../pve/0001-add-cpu-models-x86-64-abi.patch | 272
> > ++++++++++++++++++
> > debian/patches/series | 1 +
> > 2 files changed, 273 insertions(+)
> > create mode 100644 debian/patches/pve/0001-add-cpu-models-x86-64-
> > abi.patch
> >
>
> Do we really need this? Can't we just define these as custom CPU
> models
> in qemu-server? I'd really prefer to not pick up such patches if not
> necessary. Ideally, we reduce divergence from upstream QEMU rather
> than
> increase it.
yes sure we can do it in qemu-server, with simply setting flags in
command line.
It was more by security to not forgot a cpu flag.
> Since the patch was never applied, what other solution did
> upstream or libvirt go for?
The end of the discussion was that it could be done userland
like qemu-server ;)
I'll rework the patch series.
(BTW, what do you think about bumping the default model ? is it ok for
you ?)
>
> If we really do need this, we should rather ask upstream again if
> they
> can apply it or why they didn't first. Because it's two years old, so
> if
> there were good reasons, so without asking, it's unlikely that they
> will
> apply it soon and then we'd have to carry it around forever
> ourselves...
>
> > diff --git a/debian/patches/pve/0001-add-cpu-models-x86-64-
> > abi.patch b/debian/patches/pve/0001-add-cpu-models-x86-64-abi.patch
> > new file mode 100644
> > index 0000000..e98f862
> > --- /dev/null
> > +++ b/debian/patches/pve/0001-add-cpu-models-x86-64-abi.patch
> > @@ -0,0 +1,272 @@
> > +From 7d9ff48a96a7613a15e5427bc8987358e5529e45 Mon Sep 17 00:00:00
> > 2001
> > +From: Alexandre Derumier <aderumier@odiso.com>
>
> How did you apply the patch from the mail? Here should be the name of
> the one how sent the mail, not yours.
>
> > +
> > + CPUID.01H:ECX.pcid [bit 17]
> > + CPUID.01H:ECX.x2apic [bit 21]
> > + CPUID.01H:ECX.tsc-deadline [bit 24]
> > + CPUID.07H:EBX.invpcid [bit 10]
> > + CPUID.07H:EBX.avx512f [bit 16]
> > + CPUID.07H:EBX.avx512dq [bit 17]
> > + CPUID.07H:EBX.rdseed [bit 18]
> > + CPUID.07H:EBX.avx512cd [bit 28]
> > + CPUID.07H:EBX.avx512bw [bit 30]
> > + CPUID.07H:EBX.avx512vl [bit 31]
> > + CPUID.80000001H:ECX.3dnowprefetch [bit 8]
> > + CPUID.0DH:EAX.xsavec [bit 1]
> > +
>
> And here you lost the original
>
> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
>
> That is not okay.
>
> If you modified the patch you should do:
>
> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
> [AD: describe your changes here]
> Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
>
> With AD being your initials, but you can also use A or leave them out
> completely. The important part is that the changes are mentioned ;)
>
> > +---
> > + target/i386/cpu.c | 162
> > ++++++++++++++++++++++++++++++++++++++++++++++
> > + 1 file changed, 162 insertions(+)
> > +
>
next prev parent reply other threads:[~2023-05-17 8:25 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-17 7:02 [pve-devel] [PATCH-SERIES qemu/qemu-server/manager 0/1] add and set x86-64-v2 as default model for new vms Alexandre Derumier
2023-05-17 7:02 ` [pve-devel] [PATCH qemu-server 1/1] cpuconfig: add new x86-64-abi models Alexandre Derumier
2023-05-17 7:02 ` [pve-devel] [PATCH pve-qemu 1/1] patch: add 0001-add-cpu-models-x86-64-abi.patch Alexandre Derumier
2023-05-17 7:46 ` Fiona Ebner
2023-05-17 8:25 ` DERUMIER, Alexandre [this message]
2023-05-17 9:08 ` Fiona Ebner
2023-05-19 9:16 ` Thomas Lamprecht
2023-05-17 7:02 ` [pve-devel] [PATCH pve-manager 1/1] qemu: processor : set x86-64-abi2 as default cputype for create wizard Alexandre Derumier
2023-05-17 7:34 ` [pve-devel] [PATCH-SERIES qemu/qemu-server/manager 0/1] add and set x86-64-v2 as default model for new vms Fabian Grünbichler
2023-05-18 5:03 ` DERUMIER, Alexandre
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=b914156befc014c60e3df8555d88c2069fcd25ae.camel@groupe-cyllene.com \
--to=alexandre.derumier@groupe-cyllene.com \
--cc=aderumier@odiso.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox