1. 26 6月, 2015 29 次提交
  2. 25 6月, 2015 2 次提交
    • P
      Merge remote-tracking branch 'remotes/stefanha/tags/net-pull-request' into staging · 0a4a0312
      Peter Maydell 提交于
      # gpg: Signature made Wed Jun 24 16:37:23 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: simplify net_client_init1()
        net: drop if expression that is always true
        net: raise an error if -net type is invalid
        net: replace net_client_init1() netdev whitelist with blacklist
        net: add missing "netmap" to host_net_devices[]
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      0a4a0312
    • P
      Merge remote-tracking branch 'remotes/stefanha/tags/block-pull-request' into staging · 58e8b335
      Peter Maydell 提交于
      # gpg: Signature made Wed Jun 24 16:27:53 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/block-pull-request:
        virito-blk: drop duplicate check
        qemu-iotests: fix 051.out after qdev error message change
        iov: don't touch iov in iov_send_recv()
        raw-posix: Introduce hdev_is_sg()
        raw-posix: Use DPRINTF for DEBUG_FLOPPY
        raw-posix: DPRINTF instead of DEBUG_BLOCK_PRINT
        Fix migration in case of scsi-generic
        block: Use bdrv_is_sg() everywhere
        nvme: Fix memleak in nvme_dma_read_prp
        vvfat: add a label option
        util/hbitmap: Add an API to reset all set bits in hbitmap
        virtio-blk: Use blk_drain() to drain IO requests
        block-backend: Introduce blk_drain()
        throttle: Check current timers before updating any_timer_armed[]
        block: Let bdrv_drain_all() to call aio_poll() for each AioContext
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      58e8b335
  3. 24 6月, 2015 9 次提交
    • S
      net: simplify net_client_init1() · 1e81aba5
      Stefan Hajnoczi 提交于
      Drop the union and move the hubport creation into the !is_netdev case.
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      Reviewed-by: NThomas Huth <thuth@redhat.com>
      Message-id: 1432743412-15943-6-git-send-email-stefanha@redhat.com
      1e81aba5
    • S
      net: drop if expression that is always true · 4ef0defb
      Stefan Hajnoczi 提交于
      Both is_netdev and !is_netdev paths already check that
      net_client_init_func[opts->kind] is non-NULL so there is no need for the
      if statement.
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      Reviewed-by: NThomas Huth <thuth@redhat.com>
      Message-id: 1432743412-15943-5-git-send-email-stefanha@redhat.com
      4ef0defb
    • S
      net: raise an error if -net type is invalid · d139e9a6
      Stefan Hajnoczi 提交于
      When a -net type is used that was not compiled into the binary there
      should be an error message.
      
      Note the special case for -net none, which is a no-op.
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      Reviewed-by: NThomas Huth <thuth@redhat.com>
      Message-id: 1432743412-15943-4-git-send-email-stefanha@redhat.com
      d139e9a6
    • S
      net: replace net_client_init1() netdev whitelist with blacklist · 1322629b
      Stefan Hajnoczi 提交于
      It's cumbersome to keep the whitelist up-to-date.  New netdev backends
      should most likely be allowed so a blacklist makes more sense than a
      whitelist.
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      Reviewed-by: NThomas Huth <thuth@redhat.com>
      Message-id: 1432743412-15943-3-git-send-email-stefanha@redhat.com
      1322629b
    • S
      net: add missing "netmap" to host_net_devices[] · 027a247b
      Stefan Hajnoczi 提交于
      Although hmp-commands.hx lists "netmap" as a valid host_net_add type,
      the command rejects it because it's missing from the list.
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      Message-id: 1432743412-15943-2-git-send-email-stefanha@redhat.com
      027a247b
    • G
      virito-blk: drop duplicate check · 12048545
      Gonglei 提交于
      in_num = req->elem.in_num, and req->elem.in_num is
      checked in line 489, so the check about in_num variable
      is superflous, let's drop it.
      Signed-off-by: NGonglei <arei.gonglei@huawei.com>
      Reviewed-by: NFam Zheng <famz@redhat.com>
      Message-id: 1435138164-11728-1-git-send-email-arei.gonglei@huawei.com
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      12048545
    • S
      qemu-iotests: fix 051.out after qdev error message change · a30c4eb2
      Stefan Hajnoczi 提交于
      Commit f006cf7f ("qdev-monitor:
      Propagate errors through qdev_device_add()") dropped a meaningless error
      message.  This change in output caused qemu-iotests 051 to fail:
      
         QEMU_PROG: -device ide-drive,drive=disk: Device initialization failed.
        -QEMU_PROG: -device ide-drive,drive=disk: Device 'ide-drive' could not be initialized
      
      Update 051.out so the test passes again.
      
      Cc: Markus Armbruster <armbru@redhat.com>
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      Reviewed-by: NFam Zheng <famz@redhat.com>
      Message-id: 1435071369-30936-1-git-send-email-stefanha@redhat.com
      a30c4eb2
    • P
      Merge remote-tracking branch 'remotes/mjt/tags/pull-trivial-patches-2015-06-23' into staging · 355df305
      Peter Maydell 提交于
      trivial patches for 2015-06-23
      
      # gpg: Signature made Tue Jun 23 18:23:45 2015 BST using RSA key ID A4C3D7DB
      # gpg: Good signature from "Michael Tokarev <mjt@tls.msk.ru>"
      # gpg:                 aka "Michael Tokarev <mjt@corpit.ru>"
      # gpg:                 aka "Michael Tokarev <mjt@debian.org>"
      
      * remotes/mjt/tags/pull-trivial-patches-2015-06-23: (21 commits)
        util/qemu-sockets: improve ai_flag hints for ipv6 hosts
        hw/display/tcx.c: Fix memory leak
        hw/display/cg3.c: Fix memory leak
        Makefile: Add "make ctags"
        Makefile: Fix "make cscope TAGS"
        qemu-options: Use @itemx where appropriate
        qemu-options: Improve -global documentation
        throttle: Fix typo in the documentation of block_set_io_throttle
        hw/display/qxl-logger.c: Constify some variable
        configure: rearrange --help and consolidate enable/disable together
        libcacard: pkgconfig: tidy dependent libs
        vt82c686: QOMify
        xen_pt: QOMify
        wdt_i6300esb: QOMify
        piix4: QOMify
        piix: piix3 QOMify
        pci-assign: QOMify
        Print error when failing to load PCI config data
        Grammar: 'as to'->'as for'
        remove libdecnumber/dpd/decimal128Local.h
        ...
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      355df305
    • W
      util/qemu-sockets: improve ai_flag hints for ipv6 hosts · 3de3d698
      Wolfgang Bumiller 提交于
      *) Do not use AI_ADDRCONFIG on listening sockets, because this flag
      makes it impossible to explicitly listen on '127.0.0.1' if no global
      ipv4 address is configured additionally, making this a very
      uncomfortable option.
      *) Add AI_V4MAPPED hint for connecting sockets.
      
      If your system is globally only connected via ipv6 you often still want
      to be able to use '127.0.0.1' and 'localhost' (even if localhost doesn't
      also have an ipv6 entry).
      For example, PVE - unless explicitly asking for insecure mode - uses
      ipv4 loopback addresses with QEMU for live migrations tunneled over SSH.
      These fail to start because AI_ADDRCONFIG makes getaddrinfo refuse to
      work with '127.0.0.1'.
      
      As for the AI_V4MAPPED flag: glibc uses it by default, and providing
      non-0 flags removes it. I think it makes sense to use it.
      
      I also want to point out that glibc explicitly sidesteps POSIX standards
      when passing 0 as hints by then assuming both AI_V4MAPPED and
      AI_ADDRCONFIG (the latter being a rather weird choice IMO), while
      according to POSIX.1-2001 it should be assumed 0. (glibc considers its
      choice an improvement.)
      Since either AI_CANONNAME or AI_PASSIVE are passed in our cases, glibc's
      default flags in turn are disabled again unless explicitly added, which
      I do with this patch.
      Signed-off-by: NWolfgang Bumiller <w.bumiller@proxmox.com>
      Signed-off-by: NMichael Tokarev <mjt@tls.msk.ru>
      3de3d698