On Tue, Sep 23, 2025 at 12:41:35PM +0200, Paolo Bonzini wrote:
> Date: Tue, 23 Sep 2025 12:41:35 +0200
> From: Paolo Bonzini <[email protected]>
> Subject: [RFT PATCH v2 1/2] target/i386: add compatibility property for
>  arch_capabilities
> X-Mailer: git-send-email 2.51.0
> 
> Prior to v10.1, if requested by user, arch-capabilities is always on
> despite the fact that CPUID advertises it to be off/unvailable.
> This causes a migration issue for VMs that are run on a machine
> without arch-capabilities and expect this feature to be present
> on the destination host with QEMU 10.1.
> 
> Add a compatibility property to restore the legacy behavior for all
> machines with version prior to 10.1.
> 
> Co-authored-by: Hector Cao <[email protected]>
> Signed-off-by: Hector Cao <[email protected]>
> Fixes: d3a24134e37 ("target/i386: do not expose ARCH_CAPABILITIES on AMD 
> CPU", 2025-07-17)
> Signed-off-by: Paolo Bonzini <[email protected]>
> ---
>  target/i386/cpu.h     |  6 ++++++
>  hw/i386/pc.c          |  1 +
>  target/i386/cpu.c     | 17 +++++++++++++++++
>  target/i386/kvm/kvm.c |  6 +-----
>  4 files changed, 25 insertions(+), 5 deletions(-)

Reviewed-by: Zhao Liu <[email protected]>


Reply via email to