Skip to content
Snippets Groups Projects
  1. Sep 13, 2023
  2. Sep 08, 2023
  3. Aug 03, 2023
  4. Jun 23, 2023
  5. Jun 20, 2023
  6. Jun 13, 2023
    • Steve Sistare's avatar
      exec/memory: Introduce RAM_NAMED_FILE flag · b0182e53
      Steve Sistare authored
      
      migrate_ignore_shared() is an optimization that avoids copying memory
      that is visible and can be mapped on the target.  However, a
      memory-backend-ram or a memory-backend-memfd block with the RAM_SHARED
      flag set is not migrated when migrate_ignore_shared() is true.  This is
      wrong, because the block has no named backing store, and its contents will
      be lost.  To fix, ignore shared memory iff it is a named file.  Define a
      new flag RAM_NAMED_FILE to distinguish this case.
      
      Signed-off-by: default avatarSteve Sistare <steven.sistare@oracle.com>
      Reviewed-by: default avatarPeter Xu <peterx@redhat.com>
      Message-Id: <1686151116-253260-1-git-send-email-steven.sistare@oracle.com>
      Signed-off-by: default avatarPhilippe Mathieu-Daudé <philmd@linaro.org>
      b0182e53
  7. May 23, 2023
  8. Apr 25, 2023
  9. Mar 13, 2023
  10. Mar 07, 2023
  11. Mar 02, 2023
    • Alex Bennée's avatar
      backends/vhost-user: remove the ioeventfd check · e1a0e635
      Alex Bennée authored
      
      While ioeventfds are needed for good performance with KVM guests it
      should not be a gating requirement. We can run vhost-user backends using
      simulated ioeventfds or inband signalling.
      
      With this change I can run:
      
        $QEMU $OPTS \
          -display gtk,gl=on \
          -device vhost-user-gpu-pci,chardev=vhgpu \
          -chardev socket,id=vhgpu,path=vhgpu.sock
      
      with:
      
        ./contrib/vhost-user-gpu/vhost-user-gpu \
          -s vhgpu.sock \
          -v
      
      and at least see things start-up - although the display gets rotated by
      180 degrees. Once lightdm takes over we never make it to the login
      prompt and just get a blank screen.
      
      Signed-off-by: default avatarAlex Bennée <alex.bennee@linaro.org>
      Cc: Gerd Hoffmann <kraxel@redhat.com>
      Message-Id: <20221202132231.1048669-1-alex.bennee@linaro.org>
      
      Message-Id: <20230130124728.175610-1-alex.bennee@linaro.org>
      Reviewed-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      Reviewed-by: default avatarMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
      e1a0e635
  12. Feb 23, 2023
  13. Feb 08, 2023
  14. Jan 16, 2023
  15. Dec 28, 2022
    • Michal Privoznik's avatar
      hostmem: Honor multiple preferred nodes if possible · 6bb613f0
      Michal Privoznik authored
      
      If a memory-backend is configured with mode
      HOST_MEM_POLICY_PREFERRED then
      host_memory_backend_memory_complete() calls mbind() as:
      
        mbind(..., MPOL_PREFERRED, nodemask, ...);
      
      Here, 'nodemask' is a bitmap of host NUMA nodes and corresponds
      to the .host-nodes attribute. Therefore, there can be multiple
      nodes specified. However, the documentation to MPOL_PREFERRED
      says:
      
        MPOL_PREFERRED
          This mode sets the preferred node for allocation. ...
          If nodemask specifies more than one node ID, the first node
          in the mask will be selected as the preferred node.
      
      Therefore, only the first node is honored and the rest is
      silently ignored. Well, with recent changes to the kernel and
      numactl we can do better.
      
      The Linux kernel added in v5.15 via commit cfcaa66f8032
      ("mm/hugetlb: add support for mempolicy MPOL_PREFERRED_MANY")
      support for MPOL_PREFERRED_MANY, which accepts multiple preferred
      NUMA nodes instead.
      
      Then, numa_has_preferred_many() API was introduced to numactl
      (v2.0.15~26) allowing applications to query kernel support.
      
      Wiring this all together, we can pass MPOL_PREFERRED_MANY to the
      mbind() call instead and stop ignoring multiple nodes, silently.
      
      Signed-off-by: default avatarMichal Privoznik <mprivozn@redhat.com>
      Message-Id: <a0b4adce1af5bd2344c2218eb4a04b3ff7bcfdb4.1671097918.git.mprivozn@redhat.com>
      Reviewed-by: default avatarDavid Hildenbrand <david@redhat.com>
      Signed-off-by: default avatarDavid Hildenbrand <david@redhat.com>
      6bb613f0
  16. Dec 14, 2022
    • Markus Armbruster's avatar
      qapi tpm: Elide redundant has_FOO in generated C · ced29396
      Markus Armbruster authored
      
      The has_FOO for pointer-valued FOO are redundant, except for arrays.
      They are also a nuisance to work with.  Recent commit "qapi: Start to
      elide redundant has_FOO in generated C" provided the means to elide
      them step by step.  This is the step for qapi/tpm.json.
      
      Said commit explains the transformation in more detail.  The invariant
      violations mentioned there do not occur here.
      
      Cc: Stefan Berger <stefanb@linux.vnet.ibm.com>
      Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: default avatarStefan Berger <stefanb@linux.ibm.com>
      Message-Id: <20221104160712.3005652-26-armbru@redhat.com>
      ced29396
  17. Dec 01, 2022
  18. Nov 02, 2022
  19. Oct 27, 2022
  20. Sep 13, 2022
  21. Sep 09, 2022
  22. Aug 26, 2022
Loading