parsa-epfl/qemu

Load non-icount snapshot

Closed this issue · 5 comments

Load non-icount snapshot with icount enabled

Description

QEMU does not allow for block device snapshot made with icount disabled to be loaded when icount is enabled

Steps to Reproduce

  1. Boot any type of image
  2. save snapshot using the monitor savevm [name]
  3. quit
  4. start new QEMU instance with '-icountandloadvm [name]`

Expected Behavior

Qemu initial check when loading a checkpoint should be discarded

Additional Information

  • QEMU Version/Branch: 8.2.2, master
  • Target Architecture: arm64

@ayanchak1508 @xusine Can you either open a PR regarding this (referencing this issue) or post the patch here ??

After discussion, if the icount can be inferred from a snapshot, this should be used to decide whether icount is zeroed or not.

For documentation, @BugraEryilmaz @xusine, what side effects does it induce, if any ?

It cannot load icount-enabled snapshots that were created previously I think