1. 02 1月, 2019 4 次提交
  2. 17 12月, 2018 1 次提交
    • D
      qemu: use line breaks in command line args written to log · 07c9d660
      Daniel P. Berrangé 提交于
      The QEMU command line arguments are very long and currently all written
      on a single line to /var/log/libvirt/qemu/$GUEST.log. This introduces
      logic to add line breaks after every env variable and "-" optional
      argument, and every positional argument. This will create a clearer log
      file, which will in turn present better in bug reports when people cut +
      paste from the log into a bug comment.
      
      An example log file entry now looks like this:
      
        2018-12-14 12:57:03.677+0000: starting up libvirt version: 5.0.0, qemu version: 3.0.0qemu-3.0.0-1.fc29, kernel: 4.19.5-300.fc29.x86_64, hostname: localhost.localdomain
        LC_ALL=C \
        PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin \
        HOME=/home/berrange \
        USER=berrange \
        LOGNAME=berrange \
        QEMU_AUDIO_DRV=none \
        /usr/bin/qemu-system-ppc64 \
        -name guest=guest,debug-threads=on \
        -S \
        -object secret,id=masterKey0,format=raw,file=/home/berrange/.config/libvirt/qemu/lib/domain-33-guest/master-key.aes \
        -machine pseries-2.10,accel=tcg,usb=off,dump-guest-core=off \
        -m 1024 \
        -realtime mlock=off \
        -smp 1,sockets=1,cores=1,threads=1 \
        -uuid c8a74977-ab18-41d0-ae3b-4041c7fffbcd \
        -display none \
        -no-user-config \
        -nodefaults \
        -chardev socket,id=charmonitor,fd=23,server,nowait \
        -mon chardev=charmonitor,id=monitor,mode=control \
        -rtc base=utc \
        -no-shutdown \
        -boot strict=on \
        -device qemu-xhci,id=usb,bus=pci.0,addr=0x1 \
        -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x2 \
        -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \
        -msg timestamp=on
        2018-12-14 12:57:03.730+0000: shutting down, reason=failed
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      07c9d660
  3. 14 12月, 2018 1 次提交
  4. 13 12月, 2018 1 次提交
  5. 12 12月, 2018 2 次提交
    • E
      conf: domain: gfx: Iterate over graphics devices when doing validation · dd45c271
      Erik Skultety 提交于
      The QEMU validation code for graphics has been in place for a while, but
      because it is only executed from virDomainDeviceInfoIterateInternal, it
      was never run, since the iterator expects the device to have boot info
      which graphics don't have. The unfortunate side effect of this whole mess
      was that a few capabilities were missing from the test suite (as commit
      d8266ebe demonstrated with graphics-spice-invalid-egl-headless test),
      which in turn meant that a few graphics tests which expected a failure
      happily accepted any failure the test runtime returned which made them
      succeed. The impact of this was that we then allowed to start a domain
      with multiple OpenGL-enabled graphics devices.
      
      This patch enables iteration over graphics devices. Unsurprisingly,
      a few tests started to fail as a result, so fix those too.
      Signed-off-by: NErik Skultety <eskultet@redhat.com>
      Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
      dd45c271
    • E
      tests: Introduce negative versions of DO_TEST_CAPS_LATEST · 0d5244cc
      Erik Skultety 提交于
      It's fairly easy to forget to add a capability to the list of
      capabilities for a negative test case which might yield (for us) very
      unfortunate results. Therefore, introduce negative versions of
      DO_TEST_CAPS_LATEST macros, so that real QEMU caps can be used with
      tests that expect a failure too.
      Signed-off-by: NErik Skultety <eskultet@redhat.com>
      Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
      0d5244cc
  6. 03 12月, 2018 2 次提交
  7. 28 11月, 2018 1 次提交
  8. 16 11月, 2018 1 次提交
    • M
      qemu: add memfd source type · 24b74d18
      Marc-André Lureau 提交于
      Add a new memoryBacking source type "memfd", supported by QEMU (when
      the capability is available).
      
      A memfd is a specialized anonymous memory kind. As such, an anonymous
      source type could be automatically using a memfd. However, there are
      some complications when migrating from different memory backends in
      qemu (mainly due to the internal object naming at this point, but
      there could be more). For now, it is simpler and safer to simply
      introduce a new source type "memfd". Eventually, the "anonymous" type
      could learn to use memfd transparently in a separate change.
      
      The main benefits are that it doesn't need to create filesystem files,
      and it also enforces sealing, providing a bit more safety.
      Signed-off-by: NMarc-André Lureau <marcandre.lureau@redhat.com>
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      24b74d18
  9. 15 11月, 2018 3 次提交
  10. 15 10月, 2018 7 次提交
  11. 21 9月, 2018 2 次提交
  12. 20 9月, 2018 2 次提交
  13. 17 9月, 2018 1 次提交
  14. 13 9月, 2018 7 次提交
  15. 12 9月, 2018 4 次提交
  16. 07 9月, 2018 1 次提交