1. 04 7月, 2018 1 次提交
  2. 03 7月, 2018 2 次提交
    • E
      iotests: New test 223 for exporting dirty bitmap over NBD · a1532a22
      Eric Blake 提交于
      Although this test is NOT a full test of image fleecing (as it
      intentionally uses just a single block device directly exported
      over NBD, rather than trying to set up a blockdev-backup job with
      multiple BDS involved), it DOES prove that qemu as a server is
      able to properly expose a dirty bitmap over NBD.
      
      When coupled with image fleecing, it is then possible for a
      third-party client to do an incremental backup by using
      qemu-img map with the x-dirty-bitmap option to learn which parts
      of the file are dirty (perhaps confusingly, they are the portions
      mapped as "data":false - which is part of the reason this is
      still in the x- experimental namespace), along with another
      normal client (perhaps 'qemu-nbd -c' to expose the server over
      /dev/nbd0 and then just use normal I/O on that block device) to
      read the dirty sections.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      Message-Id: <20180702191458.28741-3-eblake@redhat.com>
      Tested-by: NJohn Snow <jsnow@redhat.com>
      Reviewed-by: NJohn Snow <jsnow@redhat.com>
      a1532a22
    • J
      iotests: add 222 to test basic fleecing · bacebded
      John Snow 提交于
      Signed-off-by: NJohn Snow <jsnow@redhat.com>
      Message-Id: <20180702194630.9360-3-jsnow@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Signed-off-by: NEric Blake <eblake@redhat.com>
      bacebded
  3. 02 7月, 2018 2 次提交
  4. 30 6月, 2018 1 次提交
    • P
      tests: iotests: drop some stderr line · cbc4ae2d
      Peter Xu 提交于
      In my Out-Of-Band test, "check -qcow2 060" fail with this:
      
        --- /home/peterx/git/qemu/tests/qemu-iotests/060.out
        +++ /home/peterx/git/qemu/bin/tests/qemu-iotests/060.out.bad
        @@ -427,8 +427,8 @@
        QMP_VERSION
        {"return": {}}
        qcow2: Image is corrupt: L2 table offset 0x2a2a2a00 unaligned (L1
        index: 0); further non-fatal corruption events will be suppressed
        -{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "BLOCK_IMAGE_CORRUPTED", "data": {"device": "", "msg": "L2 table offset 0x2a2a2a0
        0 unaligned (L1 index: 0)", "node-name": "drive", "fatal": false}}
        read failed: Input/output error
        +{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "BLOCK_IMAGE_CORRUPTED", "data": {"device": "", "msg": "L2 table offset 0x2a2a2a0
        0 unaligned (L1 index: 0)", "node-name": "drive", "fatal": false}}
        {"return": ""}
        {"return": {}}
        {"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP},
        "event": "SHUTDOWN", "data": {"guest": false}}
      
      The order of the event and the in/out error line is swapped.  I didn't
      dig up the reason, but AFAIU what we want to verify is the event rather
      than stderr.  Let's drop the stderr line directly for this test.
      Signed-off-by: NPeter Xu <peterx@redhat.com>
      Message-Id: <20180620073223.31964-5-peterx@redhat.com>
      [Commit message touched up]
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      cbc4ae2d
  5. 29 6月, 2018 7 次提交
  6. 26 6月, 2018 1 次提交
    • P
      ahci: fix FIS I bit and PIO Setup FIS interrupt · ae79c2db
      Paolo Bonzini 提交于
      The "I" bit in PIO Setup and D2H FISes is exclusively a device concept
      and the irqstatus register in the controller does not matter.  The SATA
      spec says when it should be one; for D2H FISes in practice it is always
      set, while the PIO Setup FIS has several subcases that are documented in
      the patch.
      
      Also, the PIO Setup FIS interrupt is actually generated _after_ data
      has been received.
      
      Someone should probably spend some time reading the SATA specification and
      figuring out the more obscure fields in the PIO Setup FIS, but this is enough
      to fix SeaBIOS booting from ATAPI CD-ROMs over an AHCI controller.
      
      Fixes: 956556e1Reported-by: NGerd Hoffmann <kraxel@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      Reviewed-by: NJohn Snow <jsnow@redhat.com>
      Message-id: 20180622165159.19863-1-pbonzini@redhat.com
      [Minor edit to avoid ATAPI comment ambiguity. --js]
      Signed-off-by: NJohn Snow <jsnow@redhat.com>
      ae79c2db
  7. 22 6月, 2018 3 次提交
  8. 21 6月, 2018 23 次提交