qemu

FORK: QEMU emulator
git clone https://git.neptards.moe/neptards/qemu.git
Log | Files | Refs | Submodules | LICENSE

260.out (3204B)


      1 
      2 Testcase non-persistent without restart
      3 
      4 {"execute": "block-dirty-bitmap-add", "arguments": {"name": "bitmap0", "node": "drive0", "persistent": false}}
      5 {"return": {}}
      6 initial bitmap: name=bitmap0 dirty-clusters=1
      7 {"execute": "blockdev-snapshot-sync", "arguments": {"device": "drive0", "format": "qcow2", "snapshot-file": "TEST_DIR/PID-top"}}
      8 {"return": {}}
      9 check that no bitmaps are in snapshot: not found
     10 {"execute": "block-commit", "arguments": {"device": "drive0", "top": "TEST_DIR/PID-top"}}
     11 {"return": {}}
     12 {"data": {"device": "drive0", "len": 65536, "offset": 65536, "speed": 0, "type": "commit"}, "event": "BLOCK_JOB_READY", "timestamp": {"microseconds": "USECS", "seconds": "SECS"}}
     13 {"execute": "block-job-complete", "arguments": {"device": "drive0"}}
     14 {"return": {}}
     15 {"data": {"device": "drive0", "len": 65536, "offset": 65536, "speed": 0, "type": "commit"}, "event": "BLOCK_JOB_COMPLETED", "timestamp": {"microseconds": "USECS", "seconds": "SECS"}}
     16 check bitmap after commit: name=bitmap0 dirty-clusters=2
     17 check updated bitmap: name=bitmap0 dirty-clusters=3
     18 
     19 Testcase persistent without restart
     20 
     21 {"execute": "block-dirty-bitmap-add", "arguments": {"name": "bitmap0", "node": "drive0", "persistent": true}}
     22 {"return": {}}
     23 initial bitmap: name=bitmap0 dirty-clusters=1
     24 {"execute": "blockdev-snapshot-sync", "arguments": {"device": "drive0", "format": "qcow2", "snapshot-file": "TEST_DIR/PID-top"}}
     25 {"return": {}}
     26 check that no bitmaps are in snapshot: not found
     27 {"execute": "block-commit", "arguments": {"device": "drive0", "top": "TEST_DIR/PID-top"}}
     28 {"return": {}}
     29 {"data": {"device": "drive0", "len": 65536, "offset": 65536, "speed": 0, "type": "commit"}, "event": "BLOCK_JOB_READY", "timestamp": {"microseconds": "USECS", "seconds": "SECS"}}
     30 {"execute": "block-job-complete", "arguments": {"device": "drive0"}}
     31 {"return": {}}
     32 {"data": {"device": "drive0", "len": 65536, "offset": 65536, "speed": 0, "type": "commit"}, "event": "BLOCK_JOB_COMPLETED", "timestamp": {"microseconds": "USECS", "seconds": "SECS"}}
     33 check bitmap after commit: name=bitmap0 dirty-clusters=2
     34 check updated bitmap: name=bitmap0 dirty-clusters=3
     35 
     36 Testcase persistent with restart
     37 
     38 {"execute": "block-dirty-bitmap-add", "arguments": {"name": "bitmap0", "node": "drive0", "persistent": true}}
     39 {"return": {}}
     40 initial bitmap: name=bitmap0 dirty-clusters=1
     41 {"execute": "blockdev-snapshot-sync", "arguments": {"device": "drive0", "format": "qcow2", "snapshot-file": "TEST_DIR/PID-top"}}
     42 {"return": {}}
     43 check that no bitmaps are in snapshot: not found
     44 ... Restart ...
     45 {"execute": "block-commit", "arguments": {"device": "drive0", "top": "TEST_DIR/PID-top"}}
     46 {"return": {}}
     47 {"data": {"device": "drive0", "len": 65536, "offset": 65536, "speed": 0, "type": "commit"}, "event": "BLOCK_JOB_READY", "timestamp": {"microseconds": "USECS", "seconds": "SECS"}}
     48 {"execute": "block-job-complete", "arguments": {"device": "drive0"}}
     49 {"return": {}}
     50 {"data": {"device": "drive0", "len": 65536, "offset": 65536, "speed": 0, "type": "commit"}, "event": "BLOCK_JOB_COMPLETED", "timestamp": {"microseconds": "USECS", "seconds": "SECS"}}
     51 check bitmap after commit: name=bitmap0 dirty-clusters=2
     52 check updated bitmap: name=bitmap0 dirty-clusters=3