On 04-06-2026 08:25, Zide Chen wrote:
> From: Dapeng Mi <[email protected]>
>
> MSR_CORE_PERF_GLOBAL_OVF_CTRL and MSR_AMD64_PERF_CNTR_GLOBAL_STATUS_CLR
> are write-only MSRs and reads always return zero.
>
> Saving and restoring these MSRs is therefore unnecessary. Replace
> VMSTATE_UINT64 with VMSTATE_UNUSED in the VMStateDescription to ignore
> env.msr_global_ovf_ctrl during migration. This avoids the need to bump
> version_id and does not introduce any migration incompatibility.
>
> Cc: Dongli Zhang <[email protected]>
> Cc: Sandipan Das <[email protected]>
> Fixes: e587632c228e ("target/i386/kvm: support perfmon-v2 for reset")
> Signed-off-by: Dapeng Mi <[email protected]>
> Co-developed-by: Zide Chen <[email protected]>
> Signed-off-by: Zide Chen <[email protected]>
> ---
Reviewed-by: Sandipan Das <[email protected]>