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

153.out (17743B)


      1QA output created by 153
      2== readonly=off,force-share=on should be rejected ==
      3QEMU_PROG: -drive if=none,file=null-co://,readonly=off,force-share=on: force-share=on can only be used with read-only images
      4
      5== Creating base image ==
      6Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=33554432
      7
      8== Creating test image ==
      9Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=33554432 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=IMGFMT
     10
     11== Launching QEMU, opts: '' ==
     12
     13== Launching another QEMU, opts: '' ==
     14QEMU_PROG: -drive file=TEST_DIR/t.qcow2,if=none,: Failed to get "write" lock
     15Is another process using the image [TEST_DIR/t.qcow2]?
     16
     17== Launching another QEMU, opts: 'read-only=on' ==
     18QEMU_PROG: -drive file=TEST_DIR/t.qcow2,if=none,read-only=on: Failed to get shared "write" lock
     19Is another process using the image [TEST_DIR/t.qcow2]?
     20
     21== Launching another QEMU, opts: 'read-only=on,force-share=on' ==
     22
     23== Running utility commands  ==
     24
     25_qemu_io_wrapper -c read 0 512 TEST_DIR/t.qcow2
     26qemu-io: can't open device TEST_DIR/t.qcow2: Failed to get "write" lock
     27Is another process using the image [TEST_DIR/t.qcow2]?
     28
     29_qemu_io_wrapper -r -c read 0 512 TEST_DIR/t.qcow2
     30qemu-io: can't open device TEST_DIR/t.qcow2: Failed to get shared "write" lock
     31Is another process using the image [TEST_DIR/t.qcow2]?
     32
     33_qemu_io_wrapper -c open  TEST_DIR/t.qcow2 -c read 0 512
     34qemu-io: can't open device TEST_DIR/t.qcow2: Failed to get "write" lock
     35Is another process using the image [TEST_DIR/t.qcow2]?
     36no file open, try 'help open'
     37
     38_qemu_io_wrapper -c open -r  TEST_DIR/t.qcow2 -c read 0 512
     39qemu-io: can't open device TEST_DIR/t.qcow2: Failed to get shared "write" lock
     40Is another process using the image [TEST_DIR/t.qcow2]?
     41no file open, try 'help open'
     42
     43_qemu_img_wrapper info TEST_DIR/t.qcow2
     44qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get shared "write" lock
     45Is another process using the image [TEST_DIR/t.qcow2]?
     46
     47_qemu_img_wrapper check TEST_DIR/t.qcow2
     48qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get shared "write" lock
     49Is another process using the image [TEST_DIR/t.qcow2]?
     50
     51_qemu_img_wrapper compare TEST_DIR/t.qcow2 TEST_DIR/t.qcow2
     52qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get shared "write" lock
     53Is another process using the image [TEST_DIR/t.qcow2]?
     54
     55_qemu_img_wrapper map TEST_DIR/t.qcow2
     56qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get shared "write" lock
     57Is another process using the image [TEST_DIR/t.qcow2]?
     58
     59_qemu_img_wrapper amend -o size=32M TEST_DIR/t.qcow2
     60qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
     61Is another process using the image [TEST_DIR/t.qcow2]?
     62
     63_qemu_img_wrapper commit TEST_DIR/t.qcow2
     64qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
     65Is another process using the image [TEST_DIR/t.qcow2]?
     66
     67_qemu_img_wrapper resize TEST_DIR/t.qcow2 32M
     68qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
     69Is another process using the image [TEST_DIR/t.qcow2]?
     70
     71_qemu_img_wrapper rebase TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base -F qcow2
     72qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
     73Is another process using the image [TEST_DIR/t.qcow2]?
     74
     75_qemu_img_wrapper snapshot -l TEST_DIR/t.qcow2
     76qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get shared "write" lock
     77Is another process using the image [TEST_DIR/t.qcow2]?
     78
     79_qemu_img_wrapper convert TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.convert
     80qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get shared "write" lock
     81Is another process using the image [TEST_DIR/t.qcow2]?
     82
     83_qemu_img_wrapper dd if=TEST_DIR/t.qcow2 of=TEST_DIR/t.qcow2.convert bs=512 count=1
     84qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get shared "write" lock
     85Is another process using the image [TEST_DIR/t.qcow2]?
     86
     87_qemu_img_wrapper bench -c 1 TEST_DIR/t.qcow2
     88qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get shared "write" lock
     89Is another process using the image [TEST_DIR/t.qcow2]?
     90
     91_qemu_img_wrapper bench -w -c 1 TEST_DIR/t.qcow2
     92qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
     93Is another process using the image [TEST_DIR/t.qcow2]?
     94
     95_qemu_img_wrapper create -f qcow2 TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base -F qcow2
     96qemu-img: TEST_DIR/t.qcow2: Failed to get "write" lock
     97Is another process using the image [TEST_DIR/t.qcow2]?
     98file format: IMGFMT
     99backing file format: IMGFMT
    100
    101== Running utility commands -U ==
    102
    103_qemu_io_wrapper -U -c read 0 512 TEST_DIR/t.qcow2
    104qemu-io: can't open device TEST_DIR/t.qcow2: force-share=on can only be used with read-only images
    105
    106_qemu_io_wrapper -U -r -c read 0 512 TEST_DIR/t.qcow2
    107
    108_qemu_io_wrapper -c open -U TEST_DIR/t.qcow2 -c read 0 512
    109qemu-io: can't open device TEST_DIR/t.qcow2: force-share=on can only be used with read-only images
    110no file open, try 'help open'
    111
    112_qemu_io_wrapper -c open -r -U TEST_DIR/t.qcow2 -c read 0 512
    113
    114_qemu_img_wrapper info -U TEST_DIR/t.qcow2
    115
    116_qemu_img_wrapper check -U TEST_DIR/t.qcow2
    117
    118_qemu_img_wrapper compare -U TEST_DIR/t.qcow2 TEST_DIR/t.qcow2
    119
    120_qemu_img_wrapper map -U TEST_DIR/t.qcow2
    121
    122_qemu_img_wrapper amend -o size=32M -U TEST_DIR/t.qcow2
    123qemu-img: unrecognized option '-U'
    124Try 'qemu-img --help' for more information
    125
    126_qemu_img_wrapper commit -U TEST_DIR/t.qcow2
    127qemu-img: unrecognized option '-U'
    128Try 'qemu-img --help' for more information
    129
    130_qemu_img_wrapper resize -U TEST_DIR/t.qcow2 32M
    131qemu-img: unrecognized option '-U'
    132Try 'qemu-img --help' for more information
    133
    134_qemu_img_wrapper rebase -U TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base -F qcow2
    135qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
    136Is another process using the image [TEST_DIR/t.qcow2]?
    137
    138_qemu_img_wrapper snapshot -l -U TEST_DIR/t.qcow2
    139
    140_qemu_img_wrapper convert -U TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.convert
    141
    142_qemu_img_wrapper dd -U if=TEST_DIR/t.qcow2 of=TEST_DIR/t.qcow2.convert bs=512 count=1
    143
    144_qemu_img_wrapper bench -U -c 1 TEST_DIR/t.qcow2
    145
    146_qemu_img_wrapper bench -U -w -c 1 TEST_DIR/t.qcow2
    147qemu-img: Could not open 'TEST_DIR/t.qcow2': force-share=on can only be used with read-only images
    148{ 'execute': 'quit' }
    149
    150Round done
    151
    152== Creating base image ==
    153Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=33554432
    154
    155== Creating test image ==
    156Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=33554432 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=IMGFMT
    157
    158== Launching QEMU, opts: 'read-only=on' ==
    159
    160== Launching another QEMU, opts: '' ==
    161QEMU_PROG: -drive file=TEST_DIR/t.qcow2,if=none,: Failed to get "write" lock
    162Is another process using the image [TEST_DIR/t.qcow2]?
    163
    164== Launching another QEMU, opts: 'read-only=on' ==
    165
    166== Launching another QEMU, opts: 'read-only=on,force-share=on' ==
    167
    168== Running utility commands  ==
    169
    170_qemu_io_wrapper -c read 0 512 TEST_DIR/t.qcow2
    171qemu-io: can't open device TEST_DIR/t.qcow2: Failed to get "write" lock
    172Is another process using the image [TEST_DIR/t.qcow2]?
    173
    174_qemu_io_wrapper -r -c read 0 512 TEST_DIR/t.qcow2
    175
    176_qemu_io_wrapper -c open  TEST_DIR/t.qcow2 -c read 0 512
    177qemu-io: can't open device TEST_DIR/t.qcow2: Failed to get "write" lock
    178Is another process using the image [TEST_DIR/t.qcow2]?
    179no file open, try 'help open'
    180
    181_qemu_io_wrapper -c open -r  TEST_DIR/t.qcow2 -c read 0 512
    182
    183_qemu_img_wrapper info TEST_DIR/t.qcow2
    184
    185_qemu_img_wrapper check TEST_DIR/t.qcow2
    186
    187_qemu_img_wrapper compare TEST_DIR/t.qcow2 TEST_DIR/t.qcow2
    188
    189_qemu_img_wrapper map TEST_DIR/t.qcow2
    190
    191_qemu_img_wrapper amend -o size=32M TEST_DIR/t.qcow2
    192qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
    193Is another process using the image [TEST_DIR/t.qcow2]?
    194
    195_qemu_img_wrapper commit TEST_DIR/t.qcow2
    196qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
    197Is another process using the image [TEST_DIR/t.qcow2]?
    198
    199_qemu_img_wrapper resize TEST_DIR/t.qcow2 32M
    200qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
    201Is another process using the image [TEST_DIR/t.qcow2]?
    202
    203_qemu_img_wrapper rebase TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base -F qcow2
    204qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
    205Is another process using the image [TEST_DIR/t.qcow2]?
    206
    207_qemu_img_wrapper snapshot -l TEST_DIR/t.qcow2
    208
    209_qemu_img_wrapper convert TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.convert
    210
    211_qemu_img_wrapper dd if=TEST_DIR/t.qcow2 of=TEST_DIR/t.qcow2.convert bs=512 count=1
    212
    213_qemu_img_wrapper bench -c 1 TEST_DIR/t.qcow2
    214
    215_qemu_img_wrapper bench -w -c 1 TEST_DIR/t.qcow2
    216qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
    217Is another process using the image [TEST_DIR/t.qcow2]?
    218
    219_qemu_img_wrapper create -f qcow2 TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base -F qcow2
    220qemu-img: TEST_DIR/t.qcow2: Failed to get "write" lock
    221Is another process using the image [TEST_DIR/t.qcow2]?
    222file format: IMGFMT
    223backing file format: IMGFMT
    224
    225== Running utility commands -U ==
    226
    227_qemu_io_wrapper -U -c read 0 512 TEST_DIR/t.qcow2
    228qemu-io: can't open device TEST_DIR/t.qcow2: force-share=on can only be used with read-only images
    229
    230_qemu_io_wrapper -U -r -c read 0 512 TEST_DIR/t.qcow2
    231
    232_qemu_io_wrapper -c open -U TEST_DIR/t.qcow2 -c read 0 512
    233qemu-io: can't open device TEST_DIR/t.qcow2: force-share=on can only be used with read-only images
    234no file open, try 'help open'
    235
    236_qemu_io_wrapper -c open -r -U TEST_DIR/t.qcow2 -c read 0 512
    237
    238_qemu_img_wrapper info -U TEST_DIR/t.qcow2
    239
    240_qemu_img_wrapper check -U TEST_DIR/t.qcow2
    241
    242_qemu_img_wrapper compare -U TEST_DIR/t.qcow2 TEST_DIR/t.qcow2
    243
    244_qemu_img_wrapper map -U TEST_DIR/t.qcow2
    245
    246_qemu_img_wrapper amend -o size=32M -U TEST_DIR/t.qcow2
    247qemu-img: unrecognized option '-U'
    248Try 'qemu-img --help' for more information
    249
    250_qemu_img_wrapper commit -U TEST_DIR/t.qcow2
    251qemu-img: unrecognized option '-U'
    252Try 'qemu-img --help' for more information
    253
    254_qemu_img_wrapper resize -U TEST_DIR/t.qcow2 32M
    255qemu-img: unrecognized option '-U'
    256Try 'qemu-img --help' for more information
    257
    258_qemu_img_wrapper rebase -U TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base -F qcow2
    259qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
    260Is another process using the image [TEST_DIR/t.qcow2]?
    261
    262_qemu_img_wrapper snapshot -l -U TEST_DIR/t.qcow2
    263
    264_qemu_img_wrapper convert -U TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.convert
    265
    266_qemu_img_wrapper dd -U if=TEST_DIR/t.qcow2 of=TEST_DIR/t.qcow2.convert bs=512 count=1
    267
    268_qemu_img_wrapper bench -U -c 1 TEST_DIR/t.qcow2
    269
    270_qemu_img_wrapper bench -U -w -c 1 TEST_DIR/t.qcow2
    271qemu-img: Could not open 'TEST_DIR/t.qcow2': force-share=on can only be used with read-only images
    272{ 'execute': 'quit' }
    273
    274Round done
    275
    276== Creating base image ==
    277Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=33554432
    278
    279== Creating test image ==
    280Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=33554432 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=IMGFMT
    281
    282== Launching QEMU, opts: 'read-only=on,force-share=on' ==
    283
    284== Launching another QEMU, opts: '' ==
    285
    286== Launching another QEMU, opts: 'read-only=on' ==
    287
    288== Launching another QEMU, opts: 'read-only=on,force-share=on' ==
    289
    290== Running utility commands  ==
    291
    292_qemu_io_wrapper -c read 0 512 TEST_DIR/t.qcow2
    293
    294_qemu_io_wrapper -r -c read 0 512 TEST_DIR/t.qcow2
    295
    296_qemu_io_wrapper -c open  TEST_DIR/t.qcow2 -c read 0 512
    297
    298_qemu_io_wrapper -c open -r  TEST_DIR/t.qcow2 -c read 0 512
    299
    300_qemu_img_wrapper info TEST_DIR/t.qcow2
    301
    302_qemu_img_wrapper check TEST_DIR/t.qcow2
    303
    304_qemu_img_wrapper compare TEST_DIR/t.qcow2 TEST_DIR/t.qcow2
    305
    306_qemu_img_wrapper map TEST_DIR/t.qcow2
    307
    308_qemu_img_wrapper amend -o size=32M TEST_DIR/t.qcow2
    309
    310_qemu_img_wrapper commit TEST_DIR/t.qcow2
    311
    312_qemu_img_wrapper resize TEST_DIR/t.qcow2 32M
    313
    314_qemu_img_wrapper rebase TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base -F qcow2
    315
    316_qemu_img_wrapper snapshot -l TEST_DIR/t.qcow2
    317
    318_qemu_img_wrapper convert TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.convert
    319
    320_qemu_img_wrapper dd if=TEST_DIR/t.qcow2 of=TEST_DIR/t.qcow2.convert bs=512 count=1
    321
    322_qemu_img_wrapper bench -c 1 TEST_DIR/t.qcow2
    323
    324_qemu_img_wrapper bench -w -c 1 TEST_DIR/t.qcow2
    325
    326_qemu_img_wrapper create -f qcow2 TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base -F qcow2
    327file format: IMGFMT
    328backing file format: IMGFMT
    329
    330== Running utility commands -U ==
    331
    332_qemu_io_wrapper -U -c read 0 512 TEST_DIR/t.qcow2
    333qemu-io: can't open device TEST_DIR/t.qcow2: force-share=on can only be used with read-only images
    334
    335_qemu_io_wrapper -U -r -c read 0 512 TEST_DIR/t.qcow2
    336
    337_qemu_io_wrapper -c open -U TEST_DIR/t.qcow2 -c read 0 512
    338qemu-io: can't open device TEST_DIR/t.qcow2: force-share=on can only be used with read-only images
    339no file open, try 'help open'
    340
    341_qemu_io_wrapper -c open -r -U TEST_DIR/t.qcow2 -c read 0 512
    342
    343_qemu_img_wrapper info -U TEST_DIR/t.qcow2
    344
    345_qemu_img_wrapper check -U TEST_DIR/t.qcow2
    346
    347_qemu_img_wrapper compare -U TEST_DIR/t.qcow2 TEST_DIR/t.qcow2
    348
    349_qemu_img_wrapper map -U TEST_DIR/t.qcow2
    350
    351_qemu_img_wrapper amend -o size=32M -U TEST_DIR/t.qcow2
    352qemu-img: unrecognized option '-U'
    353Try 'qemu-img --help' for more information
    354
    355_qemu_img_wrapper commit -U TEST_DIR/t.qcow2
    356qemu-img: unrecognized option '-U'
    357Try 'qemu-img --help' for more information
    358
    359_qemu_img_wrapper resize -U TEST_DIR/t.qcow2 32M
    360qemu-img: unrecognized option '-U'
    361Try 'qemu-img --help' for more information
    362
    363_qemu_img_wrapper rebase -U TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base -F qcow2
    364
    365_qemu_img_wrapper snapshot -l -U TEST_DIR/t.qcow2
    366
    367_qemu_img_wrapper convert -U TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.convert
    368
    369_qemu_img_wrapper dd -U if=TEST_DIR/t.qcow2 of=TEST_DIR/t.qcow2.convert bs=512 count=1
    370
    371_qemu_img_wrapper bench -U -c 1 TEST_DIR/t.qcow2
    372
    373_qemu_img_wrapper bench -U -w -c 1 TEST_DIR/t.qcow2
    374qemu-img: Could not open 'TEST_DIR/t.qcow2': force-share=on can only be used with read-only images
    375{ 'execute': 'quit' }
    376
    377Round done
    378
    379== Two devices with the same image (read-only=off - read-only=off) ==
    380QEMU_PROG: -drive if=none,file=TEST_DIR/t.qcow2,read-only=off: Failed to get "write" lock
    381Is another process using the image [TEST_DIR/t.qcow2]?
    382
    383== Two devices with the same image (read-only=off - read-only=on) ==
    384QEMU_PROG: -drive if=none,file=TEST_DIR/t.qcow2,read-only=on: Failed to get shared "write" lock
    385Is another process using the image [TEST_DIR/t.qcow2]?
    386
    387== Two devices with the same image (read-only=off - read-only=on,force-share=on) ==
    388
    389== Two devices with the same image (read-only=on - read-only=off) ==
    390QEMU_PROG: -drive if=none,file=TEST_DIR/t.qcow2,read-only=off: Failed to get "write" lock
    391Is another process using the image [TEST_DIR/t.qcow2]?
    392
    393== Two devices with the same image (read-only=on - read-only=on) ==
    394
    395== Two devices with the same image (read-only=on - read-only=on,force-share=on) ==
    396
    397== Two devices with the same image (read-only=on,force-share=on - read-only=off) ==
    398
    399== Two devices with the same image (read-only=on,force-share=on - read-only=on) ==
    400
    401== Two devices with the same image (read-only=on,force-share=on - read-only=on,force-share=on) ==
    402
    403== Creating TEST_DIR/t.qcow2.[abc] ==
    404Formatting 'TEST_DIR/t.IMGFMT.a', fmt=IMGFMT size=33554432 backing_file=TEST_DIR/t.IMGFMT backing_fmt=IMGFMT
    405Formatting 'TEST_DIR/t.IMGFMT.b', fmt=IMGFMT size=33554432 backing_file=TEST_DIR/t.IMGFMT backing_fmt=IMGFMT
    406Formatting 'TEST_DIR/t.IMGFMT.c', fmt=IMGFMT size=33554432 backing_file=TEST_DIR/t.IMGFMT.b backing_fmt=IMGFMT
    407
    408== Two devices sharing the same file in backing chain ==
    409
    410== Backing image also as an active device ==
    411QEMU_PROG: -drive if=none,file=TEST_DIR/t.qcow2: Failed to get "write" lock
    412Is another process using the image [TEST_DIR/t.qcow2]?
    413
    414== Backing image also as an active device (ro) ==
    415
    416== Symbolic link ==
    417QEMU_PROG: -drive if=none,file=TEST_DIR/t.qcow2: Failed to get "write" lock
    418Is another process using the image [TEST_DIR/t.qcow2]?
    419
    420== Active commit to intermediate layer should work when base in use ==
    421{ 'execute': 'qmp_capabilities' }
    422{"return": {}}
    423
    424_qemu_img_wrapper commit -b TEST_DIR/t.qcow2.b TEST_DIR/t.qcow2.c
    425{ 'execute': 'qmp_capabilities' }
    426{"return": {}}
    427Adding drive
    428{ 'execute': 'human-monitor-command',
    429       'arguments': { 'command-line': 'drive_add 0 if=none,id=d0,file=TEST_DIR/t.IMGFMT' } }
    430{"return": "OKrn"}
    431
    432_qemu_io_wrapper TEST_DIR/t.qcow2 -c write 0 512
    433qemu-io: can't open device TEST_DIR/t.qcow2: Failed to get "write" lock
    434Is another process using the image [TEST_DIR/t.qcow2]?
    435Creating overlay with qemu-img when the guest is running should be allowed
    436
    437_qemu_img_wrapper create -f qcow2 -b TEST_DIR/t.qcow2 -F qcow2 TEST_DIR/t.qcow2.overlay
    438== Closing an image should unlock it ==
    439{ 'execute': 'human-monitor-command',
    440       'arguments': { 'command-line': 'drive_del d0' } }
    441{"return": ""}
    442
    443_qemu_io_wrapper TEST_DIR/t.qcow2 -c write 0 512
    444Adding two and closing one
    445{ 'execute': 'human-monitor-command',
    446           'arguments': { 'command-line': 'drive_add 0 if=none,id=d0,file=TEST_DIR/t.IMGFMT,readonly=on' } }
    447{"return": "OKrn"}
    448{ 'execute': 'human-monitor-command',
    449           'arguments': { 'command-line': 'drive_add 0 if=none,id=d1,file=TEST_DIR/t.IMGFMT,readonly=on' } }
    450{"return": "OKrn"}
    451
    452_qemu_img_wrapper info TEST_DIR/t.qcow2
    453{ 'execute': 'human-monitor-command',
    454       'arguments': { 'command-line': 'drive_del d0' } }
    455{"return": ""}
    456
    457_qemu_io_wrapper TEST_DIR/t.qcow2 -c write 0 512
    458qemu-io: can't open device TEST_DIR/t.qcow2: Failed to get "write" lock
    459Is another process using the image [TEST_DIR/t.qcow2]?
    460Closing the other
    461{ 'execute': 'human-monitor-command',
    462       'arguments': { 'command-line': 'drive_del d1' } }
    463{"return": ""}
    464
    465_qemu_io_wrapper TEST_DIR/t.qcow2 -c write 0 512
    466
    467== Detecting -U and force-share conflicts ==
    468
    469No conflict:
    470image: null-co://
    471file format: null-co
    472virtual size: 1 GiB (1073741824 bytes)
    473disk size: 0 B
    474
    475Conflict:
    476qemu-img: --force-share/-U conflicts with image options
    477
    478No conflict:
    479
    480Conflict:
    481qemu-io: -U conflicts with image options
    482*** done