1. 08 10月, 2018 12 次提交
    • R
      target/arm: Adjust sve_exception_el · 60eed086
      Richard Henderson 提交于
      Check for EL3 before testing CPTR_EL3.EZ.  Return 0 when the exception
      should be routed via AdvSIMDFPAccessTrap.  Mirror the structure of
      CheckSVEEnabled more closely.
      
      Fixes: 5be5e8edReviewed-by: NPeter Maydell <peter.maydell@linaro.org>
      Tested-by: NLaurent Desnogues <laurent.desnogues@gmail.com>
      Signed-off-by: NRichard Henderson <richard.henderson@linaro.org>
      Message-id: 20181005175350.30752-3-richard.henderson@linaro.org
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      60eed086
    • R
      target/arm: Define ID_AA64ZFR0_EL1 · 9516d772
      Richard Henderson 提交于
      Given that the only field defined for this new register may only
      be 0, we don't actually need to change anything except the name.
      Reviewed-by: NPeter Maydell <peter.maydell@linaro.org>
      Tested-by: NLaurent Desnogues <laurent.desnogues@gmail.com>
      Signed-off-by: NRichard Henderson <richard.henderson@linaro.org>
      Message-id: 20181005175350.30752-2-richard.henderson@linaro.org
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      9516d772
    • P
      target/arm: Don't read r4 from v8M exception stackframe twice · e5ae4d0c
      Peter Maydell 提交于
      A cut-and-paste error meant we were reading r4 from the v8M
      callee-saves exception stack frame twice. This is harmless
      since it just meant we did two memory accesses to the same
      location, but it's unnecessary. Delete it.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: NPhilippe Mathieu-Daudé <philmd@redhat.com>
      Reviewed-by: NRichard Henderson <richard.henderson@linaro.org>
      Message-id: 20181002150304.2287-1-peter.maydell@linaro.org
      e5ae4d0c
    • P
      target/arm: Correct condition for v8M callee stack push · 7b73a1ca
      Peter Maydell 提交于
      In v7m_exception_taken() we were incorrectly using a
      "LR bit EXCRET.ES is 1" check when it should be 0
      (compare the pseudocode ExceptionTaken() function).
      This meant we didn't stack the callee-saved registers
      when tailchaining from a NonSecure to a Secure exception.
      
      Cc: qemu-stable@nongnu.org
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: NRichard Henderson <richard.henderson@linaro.org>
      Message-id: 20181002145940.30931-1-peter.maydell@linaro.org
      7b73a1ca
    • P
      virt: Suppress external aborts on virt-2.10 and earlier · 846690de
      Peter Maydell 提交于
      In commit c79c0a31 we enabled emulation of external aborts
      when the guest attempts to access a physical address with no
      mapped device. In commit 4672cbd7 we suppress this for
      most legacy boards to prevent breakage of previously working
      guests, but we didn't suppress it in the 'virt' board, with
      the rationale "we know that guests won't try to prod devices
      that we don't describe in the device tree or ACPI tables". This
      is mostly true, but we've had a report of a Linux guest image
      that this did break. The problem seems to be that the guest
      is (incorrectly) configured with a DEBUG_UART_PHYS value that
      tells it there is a uart at 0x10009000 (which is true for
      vexpress but not for virt), so in early bootup the kernel
      probes this bogus address.
      
      This is a misconfigured guest, so we don't need to worry
      about it too much, but we can arrange that guests that ran
      on QEMU v2.10 (before c79c0a31) will still run on
      the "virt-2.10" board model, by suppressing external aborts
      only for that version and earlier. This seems a reasonable
      compromise: "virt-2.10" is supposed to behave the same way
      that "virt" did in the 2.10 release, and making it do that
      provides a usable workaround for guests with bugs like this.
      
      Cc: qemu-stable@nongnu.org
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Message-id: 20180925144127.31965-1-peter.maydell@linaro.org
      Reviewed-by: NPhilippe Mathieu-Daudé <philmd@redhat.com>
      846690de
    • 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 18 次提交