On Mon, Nov 09, 2026 at 01:39:49PM +0100, Magnus Kulke wrote: > Currently QEMU marks a vcpu state as dirty also on merely inspectional > reads, e.g. via "info registers", which triggers a writeback to the > hypervisor. For MSRs that cause a side-effect when written to this is > undesired. > > We introduce an MshvPutState flag into the writeback logic to differentiate > "runtime" from "full" and "reset" writebacks that should occur e.g. after > a migration or startup. > > Discrete side-effectful MSRs are excluded in runtime writebacks. So far > we only mark one MSR as not runtime-safe, but probably more will be > added eventually. > > Signed-off-by: Magnus Kulke <[email protected]>
Reviewed-by: Wei Liu <[email protected]>
