Skip to content
Snippets Groups Projects
  1. Jul 13, 2022
  2. Jul 12, 2022
  3. Jun 24, 2022
  4. Jun 15, 2022
    • Jagannathan Raman's avatar
      vfio-user: build library · 55116968
      Jagannathan Raman authored
      
      add the libvfio-user library as a submodule. build it as a meson
      subproject.
      
      libvfio-user is distributed with BSD 3-Clause license and
      json-c with MIT (Expat) license
      
      Signed-off-by: default avatarElena Ufimtseva <elena.ufimtseva@oracle.com>
      Signed-off-by: default avatarJohn G Johnson <john.g.johnson@oracle.com>
      Signed-off-by: default avatarJagannathan Raman <jag.raman@oracle.com>
      Reviewed-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      Message-id: c2adec87958b081d1dc8775d4aa05c897912f025.1655151679.git.jag.raman@oracle.com
      
      [Changed submodule URL to QEMU's libvfio-user mirror on GitLab. The QEMU
      project mirrors its dependencies so that it can provide full source code
      even in the event that its dependencies become unavailable. Note that
      the mirror repo is manually updated, so please contact me to make newer
      libvfio-user commits available. If I become a bottleneck we can set up a
      cronjob.
      
      Updated scripts/meson-buildoptions.sh to match the meson_options.txt
      change. Failure to do so can result in scripts/meson-buildoptions.sh
      being modified by the build system later on and you end up with a dirty
      working tree.
      --Stefan]
      
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      55116968
  5. Jun 14, 2022
  6. May 18, 2022
  7. May 17, 2022
  8. May 07, 2022
  9. Apr 28, 2022
  10. Apr 27, 2022
  11. Feb 21, 2022
  12. Feb 16, 2022
  13. Feb 09, 2022
  14. Dec 21, 2021
    • Marc-André Lureau's avatar
      ui: add a D-Bus display backend · 142ca628
      Marc-André Lureau authored
      
      The "dbus" display backend exports the QEMU consoles and other
      UI-related interfaces over D-Bus.
      
      By default, the connection is established on the session bus, but you
      can specify a different bus with the "addr" option.
      
      The backend takes the "org.qemu" service name, while still allowing
      further instances to queue on the same name (so you can lookup all the
      available instances too). It accepts any number of clients at this
      point, although this is expected to evolve with options to restrict
      clients, or only accept p2p via fd passing.
      
      The interface is intentionally very close to the internal QEMU API,
      and can be introspected or interacted with busctl/dfeet etc:
      
      $ ./qemu-system-x86_64 -name MyVM -display dbus
      $ busctl --user introspect org.qemu /org/qemu/Display1/Console_0
      
      org.qemu.Display1.Console           interface -         -               -
      .RegisterListener                   method    h         -               -
      .SetUIInfo                          method    qqiiuu    -               -
      .DeviceAddress                      property  s         "pci/0000/01.0" emits-change
      .Head                               property  u         0               emits-change
      .Height                             property  u         480             emits-change
      .Label                              property  s         "VGA"           emits-change
      .Type                               property  s         "Graphic"       emits-change
      .Width                              property  u         640             emits-change
      [...]
      
      See the interfaces XML source file and Sphinx docs for the generated API
      documentations.
      
      Signed-off-by: default avatarMarc-André Lureau <marcandre.lureau@redhat.com>
      Acked-by: default avatarGerd Hoffmann <kraxel@redhat.com>
      142ca628
  15. Dec 15, 2021
  16. Nov 16, 2021
    • Richard W.M. Jones's avatar
      nbd/server: Add --selinux-label option · 3d212b41
      Richard W.M. Jones authored
      Under SELinux, Unix domain sockets have two labels.  One is on the
      disk and can be set with commands such as chcon(1).  There is a
      different label stored in memory (called the process label).  This can
      only be set by the process creating the socket.  When using SELinux +
      SVirt and wanting qemu to be able to connect to a qemu-nbd instance,
      you must set both labels correctly first.
      
      For qemu-nbd the options to set the second label are awkward.  You can
      create the socket in a wrapper program and then exec into qemu-nbd.
      Or you could try something with LD_PRELOAD.
      
      This commit adds the ability to set the label straightforwardly on the
      command line, via the new --selinux-label flag.  (The name of the flag
      is the same as the equivalent nbdkit option.)
      
      A worked example showing how to use the new option can be found in
      this bug: https://bugzilla.redhat.com/show_bug.cgi?id=1984938
      
      Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1984938
      
      
      Signed-off-by: default avatarRichard W.M. Jones <rjones@redhat.com>
      Reviewed-by: default avatarDaniel P. Berrangé <berrange@redhat.com>
      
      [eblake: rebase to configure changes, reject --selinux-label if it is
      not compiled in or not used on a Unix socket]
      Note that we may relax some of these restrictions at a later date,
      such as making it possible to label a TCP socket, although it may be
      smarter to do so as a generic QMP action rather than more one-off
      command lines in qemu-nbd.
      Signed-off-by: default avatarEric Blake <eblake@redhat.com>
      Message-Id: <20211115202944.615966-1-eblake@redhat.com>
      Reviewed-by: default avatarThomas Huth <thuth@redhat.com>
      [eblake: adjust meson output as suggested by thuth]
      Signed-off-by: default avatarEric Blake <eblake@redhat.com>
      3d212b41
  17. Nov 11, 2021
Loading