Skip to content
Snippets Groups Projects
  1. Jan 29, 2021
  2. Jan 28, 2021
  3. Jan 27, 2021
    • Vladimir Sementsov-Ogievskiy's avatar
      iotests: rename and move 169 and 199 tests · a44be033
      Vladimir Sementsov-Ogievskiy authored
      
      Rename bitmaps migration tests and move them to tests subdirectory to
      demonstrate new human-friendly test naming.
      
      Signed-off-by: default avatarVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
      Message-Id: <20210125185056.129513-7-vsementsov@virtuozzo.com>
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
      a44be033
    • Vladimir Sementsov-Ogievskiy's avatar
      iotests: rewrite check into python · f203080b
      Vladimir Sementsov-Ogievskiy authored
      
      Just use classes introduced in previous three commits. Behavior
      difference is described in these three commits.
      
      Drop group file, as it becomes unused.
      
      Drop common.env: now check is in python, and for tests we use same
      python interpreter that runs the check itself. Use build environment
      PYTHON in check-block instead, to keep "make check" use the same
      python.
      
      Checking for virtio-blk moved to iotests.py, as it actually iotests.py
      dependency. Actually not all python iotests depend on it, so in future
      it may be refactored to checked only when really needed.
      
      Signed-off-by: default avatarVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
      Message-Id: <20210125185056.129513-6-vsementsov@virtuozzo.com>
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
      f203080b
    • Vladimir Sementsov-Ogievskiy's avatar
      iotests: add testrunner.py · d74c754c
      Vladimir Sementsov-Ogievskiy authored
      
      Add TestRunner class, which will run tests in a new python iotests
      running framework.
      
      There are some differences with current ./check behavior, most
      significant are:
      - Consider all tests self-executable, just run them, don't run python
        by hand.
      - Elapsed time is cached in json file
      - Elapsed time precision increased a bit
      - Instead of using "diff -w" which ignores all whitespace differences,
        manually strip whitespace at line end then use python difflib, which
        no longer ignores spacing mid-line
      
      Signed-off-by: default avatarVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
      Message-Id: <20210125185056.129513-5-vsementsov@virtuozzo.com>
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
      d74c754c
    • Vladimir Sementsov-Ogievskiy's avatar
      iotests: add testenv.py · 2e5a2f57
      Vladimir Sementsov-Ogievskiy authored
      
      Add TestEnv class, which will handle test environment in a new python
      iotests running framework.
      
      Don't add compat=1.1 for qcow2 IMGOPTS, as v3 is default anyway.
      
      Signed-off-by: default avatarVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
      Message-Id: <20210125185056.129513-4-vsementsov@virtuozzo.com>
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
      2e5a2f57
    • Vladimir Sementsov-Ogievskiy's avatar
      iotests: add findtests.py · b25a9488
      Vladimir Sementsov-Ogievskiy authored
      
      Add python script with new logic of searching for tests:
      
      Current ./check behavior:
       - tests are named [0-9][0-9][0-9]
       - tests must be registered in group file (even if test doesn't belong
         to any group, like 142)
      
      Behavior of findtests.py:
       - group file is dropped
       - tests are all files in tests/ subdirectory (except for .out files),
         so it's not needed more to "register the test", just create it with
         appropriate name in tests/ subdirectory. Old names like
         [0-9][0-9][0-9] (in root iotests directory) are supported too, but
         not recommended for new tests
       - groups are parsed from '# group: ' line inside test files
       - optional file group.local may be used to define some additional
         groups for downstreams
       - 'disabled' group is used to temporary disable tests. So instead of
         commenting tests in old 'group' file you now can add them to
         disabled group with help of 'group.local' file
       - selecting test ranges like 5-15 are not supported more
         (to support restarting failed ./check command from the middle of the
          process, new argument is added: --start-from)
      
      Benefits:
       - no rebase conflicts in group file on patch porting from branch to
         branch
       - no conflicts in upstream, when different series want to occupy same
         test number
       - meaningful names for test files
         For example, with digital number, when some person wants to add some
         test about block-stream, he most probably will just create a new
         test. But if there would be test-block-stream test already, he will
         at first look at it and may be just add a test-case into it.
         And anyway meaningful names are better.
      
      This commit doesn't update check behavior (which will be done in
      further commit), still, the documentation changed like new behavior is
      already here.  Let's live with this small inconsistency for the
      following few commits, until final change.
      
      Signed-off-by: default avatarVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
      Reviewed-by: default avatarEric Blake <eblake@redhat.com>
      Message-Id: <20210125185056.129513-3-vsementsov@virtuozzo.com>
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
      b25a9488
    • Vladimir Sementsov-Ogievskiy's avatar
      iotests: 146: drop extra whitespaces from .out file · 362ef77f
      Vladimir Sementsov-Ogievskiy authored
      
      check script will be stricter soon about whitespaces, so fix 146.out
      now.
      
      Signed-off-by: default avatarVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
      Message-Id: <20210125185056.129513-2-vsementsov@virtuozzo.com>
      Reviewed-by: default avatarEric Blake <eblake@redhat.com>
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
      362ef77f
    • Kevin Wolf's avatar
      virtio-scsi-test: Test writing to scsi-cd device · 720d10d6
      Kevin Wolf authored
      This tests that trying to write to a (read-only) scsi-cd device backed
      by a read-write image file doesn't crash and results in the correct
      error.
      
      This is a regression test for https://bugs.launchpad.net/bugs/1906693
      
      .
      
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
      Message-Id: <20210118123448.307825-3-kwolf@redhat.com>
      Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@redhat.com>
      Reviewed-by: default avatarMax Reitz <mreitz@redhat.com>
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
      720d10d6
    • Kevin Wolf's avatar
      block: Separate blk_is_writable() and blk_supports_write_perm() · 86b1cf32
      Kevin Wolf authored
      Currently, blk_is_read_only() tells whether a given BlockBackend can
      only be used in read-only mode because its root node is read-only. Some
      callers actually try to answer a slightly different question: Is the
      BlockBackend configured to be writable, by taking write permissions on
      the root node?
      
      This can differ, for example, for CD-ROM devices which don't take write
      permissions, but may be backed by a writable image file. scsi-cd allows
      write requests to the drive if blk_is_read_only() returns false.
      However, the write request will immediately run into an assertion
      failure because the write permission is missing.
      
      This patch introduces separate functions for both questions.
      blk_supports_write_perm() answers the question whether the block
      node/image file can support writable devices, whereas blk_is_writable()
      tells whether the BlockBackend is currently configured to be writable.
      
      All calls of blk_is_read_only() are converted to one of the two new
      functions.
      
      Fixes: https://bugs.launchpad.net/bugs/1906693
      
      
      Cc: qemu-stable@nongnu.org
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
      Message-Id: <20210118123448.307825-2-kwolf@redhat.com>
      Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@redhat.com>
      Reviewed-by: default avatarMax Reitz <mreitz@redhat.com>
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
      86b1cf32
    • Peter Maydell's avatar
      Merge remote-tracking branch 'remotes/huth-gitlab/tags/pull-request-2021-01-27' into staging · af47e822
      Peter Maydell authored
      
      * Patches to speed up and improve the gitlab-CI
      * Documentation for the decorators in the "acceptance" tests
      * One small rework of a libqtest function
      
      # gpg: Signature made Wed 27 Jan 2021 06:22:11 GMT
      # gpg:                using RSA key 27B88847EEE0250118F3EAB92ED9D774FE702DB5
      # gpg:                issuer "thuth@redhat.com"
      # gpg: Good signature from "Thomas Huth <th.huth@gmx.de>" [full]
      # gpg:                 aka "Thomas Huth <thuth@redhat.com>" [full]
      # gpg:                 aka "Thomas Huth <huth@tuxfamily.org>" [full]
      # gpg:                 aka "Thomas Huth <th.huth@posteo.de>" [unknown]
      # Primary key fingerprint: 27B8 8847 EEE0 2501 18F3  EAB9 2ED9 D774 FE70 2DB5
      
      * remotes/huth-gitlab/tags/pull-request-2021-01-27:
        libqtest: Rework qtest_rsp()
        docs/devel: Explain how acceptance tests can be skipped
        gitlab-ci.yml: Avoid recompiling the sources in the test jobs
        gitlab-ci.yml: Exclude some redundant targets in build-without-default-features
        meson: Do not build optional libraries by default
        configure: Only check for audio drivers if system-mode is selected
        gitlab-ci.yml: Avoid some submodules to speed up the CI a little bit
        gitlab-ci: Test building linux-user targets on CentOS 7
        tests/docker: Install static libc package in CentOS 7
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      af47e822
    • Peter Maydell's avatar
      Merge remote-tracking branch... · bf159f0b
      Peter Maydell authored
      Merge remote-tracking branch 'remotes/edgar/tags/edgar/xilinx-next-2021-01-27.for-upstream' into staging
      
      For upstream
      
      # gpg: Signature made Wed 27 Jan 2021 07:41:20 GMT
      # gpg:                using RSA key AC44FEDC14F7F1EBEDBF415129C596780F6BCA83
      # gpg: Good signature from "Edgar E. Iglesias (Xilinx key) <edgar.iglesias@xilinx.com>" [unknown]
      # gpg:                 aka "Edgar E. Iglesias <edgar.iglesias@gmail.com>" [full]
      # Primary key fingerprint: AC44 FEDC 14F7 F1EB EDBF  4151 29C5 9678 0F6B CA83
      
      * remotes/edgar/tags/edgar/xilinx-next-2021-01-27.for-upstream:
        target/microblaze: Add security attributes on memory transactions
        target/microblaze: use MMUAccessType instead of int in mmu_translate
        target/microblaze: Add use-non-secure property
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      bf159f0b
    • Philippe Mathieu-Daudé's avatar
      tcg/tci: Restrict tci_write_reg16() to 64-bit hosts · 5fa6ab7e
      Philippe Mathieu-Daudé authored
      
      Restrict tci_write_reg16() to 64-bit hosts to fix on 32-bit ones:
      
        [520/1115] Compiling C object libqemu-arm-linux-user.fa.p/tcg_tci.c.o
        FAILED: libqemu-arm-linux-user.fa.p/tcg_tci.c.o
        tcg/tci.c:132:1: error: 'tci_write_reg16' defined but not used [-Werror=unused-function]
         tci_write_reg16(tcg_target_ulong *regs, TCGReg index, uint16_t value)
         ^~~~~~~~~~~~~~~
      
      Fixes: 2f160e0f ("tci: Add implementation for INDEX_op_ld16u_i64")
      Signed-off-by: default avatarPhilippe Mathieu-Daudé <f4bug@amsat.org>
      Reviewed-by: default avatarStefan Weil <sw@weilnetz.de>
      Message-Id: <20210123094107.2340222-1-f4bug@amsat.org>
      Signed-off-by: default avatarLaurent Vivier <laurent@vivier.eu>
      5fa6ab7e
    • Greg Kurz's avatar
      MAINTAINERS: Update 9pfs tree URL · 1a001953
      Greg Kurz authored
      
      I've already moved my repositories to gitlab for extra CI coverage,
      and I won't use the ones at github anymore.
      
      Signed-off-by: default avatarGreg Kurz <groug@kaod.org>
      Reviewed-by: default avatarChristian Schoenebeck <qemu_oss@crudebyte.com>
      Message-Id: <161071814430.152031.14540382419012818908.stgit@bahia.lan>
      Signed-off-by: default avatarLaurent Vivier <laurent@vivier.eu>
      1a001953
    • Peter Maydell's avatar
      hw/display/vmware_vga: Remove dependency on VNC header · 15b08119
      Peter Maydell authored
      
      In commit 2f487a3d we fixed a problem observed with using the
      vmware-vga device and the VNC UI frontend in a belt-and-braces
      manner:
       * we made the VNC frontend handle non-multiple-of-16 surface widths
       * we rounded up the vmware-vga display width to a multiple of 16
      
      However this introduced a spurious dependency of a device model on a
      UI frontend header.  vmware-vga isn't special and should not care
      about what UI frontend it is using, and the VNC frontend needs to
      handle arbitrary surface widths because other display device models
      could use them.  Moreover, even if the maximum width in vmware-vga is
      made a multiple of 16, the guest itself can always program a
      different width.
      
      Remove the dependency on the VNC header.  Since we have been using
      the rounded-up width value since 2014, stick with it rather than
      introducing a behaviour change, but don't calculate it by rounding up
      to VNC_DIRTY_BITS_PER_PIXEL any more.
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      Message-Id: <20210112161608.16055-1-peter.maydell@linaro.org>
      Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
      15b08119
    • Gerd Hoffmann's avatar
      vnc: send extended desktop resize on update requests · 104b8d19
      Gerd Hoffmann authored
      
      Unlike other pseudo-encodings these don't break gtk-vnc
      because older versions don't suport the extended desktop
      resize extension in the first place.
      
      Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
      Tested-by: default avatarLaszlo Ersek <lersek@redhat.com>
      Message-Id: <20210125104041.495274-3-kraxel@redhat.com>
      104b8d19
    • Gerd Hoffmann's avatar
      Revert "vnc: move initialization to framebuffer_update_request" · d239726c
      Gerd Hoffmann authored
      
      This reverts commit 9e1632ad.
      
      Older gtk-vnc versions can't deal with non-incremental update
      requests sending pseudo-encodings, so trying to send full server
      state (including desktop size, cursor etc. which is done using
      pseudo-encodings) doesn't fly.  Return to old behavior to send
      those only for new connects and when changes happen.
      
      Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
      Tested-by: default avatarLaszlo Ersek <lersek@redhat.com>
      Message-Id: <20210125104041.495274-2-kraxel@redhat.com>
      d239726c
    • Joe Komlodi's avatar
      target/microblaze: Add security attributes on memory transactions · 43a9ede1
      Joe Komlodi authored
      
      Using the cfg.use_non_secure bitfield and the MMU access type, we can determine
      if the access should be secure or not.
      
      Signed-off-by: default avatarJoe Komlodi <komlodi@xilinx.com>
      Reviewed-by: default avatarEdgar E. Iglesias <edgar.iglesias@xilinx.com>
      Tested-by: default avatarEdgar E. Iglesias <edgar.iglesias@xilinx.com>
      Message-Id: <1611274735-303873-4-git-send-email-komlodi@xilinx.com>
      Signed-off-by: default avatarEdgar E. Iglesias <edgar.iglesias@xilinx.com>
      43a9ede1
Loading