1. 08 10月, 2018 7 次提交
    • D
      target/arm: fix code comments error · c8a44709
      Dongjiu Geng 提交于
      The parameter of kvm_arm_init_cpreg_list() is ARMCPU instead of
      CPUState, so correct the note to make it match the code.
      Signed-off-by: NDongjiu Geng <gengdongjiu@huawei.com>
      Message-id: 1538069046-5757-1-git-send-email-gengdongjiu@huawei.com
      Reviewed-by: NPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      c8a44709
    • P
      Merge remote-tracking branch 'remotes/rth/tags/pull-fpu-20181005' into staging · 079911cb
      Peter Maydell 提交于
      Testing infrastructure for softfpu (not run by default).
      Drop countLeadingZeros.
      Fix div_floats.
      Add udiv_qrnnd specializations for x86_64, s390x, ppc64 hosts.
      
      # gpg: Signature made Fri 05 Oct 2018 19:00:09 BST
      # gpg:                using RSA key 64DF38E8AF7E215F
      # gpg: Good signature from "Richard Henderson <richard.henderson@linaro.org>"
      # Primary key fingerprint: 7A48 1E78 868B 4DB6 A85A  05C0 64DF 38E8 AF7E 215F
      
      * remotes/rth/tags/pull-fpu-20181005:
        softfloat: Specialize udiv_qrnnd for ppc64
        softfloat: Specialize udiv_qrnnd for s390x
        softfloat: Specialize udiv_qrnnd for x86_64
        softfloat: Fix division
        softfloat: Replace countLeadingZeros32/64 with clz32/64
        tests/fp/fp-test: add floating point tests
        gitmodules: add berkeley's softfloat + testfloat version 3
        softfloat: remove float64_trunc_to_int
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      079911cb
    • P
      Merge remote-tracking branch 'remotes/thibault/tags/samuel-thibault' into staging · bb94c119
      Peter Maydell 提交于
      slirp updates
      
      Andrew Oates (1):
        slirp: fix ICMP handling on macOS hosts
      
      Gavin Grant (1):
        slirp: Propagate host TCP RST packet to the guest after socket
          disconnected
      
      Peter Maydell (1):
        slirp: document mbuf pointers and sizes
      
      # gpg: Signature made Sun 07 Oct 2018 19:04:13 BST
      # gpg:                using RSA key E3F65A9E9560DB4C
      # gpg: Good signature from "Samuel Thibault <samuel.thibault@aquilenet.fr>"
      # gpg:                 aka "Samuel Thibault <sthibault@debian.org>"
      # gpg:                 aka "Samuel Thibault <samuel.thibault@gnu.org>"
      # gpg:                 aka "Samuel Thibault <samuel.thibault@inria.fr>"
      # gpg:                 aka "Samuel Thibault <samuel.thibault@labri.fr>"
      # gpg:                 aka "Samuel Thibault <samuel.thibault@ens-lyon.org>"
      # gpg:                 aka "Samuel Thibault <samuel.thibault@u-bordeaux.fr>"
      # 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: 900C B024 B679 31D4 0F82  304B D017 8C76 7D06 9EE6
      #      Subkey fingerprint: 33FA 7B64 6195 01F8 CE9C  8F97 E3F6 5A9E 9560 DB4C
      
      * remotes/thibault/tags/samuel-thibault:
        slirp: Propagate host TCP RST packet to the guest after socket disconnected
        slirp: fix ICMP handling on macOS hosts
        slirp: document mbuf pointers and sizes
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      bb94c119
    • P
      Merge remote-tracking branch 'remotes/elmarco/tags/option-pull-request' into staging · df51a005
      Peter Maydell 提交于
      CLI help improvements
      
      PULLv2:
       - fix uninitialized "seentype" variable in qom-test
      
      # gpg: Signature made Fri 05 Oct 2018 13:28:21 BST
      # gpg:                using RSA key DAE8E10975969CE5
      # gpg: Good signature from "Marc-André Lureau <marcandre.lureau@redhat.com>"
      # gpg:                 aka "Marc-André Lureau <marcandre.lureau@gmail.com>"
      # Primary key fingerprint: 87A9 BD93 3F87 C606 D276  F62D DAE8 E109 7596 9CE5
      
      * remotes/elmarco/tags/option-pull-request:
        vl: list user creatable properties when 'help' is argument
        hostmem: add some properties description
        vl: handle -object help
        tests/qom-proplist: check class properties iterator
        tests/qom-proplist: check properties are not listed multiple times
        tests/qom-proplist: check duplicate "bv" property registration failed
        qom/object: register 'type' property as class property
        qom/object: fix iterating properties over a class
        qemu-option: improve qemu_opts_print_help() output
        qemu-option: add help fallback to print the list of options
        cutils: add qemu_pstrcmp0()
        qdev-monitor: print help to stdout
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      df51a005
    • G
      slirp: Propagate host TCP RST packet to the guest after socket disconnected · 93a972f8
      Gavin Grant 提交于
      Commit 27d92ebc handled the case where the TCP
      connection is abruptly closed via a RST packet, by checking for the ECONNRESET
      errno. However it does not consider the case where the connection has been
      half-closed by the host (FIN/ACK), then the host socket is disconnected. For
      example, if the host application calls close() on the socket, then the
      application exits.
      
      In this case, the socket still exists due to the file descriptor in SLIRP, but
      it is disconnected. recv() does not indicate an error since an orderly socket
      close has previously occurred. The socket will then be stuck in FIN_WAIT_2,
      until the peer sends FIN/ACK or a timeout occurs. Instead we can send a RST
      to the peer and transition to the CLOSED state.
      Signed-off-by: NGavin Grant <gavingrant@protonmail.com>
      Signed-off-by: NSamuel Thibault <samuel.thibault@ens-lyon.org>
      93a972f8
    • A
      slirp: fix ICMP handling on macOS hosts · 3d090aef
      Andrew Oates 提交于
      On Linux, SOCK_DGRAM+IPPROTO_ICMP sockets give only the ICMP packet when
      read from.  On macOS, however, the socket acts like a SOCK_RAW socket
      and includes the IP header as well.
      
      This change strips the extra IP header from the received packet on macOS
      before sending it to the guest.  SOCK_DGRAM ICMP sockets aren't
      supported on other BSDs, but we enable this behavior for them as well to
      treat the sockets the same as raw sockets.
      Signed-off-by: NAndrew Oates <aoates@google.com>
      Signed-off-by: NSamuel Thibault <samuel.thibault@ens-lyon.org>
      3d090aef
    • P
      slirp: document mbuf pointers and sizes · 632dd719
      Peter Maydell 提交于
      and fix confusing datasize name into gapsize in m_inc.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NSamuel Thibault <samuel.thibault@ens-lyon.org>
      632dd719
  2. 06 10月, 2018 10 次提交
  3. 05 10月, 2018 20 次提交
  4. 04 10月, 2018 3 次提交
    • D
      nbd: fix NBD_FLAG_SEND_CACHE value · df91328a
      Denis V. Lunev 提交于
      Commit bc37b06a added NBD_CMD_CACHE support, but used the wrong value
      for NBD_FLAG_SEND_CACHE flag for negotiation. That commit picked bit 8,
      which had already been assigned by the NBD specification to mean
      NBD_FLAG_CAN_MULTI_CONN, and which was already implemented in the
      Linux kernel as a part of stable userspace-kernel API since 4.10:
      
      "bit 8, NBD_FLAG_CAN_MULTI_CONN: Indicates that the server operates
      entirely without cache, or that the cache it uses is shared among all
      connections to the given device. In particular, if this flag is
      present, then the effects of NBD_CMD_FLUSH and NBD_CMD_FLAG_FUA
      MUST be visible across all connections when the server sends its reply
      to that command to the client. In the absense of this flag, clients
      SHOULD NOT multiplex their commands over more than one connection to
      the export.
      ...
      bit 10, NBD_FLAG_SEND_CACHE: documents that the server understands
      NBD_CMD_CACHE; however, note that server implementations exist
      which support the command without advertising this bit, and
      conversely that this bit does not guarantee that the command will
      succeed or have an impact."
      
      Consequences:
      - a client trying to use NBD_CMD_CACHE per the NBD spec will not
      see the feature as available from a qemu 3.0 server (not fatal,
      clients already have to be prepared for caching to not exist)
      - a client accidentally coded to the qemu 3.0 bit value instead
      of following the spec may interpret NBD_CMD_CACHE as being available
      when it is not (probably not fatal, the spec says the server should
      gracefully fail unknown commands, and that clients of NBD_CMD_CACHE
      should be prepared for failure even when the feature is advertised);
      such clients are unlikely (perhaps only in unreleased Virtuozzo code),
      and will disappear over time
      - a client prepared to use multiple connections based on
      NBD_FLAG_CAN_MULTI_CONN may cause data corruption when it assumes
      that caching is consistent when in reality qemu 3.0 did not have
      a consistent cache. Partially mitigated by using read-only
      connections (where nothing needs to be flushed, so caching is
      indeed consistent) or when using qemu-nbd with the default -e 1
      (at most one client at a time); visible only when using -e 2 or
      more for a writable export.
      
      Thus the commit fixes negotiation flag in QEMU according to the
      specification.
      Signed-off-by: NDenis V. Lunev <den@openvz.org>
      CC: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
      CC: Valery Vdovin <valery.vdovin@acronis.com>
      CC: Eric Blake <eblake@redhat.com>
      CC: Paolo Bonzini <pbonzini@redhat.com>
      CC: qemu-stable@nongnu.org
      Message-Id: <20181004100313.4253-1-den@openvz.org>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      [eblake: enhance commit message, add defines for unimplemented flags]
      Signed-off-by: NEric Blake <eblake@redhat.com>
      df91328a
    • T
      hw/s390x/s390-pci-bus: Convert sysbus init function to realize function · b576d582
      Thomas Huth 提交于
      The SysBusDeviceClass->init() interface is considered as a legacy interface
      and there are currently some efforts going on to get rid of it. Thus let's
      convert the init function in the s390x code to realize() instead.
      Signed-off-by: NThomas Huth <thuth@redhat.com>
      Message-Id: <1538466491-2073-1-git-send-email-thuth@redhat.com>
      Reviewed-by: NPhilippe Mathieu-Daudé <philmd@redhat.com>
      Reviewed-by: NDavid Hildenbrand <david@redhat.com>
      Signed-off-by: NCornelia Huck <cohuck@redhat.com>
      b576d582
    • D
      s390x/tcg: refactor specification checking · 74fbae31
      David Hildenbrand 提交于
      We can fit this nicely into less LOC, without harming readability.
      Reviewed-by: NRichard Henderson <richard.henderson@linaro.org>
      Reviewed-by: NThomas Huth <thuth@redhat.com>
      Signed-off-by: NDavid Hildenbrand <david@redhat.com>
      Message-Id: <20180927130303.12236-10-david@redhat.com>
      Signed-off-by: NCornelia Huck <cohuck@redhat.com>
      74fbae31