qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [RFT PATCH v2 0/2] Fix cross migration issue with missing features: pdcm, arch-capabilities
@ 2025-09-23 10:41 Paolo Bonzini
  2025-09-23 10:41 ` [RFT PATCH v2 1/2] target/i386: add compatibility property for arch_capabilities Paolo Bonzini
                   ` (2 more replies)
  0 siblings, 3 replies; 18+ messages in thread
From: Paolo Bonzini @ 2025-09-23 10:41 UTC (permalink / raw)
  To: qemu-devel; +Cc: hector.cao, lk, berrange

Add two compatibility properties to restore legacy behavior of machine types
prior to QEMU 10.1.  Each of them addresses the two changes to CPUID:

- ARCH_CAPABILITIES should not be autoenabled when the CPU model specifies AMD
  as the vendor

- specifying PDCM without PMU now causes an error, instead of being silently
  dropped in cpu_x86_cpuid.

Note, I only tested this lightly.

Paolo

Hector Cao (1):
  target/i386: add compatibility property for pdcm feature

Paolo Bonzini (1):
  target/i386: add compatibility property for arch_capabilities

 target/i386/cpu.h     | 12 ++++++++++++
 hw/i386/pc.c          |  2 ++
 target/i386/cpu.c     | 32 +++++++++++++++++++++++++++++---
 target/i386/kvm/kvm.c |  6 +-----
 4 files changed, 44 insertions(+), 8 deletions(-)

-- 
2.51.0



^ permalink raw reply	[flat|nested] 18+ messages in thread
* [RFT PATCH v2 0/2] Fix cross migration issue with missing features: pdcm, arch-capabilities
@ 2025-09-25  8:40 Hector Cao
  2025-09-28  9:46 ` Paolo Bonzini
  0 siblings, 1 reply; 18+ messages in thread
From: Hector Cao @ 2025-09-25  8:40 UTC (permalink / raw)
  To: Paolo Bonzini, qemu-devel

[-- Attachment #1: Type: text/plain, Size: 546 bytes --]

Thanks Paolo for the great improvements you made to the original POC
patches,

I can confirm that the migration we had for Intel CPU (Haswell) is fixed
with these 2 patches.

I can see that for arch-capabilities, in addition to the
compatibility property, you did slightly change
the behavior by limiting it to AMD CPU (other x86 CPUs like Intel will have
the old behavior prior 10.1 so no migration issue).
Do you think it is good to make it clear in the commit log ?

I'm also trying to test on an AMD CPU and will report back.

Thanks,
Hector

[-- Attachment #2: Type: text/html, Size: 711 bytes --]

^ permalink raw reply	[flat|nested] 18+ messages in thread
* [RFT PATCH v2 0/2] Fix cross migration issue with missing features: pdcm, arch-capabilities
@ 2025-09-30  8:37 Hector Cao
  0 siblings, 0 replies; 18+ messages in thread
From: Hector Cao @ 2025-09-30  8:37 UTC (permalink / raw)
  To: Paolo Bonzini, qemu-devel

[-- Attachment #1: Type: text/plain, Size: 155 bytes --]

Hello Paolo,

I tested the migration on both Intel and AMD CPUs and the migration issue
is fixed with your proposed patches.

Thanks for the work.

Hector

[-- Attachment #2: Type: text/html, Size: 398 bytes --]

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2025-10-14 14:41 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-23 10:41 [RFT PATCH v2 0/2] Fix cross migration issue with missing features: pdcm, arch-capabilities Paolo Bonzini
2025-09-23 10:41 ` [RFT PATCH v2 1/2] target/i386: add compatibility property for arch_capabilities Paolo Bonzini
2025-09-25 16:09   ` Zhao Liu
2025-09-23 10:41 ` [RFT PATCH v2 2/2] target/i386: add compatibility property for pdcm feature Paolo Bonzini
2025-09-25 16:10   ` Zhao Liu
2025-09-25 16:17 ` [RFT PATCH v2 0/2] Fix cross migration issue with missing features: pdcm, arch-capabilities Zhao Liu
2025-09-28  9:41   ` Paolo Bonzini
2025-10-08  8:47     ` Michael Tokarev
2025-10-08 13:32   ` Michael Tokarev
2025-10-10 17:40   ` Michael Tokarev
2025-10-13  7:22     ` Zhao Liu
2025-10-13 17:22       ` Michael Tokarev
2025-10-14 10:49         ` Hector Cao
2025-10-14 13:53           ` Paolo Bonzini
2025-10-14 14:40             ` Michael Tokarev
  -- strict thread matches above, loose matches on Subject: below --
2025-09-25  8:40 Hector Cao
2025-09-28  9:46 ` Paolo Bonzini
2025-09-30  8:37 Hector Cao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).