cachepc-qemu

Fork of AMDESE/qemu with changes for cachepc side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-qemu
Log | Files | Refs | Submodules | LICENSE | sfeed.txt

242.out (3948B)


      1Test 1
      2{"execute": "block-dirty-bitmap-add", "arguments": {"disabled": false, "granularity": 16384, "name": "bitmap-0", "node": "drive0", "persistent": false}}
      3{"return": {}}
      4wrote 262144/262144 bytes at offset 0
      5256 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
      6
      7qemu-img info dump:
      8
      9image: TEST_IMG
     10file format: IMGFMT
     11virtual size: 1 MiB (1048576 bytes)
     12cluster_size: 65536
     13Format specific information:
     14    compat: 1.1
     15    compression type: zlib
     16    lazy refcounts: false
     17    refcount bits: 16
     18    corrupt: false
     19    extended l2: false
     20
     21No bitmap in JSON format output
     22
     23Test 2
     24{"execute": "block-dirty-bitmap-add", "arguments": {"disabled": true, "granularity": 32768, "name": "bitmap-1", "node": "drive0", "persistent": true}}
     25{"return": {}}
     26wrote 262144/262144 bytes at offset 262144
     27256 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
     28
     29qemu-img info dump:
     30
     31image: TEST_IMG
     32file format: IMGFMT
     33virtual size: 1 MiB (1048576 bytes)
     34cluster_size: 65536
     35Format specific information:
     36    compat: 1.1
     37    compression type: zlib
     38    lazy refcounts: false
     39    bitmaps:
     40        [0]:
     41            flags:
     42            name: bitmap-1
     43            granularity: 32768
     44    refcount bits: 16
     45    corrupt: false
     46    extended l2: false
     47
     48The same bitmaps in JSON format:
     49[
     50  {
     51    "flags": [],
     52    "granularity": 32768,
     53    "name": "bitmap-1"
     54  }
     55]
     56
     57Test 3
     58{"execute": "block-dirty-bitmap-add", "arguments": {"disabled": false, "granularity": 65536, "name": "bitmap-2", "node": "drive0", "persistent": true}}
     59{"return": {}}
     60wrote 262144/262144 bytes at offset 524288
     61256 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
     62
     63qemu-img info dump:
     64
     65image: TEST_IMG
     66file format: IMGFMT
     67virtual size: 1 MiB (1048576 bytes)
     68cluster_size: 65536
     69Format specific information:
     70    compat: 1.1
     71    compression type: zlib
     72    lazy refcounts: false
     73    bitmaps:
     74        [0]:
     75            flags:
     76            name: bitmap-1
     77            granularity: 32768
     78        [1]:
     79            flags:
     80                [0]: auto
     81            name: bitmap-2
     82            granularity: 65536
     83    refcount bits: 16
     84    corrupt: false
     85    extended l2: false
     86
     87The same bitmaps in JSON format:
     88[
     89  {
     90    "flags": [],
     91    "granularity": 32768,
     92    "name": "bitmap-1"
     93  },
     94  {
     95    "flags": [
     96      "auto"
     97    ],
     98    "granularity": 65536,
     99    "name": "bitmap-2"
    100  }
    101]
    102
    103Test 4
    104Checking "in-use" flag...
    105qemu-img info dump:
    106
    107image: TEST_IMG
    108file format: IMGFMT
    109virtual size: 1 MiB (1048576 bytes)
    110cluster_size: 65536
    111Format specific information:
    112    compat: 1.1
    113    compression type: zlib
    114    lazy refcounts: false
    115    bitmaps:
    116        [0]:
    117            flags:
    118                [0]: in-use
    119            name: bitmap-1
    120            granularity: 32768
    121        [1]:
    122            flags:
    123                [0]: in-use
    124                [1]: auto
    125            name: bitmap-2
    126            granularity: 65536
    127    refcount bits: 16
    128    corrupt: false
    129    extended l2: false
    130
    131The same bitmaps in JSON format:
    132[
    133  {
    134    "flags": [
    135      "in-use"
    136    ],
    137    "granularity": 32768,
    138    "name": "bitmap-1"
    139  },
    140  {
    141    "flags": [
    142      "in-use",
    143      "auto"
    144    ],
    145    "granularity": 65536,
    146    "name": "bitmap-2"
    147  }
    148]
    149
    150Test 5
    151{"execute": "block-dirty-bitmap-add", "arguments": {"disabled": false, "granularity": 16384, "name": "bitmap-0", "node": "drive0", "persistent": true}}
    152{"return": {}}
    153Write an unknown bitmap flag '0x4' into a new QCOW2 image at offset 327695
    154qemu-img: Could not open 'TEST_IMG': Bitmap 'bitmap-0' doesn't satisfy the constraints
    155
    156Unset the unknown bitmap flag '0x4' in the bitmap directory entry:
    157
    158image: TEST_IMG
    159file format: IMGFMT
    160virtual size: 1 MiB (1048576 bytes)
    161cluster_size: 65536
    162Format specific information:
    163    compat: 1.1
    164    compression type: zlib
    165    lazy refcounts: false
    166    bitmaps:
    167        [0]:
    168            flags:
    169                [0]: auto
    170            name: bitmap-0
    171            granularity: 16384
    172    refcount bits: 16
    173    corrupt: false
    174    extended l2: false
    175
    176Test complete