1. 15 9月, 2016 4 次提交
    • M
      virtio-bus: Plug devices after features are negotiated · d1b4259f
      Maxime Coquelin 提交于
      Currently, devices are plugged before features are negotiated.
      If the backend doesn't support VIRTIO_F_VERSION_1, the transport
      needs to rewind some settings.
      
      This is the case for CCW, for which a post_plugged callback had
      been introduced, where max_rev field is just updated if
      VIRTIO_F_VERSION_1 is not supported by the backend.
      For PCI, implementing post_plugged would be much more
      complicated, so it needs to know whether the backend supports
      VIRTIO_F_VERSION_1 at plug time.
      
      Currently, nothing is done for PCI. Modern capabilities get
      exposed to the guest even if VIRTIO_F_VERSION_1 is not supported
      by the backend, which confuses the guest.
      
      This patch replaces existing post_plugged solution with an
      approach that fits with both transports.
      Features negotiation is performed before ->device_plugged() call.
      A pre_plugged callback is introduced so that the transports can
      set their supported features.
      
      Cc: Michael S. Tsirkin <mst@redhat.com>
      Cc: qemu-stable@nongnu.org
      Tested-by: Cornelia Huck <cornelia.huck@de.ibm.com> [ccw]
      Reviewed-by: NCornelia Huck <cornelia.huck@de.ibm.com>
      Reviewed-by: NMarcel Apfelbaum <marcel@redhat.com>
      Signed-off-by: NMaxime Coquelin <maxime.coquelin@redhat.com>
      d1b4259f
    • A
      fpu: add mechanism to check for invalid long double formats · d1eb8f2a
      Andrew Dutcher 提交于
      All operations that take a floatx80 as an operand need to have their
      inputs checked for malformed encodings. In all of these cases, use the
      function floatx80_invalid_encoding to perform the check. If an invalid
      operand is found, raise an invalid operation exception, and then return
      either NaN (for fp-typed results) or the integer indefinite value (the
      minimum representable signed integer value, for int-typed results).
      
      For the non-quiet comparison operations, this touches adjacent code in
      order to pass style checks.
      Signed-off-by: NAndrew Dutcher <andrew@andrewdutcher.com>
      Reviewed-by: NPeter Maydell <peter.maydell@linaro.org>
      Message-id: 1471392895-17324-1-git-send-email-andrew@andrewdutcher.com
      [PMM: changed "1 << 63" to "1ULL << 63" to fix compile errors]
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      d1eb8f2a
    • P
      ui/cocoa.m: Make a better about dialog · 9e8204b1
      Programmingkid 提交于
      The about dialog in QEMU on Mac OS X is very plain and unhelpful. This patch
      makes the about dialog look a lot better and have some descriptive information
      on what version of QEMU the user is running.
      Signed-off-by: NJohn Arbuckle <programmingkidx@gmail.com>
      Reviewed-by: NPeter Maydell <peter.maydell@linaro.org>
      Message-id: ED59936E-3EB2-46AB-9E33-AB26E382B884@gmail.com
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      9e8204b1
    • P
      Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging · 8212ff86
      Peter Maydell 提交于
      * minor patches here and there
      * MTTCG: lock-free TB lookup
      * SCSI: bugfixes for MPTSAS, MegaSAS, LSI53c, vmw_pvscsi
      * buffer_is_zero rewrite (except for one patch)
      * chardev: qemu_chr_fe_write checks
      * checkpatch improvement for markdown preformatted text
      * default-configs cleanups
      * atomics cleanups
      
      # gpg: Signature made Tue 13 Sep 2016 18:14:30 BST
      # gpg:                using RSA key 0xBFFBD25F78C7AE83
      # gpg: Good signature from "Paolo Bonzini <bonzini@gnu.org>"
      # gpg:                 aka "Paolo Bonzini <pbonzini@redhat.com>"
      # Primary key fingerprint: 46F5 9FBD 57D6 12E7 BFD4  E2F7 7E15 100C CD36 69B1
      #      Subkey fingerprint: F133 3857 4B66 2389 866C  7682 BFFB D25F 78C7 AE83
      
      * remotes/bonzini/tags/for-upstream: (58 commits)
        cutils: Add generic prefetch
        cutils: Add SSE4 version
        cutils: Add test for buffer_is_zero
        cutils: Remove ppc buffer zero checking
        cutils: Remove aarch64 buffer zero checking
        cutils: Rearrange buffer_is_zero acceleration
        cutils: Export only buffer_is_zero
        cutils: Remove SPLAT macro
        cutils: Move buffer_is_zero and subroutines to a new file
        ppc: do not redefine CPUPPCState
        x86/lapic: Load LAPIC state at post_load
        optionrom: do not rely on compiler's bswap optimization
        checkpatch: Fix whitespace checks for documentation code blocks
        atomics: Use __atomic_*_n() variant primitives
        atomics: Remove redundant barrier()'s
        kvm-all: drop kvm_setup_guest_memory
        i8257: Make device "i8257" unavailable with -device
        Revert "megasas: remove useless check for cmd->frame"
        char: convert qemu_chr_fe_write to qemu_chr_fe_write_all
        hw: replace most use of qemu_chr_fe_write with qemu_chr_fe_write_all
        ...
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      
       Conflicts:
      	cpus.c
      	tests/Makefile.include
      8212ff86
  2. 14 9月, 2016 36 次提交