1. 23 7月, 2018 11 次提交
  2. 19 7月, 2018 4 次提交
    • E
      conf: Introduce new video type 'none' · d48813e8
      Erik Skultety 提交于
      Historically, we've always enabled an emulated video device every time we
      see that graphics should be supported with a guest. With the appearance
      of mediated devices which can support QEMU's vfio-display capability,
      users might want to use such a device as the only video device.
      Therefore introduce a new, effectively a 'disable', type for video
      device.
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      Signed-off-by: NErik Skultety <eskultet@redhat.com>
      d48813e8
    • E
      qemu: command: Enable formatting vfio-pci.display option onto cmdline · c0ca6dcf
      Erik Skultety 提交于
      Since QEMU 2.12, QEMU understands a new vfio-pci device option 'display'
      which can be used to turn on display capabilities on vgpu-enabled
      mediated devices, IOW emulated GPU devices like QXL will no longer be
      needed with vgpu-enable mdevs.
      QEMU defaults to 'auto' for the 'display' attribute, which is not
      foolproof, so we need to play it safe here and default to display='off'
      if this attribute wasn't provided in the XML explicitly.
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      Signed-off-by: NErik Skultety <eskultet@redhat.com>
      c0ca6dcf
    • E
      conf: Introduce new <hostdev> attribute 'display' · d54e45b6
      Erik Skultety 提交于
      QEMU 2.12 introduced a new type of display for mediated devices using
      vfio-pci backend which allows a mediated device to be used as a VGA
      compatible device as an alternative to an emulated video device. QEMU
      exposes this feature via a vfio device property 'display' with supported
      values 'on/off/auto' (libvirt will default to 'off').
      
      This patch adds the necessary bits to domain config handling in order to
      expose this feature. Since there's no convenient way for libvirt to come
      up with usable defaults for the display setting, simply because libvirt
      is not able to figure out which of the display implementations - dma-buf
      which requires OpenGL support vs vfio regions which doesn't need OpenGL
      (works with OpenGL enabled too) - the underlying mdev uses.
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      Signed-off-by: NErik Skultety <eskultet@redhat.com>
      d54e45b6
    • E
      qemu: Introduce a new graphics display type 'headless' · d8266ebe
      Erik Skultety 提交于
      Since 2.10 QEMU supports a new display type egl-headless which uses the
      drm nodes for OpenGL rendering copying back the rendered bits back to
      QEMU into a dma-buf which can be accessed by standard "display" apps
      like VNC or SPICE. Although this display type can be used on its own,
      for any practical use case it makes sense to pair it with either VNC or
      SPICE display. The clear benefit of this display is that VNC gains
      OpenGL support, which it natively doesn't have, and SPICE gains remote
      OpenGL support (native OpenGL support only works locally through a UNIX
      socket, i.e. listen type=socket/none).
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      Signed-off-by: NErik Skultety <eskultet@redhat.com>
      d8266ebe
  3. 18 7月, 2018 3 次提交
  4. 10 7月, 2018 4 次提交
  5. 09 7月, 2018 1 次提交
    • E
      qemu: command: Fix building of the SDL display command line · ff767f08
      Erik Skultety 提交于
      QEMU uses a shorthand '-sdl' which maps to '-display sdl'. However, if
      there are any options to be passed to SDL, the full command version must
      be used. Everything seemingly worked for us until commit 5038b300
      introduced OpenGL support for SDL and added ',gl=on/off' option which as
      mentioned above could have never worked with the shorthand version of
      the command. Indeed starting a domain with an SDL display and OpenGL
      enabled, QEMU produces a rather cryptic error:
      
      -sdl: Could not open 'gl=on': No such file or directory
      
      This patch provides fixes to both the SDL cmdline generation and the
      test suite.
      Signed-off-by: NErik Skultety <eskultet@redhat.com>
      Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
      ff767f08
  6. 06 7月, 2018 2 次提交
  7. 03 7月, 2018 3 次提交
  8. 26 6月, 2018 4 次提交
  9. 22 6月, 2018 1 次提交
  10. 21 6月, 2018 1 次提交
    • C
      qemu_command: replace vlan= with netdev= for legacy nic · 14781dcd
      Cole Robinson 提交于
      VMs with hardcoded platform network devices are forced to use old
      style '-net nic' command line config. Current we use qemu's vlan
      option to hook this with the '-netdev' host side of things.
      
      However since qemu 1.2 there is '-net nic,netdev=X' option for
      explicitly referencing a netdev ID, which is more inline with
      typical VM commandlines, so let's switch to that
      Signed-off-by: NCole Robinson <crobinso@redhat.com>
      14781dcd
  11. 19 6月, 2018 5 次提交
  12. 13 6月, 2018 1 次提交