Skip to content
Snippets Groups Projects
  1. Sep 07, 2017
  2. Sep 06, 2017
  3. Sep 05, 2017
    • Juan Quintela's avatar
      tests: Make vmgenid test compile · c18aaeb6
      Juan Quintela authored
      
      Just make sure that nr_tables is size_t not int.
      Once there, do the assert in the right place and be sure that we don't
      have a division by zero.
      
      Suggested-by: default avatarCédric Le Goater <clg@kaod.org>
      Signed-off-by: default avatarJuan Quintela <quintela@redhat.com>
      Tested-by: default avatarCleber Rosa <crosa@redhat.com>
      
      --
      
      Drop the s/g_new0/g_malloc0/ change.
      Avoid division by zero with assert (danp)
      c18aaeb6
    • Juan Quintela's avatar
      tests: Use real size for iov tests · e3ff9f0e
      Juan Quintela authored
      
      We were using -1 instead of the real size because the functions check
      what is bigger, size in bytes or the size of the iov.  Recent gcc's
      barf at this.
      
      Signed-off-by: default avatarJuan Quintela <quintela@redhat.com>
      Reviewed-by: default avatarPeter Xu <peterx@redhat.com>
      Tested-by: default avatarCleber Rosa <crosa@redhat.com>
      --
      
      Remove comments about this feature.
      Fix missing -1.
      e3ff9f0e
    • Philippe Mathieu-Daudé's avatar
      vhost-user: disable the *broken* subprocess tests · 20784087
      Philippe Mathieu-Daudé authored
      
      tests/vhost-user-test keeps failing on build-system since Aug 15:
      
        ERROR:tests/vhost-user-test.c:835:test_flags_mismatch: child process (/i386/vhost-user/flags-mismatch/subprocess [4836]) failed unexpectedly
      ...
        ERROR:tests/vhost-user-test.c:807:test_connect_fail: child process (/x86_64/vhost-user/connect-fail/subprocess [58910]) failed unexpectedly
      
      Suggested-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      Suggested-by: default avatarDaniel P. Berrange <berrange@redhat.com>
      Signed-off-by: default avatarPhilippe Mathieu-Daudé <f4bug@amsat.org>
      Message-id: 20170905180602.28698-1-f4bug@amsat.org
      Reviewed-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      20784087
    • Peter Maydell's avatar
      Revert "kvm: use DIV_ROUND_UP" · b07d1c2f
      Peter Maydell authored
      
      This reverts commit 206a0fc7.
      
      The linux-headers directory is for kernel headers which we keep in
      sync with the upstream kernel via scripts/update-linux-headers.sh, so
      we shouldn't be applying our code cleanups to it.
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      b07d1c2f
    • Manos Pitsidianakis's avatar
      block: convert ThrottleGroup to object with QOM · 432d889e
      Manos Pitsidianakis authored
      
      ThrottleGroup is converted to an object. This will allow the future
      throttle block filter drive easy creation and configuration of throttle
      groups in QMP and cli.
      
      A new QAPI struct, ThrottleLimits, is introduced to provide a shared
      struct for all throttle configuration needs in QMP.
      
      ThrottleGroups can be created via CLI as
          -object throttle-group,id=foo,x-iops-total=100,x-..
      where x-* are individual limit properties. Since we can't add non-scalar
      properties in -object this interface must be used instead. However,
      setting these properties must be disabled after initialization because
      certain combinations of limits are forbidden and thus configuration
      changes should be done in one transaction. The individual properties
      will go away when support for non-scalar values in CLI is implemented
      and thus are marked as experimental.
      
      ThrottleGroup also has a `limits` property that uses the ThrottleLimits
      struct.  It can be used to create ThrottleGroups or set the
      configuration in existing groups as follows:
      
      { "execute": "object-add",
        "arguments": {
          "qom-type": "throttle-group",
          "id": "foo",
          "props" : {
            "limits": {
                "iops-total": 100
            }
          }
        }
      }
      { "execute" : "qom-set",
          "arguments" : {
              "path" : "foo",
              "property" : "limits",
              "value" : {
                  "iops-total" : 99
              }
          }
      }
      
      This also means a group's configuration can be fetched with qom-get.
      
      Signed-off-by: default avatarManos Pitsidianakis <el13635@mail.ntua.gr>
      Reviewed-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      Reviewed-by: default avatarAlberto Garcia <berto@igalia.com>
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
      432d889e
    • Peter Maydell's avatar
      Merge remote-tracking branch 'remotes/gkurz/tags/for-upstream' into staging · f5f3a7f4
      Peter Maydell authored
      
      Some trivial fixes/cleanup and a fix to cause QEMU to error out gracefully
      instead of aborting.
      
      # gpg: Signature made Tue 05 Sep 2017 16:57:19 BST
      # gpg:                using DSA key 0x02FC3AEB0101DBC2
      # gpg: Good signature from "Greg Kurz <groug@kaod.org>"
      # gpg:                 aka "Greg Kurz <groug@free.fr>"
      # gpg:                 aka "Greg Kurz <gkurz@linux.vnet.ibm.com>"
      # gpg:                 aka "Gregory Kurz (Groug) <groug@free.fr>"
      # gpg:                 aka "[jpeg image of size 3330]"
      # gpg: WARNING: This key is not certified with a trusted signature!
      # gpg:          There is no indication that the signature belongs to the owner.
      # Primary key fingerprint: 2BD4 3B44 535E C0A7 9894  DBA2 02FC 3AEB 0101 DBC2
      
      * remotes/gkurz/tags/for-upstream:
        virtfs: error out gracefully when mandatory suboptions are missing
        9pfs: local: clarify fchmodat_nofollow() implementation
        fsdev: fix memory leak in main()
        9pfs: avoid sign conversion error simplifying the code
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      f5f3a7f4
Loading