1. 28 5月, 2015 5 次提交
    • J
      Add GDB qAttached support · a3919386
      Jan Kiszka 提交于
      With this patch QEMU handles qAttached request from gdb. When QEMU
      replies 1, GDB sends a "detach" command at the end of a debugging
      session otherwise GDB sends "kill".
      
      The default value for qAttached is 1 on system emulation and 0 on user
      emulation.
      
      Based on original version by Fabien Chouteau.
      Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
      Reviewed-by: NPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      a3919386
    • J
      gdbstub: Introduce an is is_query_packet helper · 4dabe747
      Jan Kiszka 提交于
      This helper supports parsing of query packets with optional extensions.
      The separator can be specified so that we can use it already for both
      qqemu.sstep[=] and qSupported[:feature].
      Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
      Reviewed-by: NPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      4dabe747
    • J
      gdbstub: Fix qOffsets packet detection · 070949f3
      Jan Kiszka 提交于
      qOffsets has no additional optional parameters. So match the complete
      string to avoid stumbling over possible future commands with identical
      prefix.
      Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
      Reviewed-by: NPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      070949f3
    • P
      Merge remote-tracking branch 'remotes/cohuck/tags/s390x-20150528' into staging · a8490473
      Peter Maydell 提交于
      A set of patches add support for vector registers on s390x.
      Notable: Floating point registers and vector registers overlap,
      so extra care is needed so that we end up with a consistent state
      in all cases.
      
      # gpg: Signature made Thu May 28 09:37:27 2015 BST using RSA key ID C6F02FAF
      # gpg: Good signature from "Cornelia Huck <huckc@linux.vnet.ibm.com>"
      # gpg:                 aka "Cornelia Huck <cornelia.huck@de.ibm.com>"
      
      * remotes/cohuck/tags/s390x-20150528:
        s390x: Enable vector processing capability
        s390x: Migrate vector registers
        s390x: Add vector registers to ELF dump
        linux/elf.h update
        s390x: Add vector registers to HMP output
        s390x: gdb updates for vector registers
        gdb-xml: Include XML for s390 vector registers
        s390x: Store Additional Status SIGP order
        s390x: Vector Register IOCTLs
        s390x: Common access to floating point registers
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      a8490473
    • P
      Merge remote-tracking branch 'remotes/stefanha/tags/net-pull-request' into staging · bc3004f0
      Peter Maydell 提交于
      # gpg: Signature made Wed May 27 11:02:55 2015 BST using RSA key ID 81AB73C8
      # gpg: Good signature from "Stefan Hajnoczi <stefanha@redhat.com>"
      # gpg:                 aka "Stefan Hajnoczi <stefanha@gmail.com>"
      
      * remotes/stefanha/tags/net-pull-request:
        net/net: Record usage status of mac address
        tap: Improve -netdev/netdev_add/-net/... tap error reporting
        tap: Finish conversion of tap_open() to Error
        tap-solaris: Convert tap_open() to Error
        tap-bsd: Convert tap_open() to Error
        tap-linux: Convert tap_open() to Error
        tap: Permit incremental conversion of tap_open() to Error
        tap: Convert launch_script() to Error
        tap: Convert net_init_tap_one() to Error
        tap: Convert tap_set_sndbuf() to Error
        tap: Improve -netdev/netdev_add/-net/... bridge error reporting
        tap: net_tap_fd_init() can't fail, drop dead error handling
        net/dump: Improve -net/host_net_add dump error reporting
        net: Improve -net nic error reporting
        net: Permit incremental conversion of init functions to Error
        net: Improve error message for -net hubport a bit
        net: Change help text to list -netdev instead of -net by default
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      bc3004f0
  2. 27 5月, 2015 27 次提交
  3. 26 5月, 2015 1 次提交
    • P
      Merge remote-tracking branch 'remotes/jnsnow/tags/ide-pull-request' into staging · 0915aed5
      Peter Maydell 提交于
      # gpg: Signature made Fri May 22 20:58:44 2015 BST using RSA key ID AAFC390E
      # gpg: Good signature from "John Snow (John Huston) <jsnow@redhat.com>"
      # gpg: WARNING: This key is not certified with sufficiently trusted signatures!
      # gpg:          It is not certain that the signature belongs to the owner.
      # Primary key fingerprint: FAEB 9711 A12C F475 812F  18F2 88A9 064D 1835 61EB
      #      Subkey fingerprint: F9B7 ABDB BCAC DF95 BE76  CBD0 7DEF 8106 AAFC 390E
      
      * remotes/jnsnow/tags/ide-pull-request:
        ahci: do not remap clb/fis unconditionally
        macio: move unaligned DMA write code into separate pmac_dma_write() function
        macio: move unaligned DMA read code into separate pmac_dma_read() function
        qtest: pre-buffer hex nibs
        libqos/ahci: Swap memread/write with bufread/write
        qtest: add memset to qtest protocol
        qtest: Add base64 encoded read/write
        qtest: allow arbitrarily long sends
        qtest/ahci: add migrate halted dma test
        qtest/ahci: add halted dma test
        qtest/ahci: add flush migrate test
        qtest/ahci: add migrate dma test
        qtest/ahci: Add migration test
        ich9/ahci: Enable Migration
        libqos: Add migration helpers
        libqos/ahci: Fix sector set method
        libqos/ahci: Add halted command helpers
        glib: remove stale compat functions
        configure: require glib 2.22
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      0915aed5
  4. 23 5月, 2015 7 次提交
    • J
      ahci: do not remap clb/fis unconditionally · cd6cb73b
      John Snow 提交于
      This continues the IOMMU fix from 2.3, where we should not attempt
      to remap the CLB or FIS RX buffers if the AHCI device is currently
      running.
      
      The same applies to migration: keep our mitts off these registers
      unless the device is supposed to be on.
      
      Does not impact backwards compatibility for the AHCI device.
      Signed-off-by: NJohn Snow <jsnow@redhat.com>
      Reviewed-by: NStefan Hajnoczi <stefanha@redhat.com>
      Message-id: 1431470173-30847-2-git-send-email-jsnow@redhat.com
      cd6cb73b
    • M
      macio: move unaligned DMA write code into separate pmac_dma_write() function · bd4214fc
      Mark Cave-Ayland 提交于
      Similarly switch the macio IDE routines over to use the new function and
      tidy-up the remaining code as required.
      
      [Maintainer edit: printf format codes adjusted for 32/64bit. --js]
      Signed-off-by: NMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
      Acked-by: NJohn Snow <jsnow@redhat.com>
      Message-id: 1425939893-14404-3-git-send-email-mark.cave-ayland@ilande.co.uk
      Signed-off-by: NJohn Snow <jsnow@redhat.com>
      bd4214fc
    • M
      macio: move unaligned DMA read code into separate pmac_dma_read() function · 4827ac1e
      Mark Cave-Ayland 提交于
      This considerably helps simplify the complexity of the macio read routines and
      by switching macio CDROM accesses to use the new code, fixes the issue with
      the CDROM device being detected intermittently by Darwin/OS X.
      
      [Maintainer edit: printf format codes adjusted for 32/64bit. --js]
      Signed-off-by: NMark Cave-Ayland <mark.cave-ayland@ailande.co.uk>
      Acked-by: NJohn Snow <jsnow@redhat.com>
      Message-id: 1425939893-14404-2-git-send-email-mark.cave-ayland@ilande.co.uk
      Signed-off-by: NJohn Snow <jsnow@redhat.com>
      4827ac1e
    • J
      qtest: pre-buffer hex nibs · 5560b85a
      John Snow 提交于
      Instead of converting each byte one-at-a-time and then sending each byte
      over the wire, use sprintf() to pre-compute all of the hex nibs into a
      single buffer, then send the entire buffer all at once.
      
      This gives a moderate speed boost to memread() and memwrite() functions.
      Signed-off-by: NJohn Snow <jsnow@redhat.com>
      Reviewed-by: NMarkus Armbruster <armbru@redhat.com>
      Message-id: 1431021095-7558-2-git-send-email-jsnow@redhat.com
      5560b85a
    • J
      libqos/ahci: Swap memread/write with bufread/write · 91d0374a
      John Snow 提交于
      Where it makes sense, use the new faster primitives.
      For generally small reads/writes such as for the PRDT
      and FIS packets, stick with the more wasteful but
      easier to debug memread/memwrite.
      
      For ahci-test (before migration tests):
      With this patch:
      real    0m3.675s
      user    0m2.582s
      sys     0m1.718s
      
      Without any qtest protocol improvements:
      real    0m14.171s
      user    0m12.072s
      sys     0m12.527s
      Signed-off-by: NJohn Snow <jsnow@redhat.com>
      Message-id: 1430864578-22072-6-git-send-email-jsnow@redhat.com
      91d0374a
    • J
      qtest: add memset to qtest protocol · 4d007963
      John Snow 提交于
      Previously, memset was just a frontend to write() and only
      stupidly sent the pattern many times across the wire.
      
      Let's not discuss who stupidly wrote it like that in the first place.
      (Hint: It was me.)
      Signed-off-by: NJohn Snow <jsnow@redhat.com>
      Message-id: 1430864578-22072-4-git-send-email-jsnow@redhat.com
      4d007963
    • J
      qtest: Add base64 encoded read/write · 7a6a740d
      John Snow 提交于
      For larger pieces of data that won't need to be debugged and
      viewing the hex nibbles is unlikely to be useful, we can encode
      data using base64 instead of encoding each byte as %02x, which
      leads to some space savings and faster reads/writes.
      
      For now, the default is left as hex nibbles in memwrite() and memread().
      For the purposes of making qtest io easier to read and debug, some
      callers may want to specify using the old encoding format for small
      patches of data where the savings from base64 wouldn't be that profound.
      
      memwrite/memread use a data encoding that takes 2x the size of the original
      buffer, but base64 uses "only" (4/3)x, so for larger buffers we can save a
      decent amount of time and space.
      Signed-off-by: NJohn Snow <jsnow@redhat.com>
      Message-id: 1430864578-22072-3-git-send-email-jsnow@redhat.com
      7a6a740d