Skip to content

Commits

Permalink
testing/generi…
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Commits on Oct 3, 2018

  1. softfloat: Fix division

    The __udiv_qrnnd primitive that we nicked from gmp requires its
    inputs to be normalized.  We were not doing that.  Because the
    inputs are nearly normalized already, finishing that is trivial.
    Inline div128to64 into its one user, because it is no longer a
    general-purpose routine.
    
    Fixes: cf07323
    Fixes: https://bugs.launchpad.net/qemu/+bug/1793119
    Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
    rth7680 authored and stsquad committed Oct 3, 2018
    Copy the full SHA
    0bc8f2e View commit details
    Browse the repository at this point in the history
  2. allow ops to start at index

    stsquad committed Oct 3, 2018
    Copy the full SHA
    7d167a1 View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    8ae1357 View commit details
    Browse the repository at this point in the history
  4. updates to test-ops.h

    stsquad committed Oct 3, 2018
    Copy the full SHA
    213c3dd View commit details
    Browse the repository at this point in the history
  5. add test-ops.h to fops deps

    stsquad committed Oct 3, 2018
    Copy the full SHA
    7cb055b View commit details
    Browse the repository at this point in the history
  6. fops: add side effects

    stsquad committed Oct 3, 2018
    Copy the full SHA
    9b362dc View commit details
    Browse the repository at this point in the history
  7. tests/tcg: add aarch64 fops test

    Based on z2.c test from rth
    
    Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
    stsquad committed Oct 3, 2018
    Copy the full SHA
    e090627 View commit details
    Browse the repository at this point in the history
  8. Copy the full SHA
    a79e0f0 View commit details
    Browse the repository at this point in the history
  9. tests/tcg: add handling of float number to test-ops

    Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
    stsquad committed Oct 3, 2018
    Copy the full SHA
    3f57a61 View commit details
    Browse the repository at this point in the history
  10. tests/tcg: add concept of result type to test-ops

    Not all test results will be the same size as the inputs. Define this
    information as part of the test description.
    
    Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
    stsquad committed Oct 3, 2018
    Copy the full SHA
    2b562e2 View commit details
    Browse the repository at this point in the history
  11. tests/tcg: move op-test helpers into test-ops.h

    We are going to re-use these helper functions in other tests.
    
    Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
    stsquad committed Oct 3, 2018
    Copy the full SHA
    63952a6 View commit details
    Browse the repository at this point in the history
  12. tests/tcg: add two op test to test-op

    Expand the runner to support a simple two-op test.
    
    Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
    stsquad committed Oct 3, 2018
    Copy the full SHA
    ccebaa6 View commit details
    Browse the repository at this point in the history
  13. tests/tcg: add a simple op-test to multiarch

    TCG tests typically want to test a range of inputs against a known
    fragment of code. To do this with a lowest amount of boilerplate this
    test introduces some test-ops.h structures which are intended to be
    used for multiple tests. The multiarch op-test is an example using
    this framework and can be extended with additional tests that can be
    written in pure C. Additional architecture specific tests should be
    added there.
    
    Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
    stsquad committed Oct 3, 2018
    Copy the full SHA
    605a3e8 View commit details
    Browse the repository at this point in the history
  14. tests/.gitignore: also allow test-foo in tests/tcg

    The .gitignore is yet again being a little too over enthusiastic.
    
    Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
    stsquad committed Oct 3, 2018
    Copy the full SHA
    083dc32 View commit details
    Browse the repository at this point in the history
  15. Copy the full SHA
    c6bc015 View commit details
    Browse the repository at this point in the history
  16. tests/fp/fp-test: add floating point tests

    By leveraging berkeley's softfloat and testfloat.
    
    With this we get decent coverage of softfloat.c:
    
    $ ./fp-test -r even:	67.22% coverage
    $ ./fp-test -r all:	73.11% coverage
    
    Note that we do not yet test parts of softfloat.c that aren't
    in the original softfloat library, namely:
    
    - denormal inputs
    - *_to_int16/uint16 conversions
    - scalbn for fixed point
    - muladd variants
    - min/max
    - exp2
    - log2
    - float*_compare (except float16_compare)
    
    Signed-off-by: Emilio G. Cota <cota@braap.org>
    cota authored and stsquad committed Oct 3, 2018
    Copy the full SHA
    9d1c6d9 View commit details
    Browse the repository at this point in the history
  17. gitmodules: add berkeley's softfloat + testfloat version 3

    These are BSD-licensed so we can add them as submodules.
    
    Signed-off-by: Emilio G. Cota <cota@braap.org>
    cota authored and stsquad committed Oct 3, 2018
    Copy the full SHA
    df3d479 View commit details
    Browse the repository at this point in the history
  18. softfloat: remove float64_trunc_to_int

    It has not had users since f83311e ("target-m68k: use floatx80
    internally", 2017-06-21).
    
    Note that no other bit-width has floatX_trunc_to_int.
    
    Signed-off-by: Emilio G. Cota <cota@braap.org>
    cota authored and stsquad committed Oct 3, 2018
    Copy the full SHA
    d6ecdfa View commit details
    Browse the repository at this point in the history

Commits on Oct 1, 2018

  1. Merge remote-tracking branch 'remotes/kraxel/tags/usb-20181001-pull-r…

    …equest' into staging
    
    usb: fixes for mtp, hub and ohci.
    
    # gpg: Signature made Mon 01 Oct 2018 10:28:36 BST
    # gpg:                using RSA key 4CB6D8EED3E87138
    # gpg: Good signature from "Gerd Hoffmann (work) <kraxel@redhat.com>"
    # gpg:                 aka "Gerd Hoffmann <gerd@kraxel.org>"
    # gpg:                 aka "Gerd Hoffmann (private) <kraxel@gmail.com>"
    # Primary key fingerprint: A032 8CFF B93A 17A7 9901  FE7D 4CB6 D8EE D3E8 7138
    
    * remotes/kraxel/tags/usb-20181001-pull-request:
      ohci: set effectively usb frame rate to 1kHz
      usb-hub: clear suspend on detach
      usb-mtp: reset ObjectInfo dataset size on cleanup
      doc: replace x-root with rootdir for usb-mtp
      usb-mtp: fix error conditions for write operation
    
    Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
    pm215 committed Oct 1, 2018
    Copy the full SHA
    24c3833 View commit details
    Browse the repository at this point in the history
  2. Merge remote-tracking branch 'remotes/kraxel/tags/vga-20180927-pull-r…

    …equest' into staging
    
    vga: add edid support, qxl bugfixes.
    
    # gpg: Signature made Thu 27 Sep 2018 08:12:32 BST
    # gpg:                using RSA key 4CB6D8EED3E87138
    # gpg: Good signature from "Gerd Hoffmann (work) <kraxel@redhat.com>"
    # gpg:                 aka "Gerd Hoffmann <gerd@kraxel.org>"
    # gpg:                 aka "Gerd Hoffmann (private) <kraxel@gmail.com>"
    # Primary key fingerprint: A032 8CFF B93A 17A7 9901  FE7D 4CB6 D8EE D3E8 7138
    
    * remotes/kraxel/tags/vga-20180927-pull-request:
      qxl: support mono cursors with inverted colors
      qxl: use guest_monitor_config for local renderer.
      display/stdvga: add edid support.
      display/edid: add DEFINE_EDID_PROPERTIES
      display/edid: add region helper.
      display/edid: add qemu_edid_size()
      display/edid: add edid generator to qemu.
    
    Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
    pm215 committed Oct 1, 2018
    Copy the full SHA
    cc28dce View commit details
    Browse the repository at this point in the history
  3. ohci: set effectively usb frame rate to 1kHz

    USB frame rate is slightly lower than 1kHz: ie. ~950Hz.
    Thus usb-audio device is not able to perform a simple audio playback
    without underruns on audio backend.
    eg. "-device pci-ohci,id=ohci -device usb-audio,bus=ohci.0" vs PulseAudio
    backend. more than 50 underruns are observed per second.
    
    Update ohci_sof_time computation, using QEMU_CLOCK_VIRTUAL in
    ohci_usb_start(), and increment by usb_frame_time in ohci_sof()
    makes USB frame rate close to 1kHz.
    This way, no audio underrun are observed during audio playback.
    
    Signed-off-by: Miguel GAIO <mgaio35@gmail.com>
    Message-Id: <20180927151936.3647-1-mgaio35@gmail.com>
    Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
    mgaio authored and kraxel committed Oct 1, 2018
    Copy the full SHA
    a60f39a View commit details
    Browse the repository at this point in the history
  4. usb-hub: clear suspend on detach

    Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
    Message-id: 20180912114012.6034-1-kraxel@redhat.com
    kraxel committed Oct 1, 2018
    Copy the full SHA
    3e9191a View commit details
    Browse the repository at this point in the history
  5. usb-mtp: reset ObjectInfo dataset size on cleanup

    Stale values in this field may result in qemu
    expecting more data on the next operation
    
    Signed-off-by: Bandan Das <bsd@redhat.com>
    Message-id: 20180907220851.9658-4-bsd@redhat.com
    Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
    whitebrandy authored and kraxel committed Oct 1, 2018
    Copy the full SHA
    f7c36a7 View commit details
    Browse the repository at this point in the history
  6. doc: replace x-root with rootdir for usb-mtp

    Signed-off-by: Bandan <bsd@redhat.com>
    Message-id: 20180907220851.9658-3-bsd@redhat.com
    Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
    whitebrandy authored and kraxel committed Oct 1, 2018
    Copy the full SHA
    1ee5306 View commit details
    Browse the repository at this point in the history
  7. usb-mtp: fix error conditions for write operation

    Return STORE_FULL if we can't write all the bytes but
    return incomplete transfer if data received is less then
    what was specified in the metadata. Also, use d->offset
    as the file size which is valid for all file sizes.
    
    Signed-off-by: Bandan <bsd@redhat.com>
    Message-id: 20180907220851.9658-2-bsd@redhat.com
    Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
    whitebrandy authored and kraxel committed Oct 1, 2018
    Copy the full SHA
    44dd419 View commit details
    Browse the repository at this point in the history
  8. Merge remote-tracking branch 'remotes/ericb/tags/pull-nbd-2018-09-26'…

    … into staging
    
    nbd patches for 2018-09-26
    
    Fixes for external clients; add reminder to revisit naming of x- command
    
    - Vladimir Sementsov-Ogievskiy: nbd/server: send more than one extent of base:allocation context
    - John Snow: qapi: bitmap-merge: document name change
    - Vladimir Sementsov-Ogievskiy: nbd/server: fix bitmap export
    
    # gpg: Signature made Thu 27 Sep 2018 03:40:03 BST
    # gpg:                using RSA key A7A16B4A2527436A
    # gpg: Good signature from "Eric Blake <eblake@redhat.com>"
    # gpg:                 aka "Eric Blake (Free Software Programmer) <ebb9@byu.net>"
    # gpg:                 aka "[jpeg image of size 6874]"
    # Primary key fingerprint: 71C2 CC22 B1C4 6029 27D2  F3AA A7A1 6B4A 2527 436A
    
    * remotes/ericb/tags/pull-nbd-2018-09-26:
      nbd/server: send more than one extent of base:allocation context
      qapi: bitmap-merge: document name change
      nbd/server: fix bitmap export
    
    Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
    pm215 committed Oct 1, 2018
    Copy the full SHA
    e7f5f0b View commit details
    Browse the repository at this point in the history

Commits on Sep 28, 2018

  1. Merge remote-tracking branch 'remotes/rth/tags/pull-tcg-20180926' int…

    …o staging
    
    Queued tcg patches
    
    # gpg: Signature made Wed 26 Sep 2018 19:27:22 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-tcg-20180926:
      tcg/i386: fix vector operations on 32-bit hosts
      qht-bench: add -p flag to precompute hash values
      qht: constify arguments to some internal functions
      qht: constify qht_statistics_init
      qht: constify qht_lookup
      qht: fix comment in qht_bucket_remove_entry
      qht: drop ht argument from qht iterators
      test-qht: speed up + test qht_resize
      test-qht: test deletion of the last entry in a bucket
      test-qht: test removal of non-existent entries
      test-qht: test qht_iter_remove
      qht: add qht_iter_remove
      qht: remove unused map param from qht_remove__locked
    
    Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
    pm215 committed Sep 28, 2018
    Copy the full SHA
    07f426c View commit details
    Browse the repository at this point in the history
  2. Merge remote-tracking branch 'remotes/dgilbert/tags/pull-migration-20…

    …180926a' into staging
    
    Migration pull 2018-09-26
    
    This supercedes Juan's pull from the 13th
    
    # gpg: Signature made Wed 26 Sep 2018 18:07:30 BST
    # gpg:                using RSA key 0516331EBC5BFDE7
    # gpg: Good signature from "Dr. David Alan Gilbert (RH2) <dgilbert@redhat.com>"
    # Primary key fingerprint: 45F5 C71B 4A0C B7FB 977A  9FA9 0516 331E BC5B FDE7
    
    * remotes/dgilbert/tags/pull-migration-20180926a:
      migration/ram.c: Avoid taking address of fields in packed MultiFDInit_t struct
      migration: fix the compression code
      migration: fix QEMUFile leak
      tests/migration: Speed up the test on ppc64
      migration: cleanup in error paths in loadvm
      migration/postcopy: Clear have_listen_thread
      tests/migration: Add migration-test header file
      tests/migration: Support cross compilation in generating boot header file
      tests/migration: Convert x86 boot block compilation script into Makefile
      migration: use save_page_use_compression in flush_compressed_data
      migration: show the statistics of compression
      migration: do not flush_compressed_data at the end of iteration
      Add a hint message to loadvm and exits on failure
      migration: handle the error condition properly
      migration: fix calculating xbzrle_counters.cache_miss_rate
      migration/rdma: Fix uninitialised rdma_return_path
    
    Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
    pm215 committed Sep 28, 2018
    Copy the full SHA
    042938f View commit details
    Browse the repository at this point in the history
  3. Merge remote-tracking branch 'remotes/otubo/tags/pull-seccomp-2018092…

    …6' into staging
    
    pull-seccomp-20180926
    
    # gpg: Signature made Wed 26 Sep 2018 14:20:06 BST
    # gpg:                using RSA key DF32E7C0F0FFF9A2
    # gpg: Good signature from "Eduardo Otubo (Senior Software Engineer) <otubo@redhat.com>"
    # Primary key fingerprint: D67E 1B50 9374 86B4 0723  DBAB DF32 E7C0 F0FF F9A2
    
    * remotes/otubo/tags/pull-seccomp-20180926:
      seccomp: check TSYNC host capability
    
    Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
    pm215 committed Sep 28, 2018
    Copy the full SHA
    567ea80 View commit details
    Browse the repository at this point in the history
  4. Merge remote-tracking branch 'remotes/famz/tags/staging-pull-request'…

    … into staging
    
    Block and testing patches
    
    - Paolo's AIO fixes.
    - VMDK streamOptimized corner case fix
    - VM testing improvment on -cpu
    
    # gpg: Signature made Wed 26 Sep 2018 03:54:08 BST
    # gpg:                using RSA key CA35624C6A9171C6
    # gpg: Good signature from "Fam Zheng <famz@redhat.com>"
    # Primary key fingerprint: 5003 7CB7 9706 0F76 F021  AD56 CA35 624C 6A91 71C6
    
    * remotes/famz/tags/staging-pull-request:
      vmdk: align end of file to a sector boundary
      tests/vm: Use -cpu max rather than -cpu host
      aio-posix: do skip system call if ctx->notifier polling succeeds
      aio-posix: compute timeout before polling
      aio-posix: fix concurrent access to poll_disable_cnt
    
    Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
    pm215 committed Sep 28, 2018
    Copy the full SHA
    099bea1 View commit details
    Browse the repository at this point in the history
  5. Merge remote-tracking branch 'remotes/vivier2/tags/linux-user-for-3.1…

    …-pull-request' into staging
    
    - some fixes for setrlimit() and write()
    - fixes ELF loader when host page size is greater than target page size
    - add SO_LINGER to getsockopt()/setsockopt()
    - move TargetFdTrans from syscall.c
      v2: add "#include <linux/netlink.h>" in linux-user/fd-trans.c
    
    # gpg: Signature made Tue 25 Sep 2018 21:51:13 BST
    # gpg:                using RSA key F30C38BD3F2FBE3C
    # gpg: Good signature from "Laurent Vivier <lvivier@redhat.com>"
    # gpg:                 aka "Laurent Vivier <laurent@vivier.eu>"
    # gpg:                 aka "Laurent Vivier (Red Hat) <lvivier@redhat.com>"
    # Primary key fingerprint: CD2F 75DD C8E3 A4DC 2E4F  5173 F30C 38BD 3F2F BE3C
    
    * remotes/vivier2/tags/linux-user-for-3.1-pull-request:
      linux-user: do setrlimit selectively
      linux-user: write(fd, NULL, 0) parity with linux's treatment of same
      linux-user: elf: mmap all the target-pages of hostpage for data segment
      linux-user: add SO_LINGER to {g,s}etsockopt
      linux-user: move TargetFdTrans functions to their own file
    
    Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
    pm215 committed Sep 28, 2018
    Copy the full SHA
    aa8e26d View commit details
    Browse the repository at this point in the history

Commits on Sep 27, 2018

  1. qxl: support mono cursors with inverted colors

    Monochrome cursors are still used by Windows guests with the
    QXL-WDDM-DOD driver. Such cursor types have one odd feature, inversion
    of colors. GDK does not seem to support it, so implement an alternative
    solution: fill the inverted pixels and add an outline to make the cursor
    more visible. Tested with the text cursor in Notepad and Windows 10.
    
    cursor_set_mono is also used by the vmware GPU, so add a special check
    to avoid breaking its 32bpp format (tested with Kubuntu 14.04.4). I was
    unable to find a guest which supports the 1bpp format with a vmware GPU.
    
    The old implementation was buggy and removed in v2.10.0-108-g79c5a10cdd
    ("qxl: drop mono cursor support"), this version improves upon that by
    adding bounds validation, clarifying the semantics of the two masks and
    adds a workaround for inverted colors support.
    
    Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1611984
    Signed-off-by: Peter Wu <peter@lekensteyn.nl>
    Message-id: 20180903145447.17142-1-peter@lekensteyn.nl
    
    [ kraxel: minor codestyle fix ]
    
    Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
    Lekensteyn authored and kraxel committed Sep 27, 2018
    Copy the full SHA
    36ffc12 View commit details
    Browse the repository at this point in the history
  2. qxl: use guest_monitor_config for local renderer.

    When processing monitor config from guest store head0 width and height
    for single-head configurations.  Use these when creating the
    DisplaySurface in the local renderer.
    
    This fixes a rendering issue with wayland.  Wayland rounds up the
    framebuffer width and height to a multiple of 64, so with odd
    resolutions (800x600 for example) the framebuffer is larger than the
    actual screen.  The monitor config has the actual screen size though.
    
    This fixes guest display for anything using the local renderer
    (non-spice UI, screendump monitor command).
    
    Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
    Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
    Message-id: 20180919103057.9666-1-kraxel@redhat.com
    kraxel committed Sep 27, 2018
    Copy the full SHA
    979f7ef View commit details
    Browse the repository at this point in the history
  3. display/stdvga: add edid support.

    This patch adds edid support to the qemu stdvga.  It is turned off by
    default and can be enabled with the new edid property.  The patch also
    adds xres and yres properties to specify the video mode you want the
    guest use.  Works only with edid enabled and updated guest driver.
    
    The mmio bar of the stdvga has some unused address space at the start.
    It was reserved just in case it'll be needed for virtio, but it turned
    out to not be needed for that.  So let's use that region to place the
    EDID data block there.
    
    Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
    Message-id: 20180925075646.25114-6-kraxel@redhat.com
    kraxel committed Sep 27, 2018
    Copy the full SHA
    d46b40f View commit details
    Browse the repository at this point in the history
  4. display/edid: add DEFINE_EDID_PROPERTIES

    Add a define for edid monitor properties.
    
    Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
    Message-id: 20180925075646.25114-5-kraxel@redhat.com
    kraxel committed Sep 27, 2018
    Copy the full SHA
    06510b8 View commit details
    Browse the repository at this point in the history
Older