Skip to content
Snippets Groups Projects
  1. Jul 31, 2023
  2. Jul 10, 2023
    • Erico Nunes's avatar
      contrib/vhost-user-gpu: implement get_edid feature · c0644426
      Erico Nunes authored
      
      Implement the virtio-gpu feature in contrib/vhost-user-gpu, which was
      unsupported until now.
      In this implementation, the feature is enabled inconditionally to avoid
      creating another optional config argument.
      Similarly to get_display_info, vhost-user-gpu sends a message back to
      the frontend to have access to all the display information. In the
      case of get_edid, it also needs to pass which scanout we should
      retrieve the edid for.
      
      The VHOST_USER_GPU_PROTOCOL_F_EDID protocol feature is required if the
      frontend sets the VIRTIO_GPU_F_EDID virtio-gpu feature. If the frontend
      sets the virtio-gpu feature but does not support the protocol feature,
      the backend will abort with an error.
      
      Signed-off-by: default avatarErico Nunes <ernunes@redhat.com>
      Reviewed-by: default avatarMarc-André Lureau <marcandre.lureau@redhat.com>
      Message-Id: <20230626164708.1163239-4-ernunes@redhat.com>
      Reviewed-by: default avatarMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
      c0644426
  3. Jul 03, 2023
  4. Jun 26, 2023
  5. Jun 02, 2023
    • Eric Blake's avatar
      cutils: Adjust signature of parse_uint[_full] · bd1386cc
      Eric Blake authored
      
      It's already confusing that we have two very similar functions for
      wrapping the parse of a 64-bit unsigned value, differing mainly on
      whether they permit leading '-'.  Adjust the signature of parse_uint()
      and parse_uint_full() to be like all of qemu_strto*(): put the result
      parameter last, use the same types (uint64_t and unsigned long long
      have the same width, but are not always the same type), and mark
      endptr const (this latter change only affects the rare caller of
      parse_uint).  Adjust all callers in the tree.
      
      While at it, note that since cutils.c already includes:
      
          QEMU_BUILD_BUG_ON(sizeof(int64_t) != sizeof(long long));
      
      we are guaranteed that the result of parse_uint* cannot exceed
      UINT64_MAX (or the build would have failed), so we can drop
      pre-existing dead comparisons in opts-visitor.c that were never false.
      
      Reviewed-by: default avatarHanna Czenczek <hreitz@redhat.com>
      Message-Id: <20230522190441.64278-8-eblake@redhat.com>
      [eblake: Drop dead code spotted by Markus]
      Signed-off-by: default avatarEric Blake <eblake@redhat.com>
      bd1386cc
  6. May 18, 2023
  7. Mar 22, 2023
  8. Mar 21, 2023
  9. Mar 10, 2023
  10. Feb 27, 2023
  11. Dec 21, 2022
  12. Dec 14, 2022
  13. Oct 31, 2022
  14. Oct 22, 2022
  15. Oct 06, 2022
  16. Aug 08, 2022
  17. Aug 01, 2022
Loading