1. 09 12月, 2019 2 次提交
  2. 19 11月, 2019 1 次提交
  3. 15 11月, 2019 3 次提交
    • M
      tests: Mock access to /dev/kvm · 9e4445eb
      Michal Privoznik 提交于
      Some of our tests try to validate domain XMLs they are working
      with (not intentionally, simply because they call top level
      domain XML parse function). Anyway, this implies that we build
      domain capabilities also - see
      virQEMUDriverGetDomainCapabilities(). And since some domain XMLs
      are type of 'kvm' the control gets through
      virQEMUCapsFillDomainCaps() and virHostCPUGetKVMMaxVCPUs() to
      opening /dev/kvm which may be missing on the machine we're
      running 'make check'.
      
      Previously, we did not see this issue, because it was masked. If
      building domain capabilities failed for whatever reason, we
      ignored the failure. Only v5.9.0-207-gc69e6ede uncovered the
      problem (it changed reval from 0 to -1 if
      virQEMUDriverGetDomainCapabilities() fails). Since the referenced
      commit is correct, we need to mock access to /dev/kvm in our
      tests.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      9e4445eb
    • J
      Use g_mkdtemp instead of mkdtemp · ef886986
      Ján Tomko 提交于
      Prefer the GLib version to the one from gnulib.
      Signed-off-by: NJán Tomko <jtomko@redhat.com>
      Reviewed-by: NPeter Krempa <pkrempa@redhat.com>
      ef886986
    • J
      qemu: Set capabilities properly for tests · b9647356
      Jonathon Jongsma 提交于
      Several tests were not specifying the necessary qemu capabilities for
      what they were testing. Due to the way that the video devices are
      currently validated, this is not causing any problems. But a change to
      video device validation in a following patch would have exposed this
      issue and resulted in multiple test failures about the domain
      configuration not supporting particular video models.
      Reviewed-by: NCole Robinson <crobinso@redhat.com>
      Signed-off-by: NJonathon Jongsma <jjongsma@redhat.com>
      b9647356
  4. 14 11月, 2019 2 次提交
    • D
      qemu: Remove qemu_hotplugpriv.h and qemuDomainRemoveDeviceWaitTime · 2fe78a83
      Daniel Henrique Barboza 提交于
      qemu_hotplugpriv.h is a header file created to share a global variable
      called 'qemuDomainRemoveDeviceWaitTime', declared in qemu_hotplug.c,
      to other files that would want to change the timeout value
      (currently, only tests/qemuhotplugtest.c).
      
      Previous patch deprecated the variable, using qemu_driver->unplugTimeout
      to set the timeout instead. This means that the header file is now
      unused, and can be safely discarded.
      Reviewed-by: NCole Robinson <crobinso@redhat.com>
      Signed-off-by: NDaniel Henrique Barboza <danielhb413@gmail.com>
      2fe78a83
    • D
      qemu_hotplug.c: adding qemuDomainGetUnplugTimeout · e03e27ee
      Daniel Henrique Barboza 提交于
      For some architectures and setups, device removal can take
      longer than the default 5 seconds. This results in commands
      such as 'virsh setvcpus' to fire timeout messages even if
      the operation were successful in the guest, confusing the
      user.
      
      This patch sets a new 10 seconds unplug timeout for PPC64
      guests. All other archs will keep the default 5 seconds
      timeout.
      
      Instead of putting 'if PPC64' conditionals inside qemu_hotplug.c
      to set the new timeout value, a new function called
      qemuDomainGetUnplugTimeout was added. The timeout value is then
      retrieved when needed, by passing the correspondent DomainDef
      object. This approach allows for different guest architectures
      to have distint unplug timeout intervals, regardless of the
      host architecture. This design also makes it easier to
      modify/enhance the unplug timeout logic in the future
      (allow for special timeouts for TCG domains, for example).
      
      A new mock file was created to work with qemuhotplugtest.c,
      given that the test timeout is significantly shorter than
      the actual timeout value in qemu_hotplug.c.
      
      The now unused 'qemuDomainRemoveDeviceWaitTime' global can't
      be simply erased from qemu_hotplug.c though. Next patch will
      remove it properly.
      Reviewed-by: NCole Robinson <crobinso@redhat.com>
      Suggested-by: NCole Robinson <crobinso@redhat.com>
      Signed-off-by: NDaniel Henrique Barboza <danielhb413@gmail.com>
      e03e27ee
  5. 12 11月, 2019 1 次提交
  6. 07 11月, 2019 1 次提交
  7. 21 10月, 2019 1 次提交
  8. 16 10月, 2019 1 次提交
  9. 19 9月, 2019 1 次提交
  10. 09 9月, 2019 1 次提交
  11. 27 8月, 2019 1 次提交
  12. 09 8月, 2019 2 次提交
    • J
      qemu: Pass correct qemuCaps to virDomainDeviceDefPostParse · b449c270
      Jiri Denemark 提交于
      Since qemuDomainDeviceDefPostParse callback requires qemuCaps, we need
      to make sure it gets the capabilities stored in the domain's private
      data if the domain is running. Passing NULL may cause QEMU capabilities
      probing to be triggered in case QEMU binary changed in the meantime.
      When this happens while a running domain object is locked, QMP event
      delivered to the domain before QEMU capabilities probing finishes will
      deadlock the event loop.
      
      QEMU capabilities lookup (via domainPostParseDataAlloc callback) is
      hidden inside virDomainDeviceDefPostParseOne with no way to pass
      qemuCaps to virDomainDeviceDef* functions. This patch fixes all
      remaining paths leading to virDomainDeviceDefPostParse.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
      b449c270
    • J
      qemu: Pass correct qemuCaps to virDomainDefCopy · bbcfa07b
      Jiri Denemark 提交于
      Since qemuDomainDefPostParse callback requires qemuCaps, we need to make
      sure it gets the capabilities stored in the domain's private data if the
      domain is running. Passing NULL may cause QEMU capabilities probing to
      be triggered in case QEMU binary changed in the meantime. When this
      happens while a running domain object is locked, QMP event delivered to
      the domain before QEMU capabilities probing finishes will deadlock the
      event loop.
      
      Several general functions from domain_conf.c were lazily passing NULL as
      the parseOpaque pointer instead of letting their callers pass the right
      data. This patch fixes all paths leading to virDomainDefCopy to do the
      right thing.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
      bbcfa07b
  13. 20 6月, 2019 1 次提交
  14. 17 6月, 2019 1 次提交
  15. 07 6月, 2019 2 次提交
  16. 18 4月, 2019 1 次提交
  17. 26 3月, 2019 1 次提交
    • L
      test: replace calls to individual detach functions with one call to main detach · d3aab990
      Laine Stump 提交于
      The individual qemuDomainDetach*Device() functions will soon be "less
      functional", since some of the code that is duplicated in 10 of the 12
      detach functions is going to be moved into the common
      qemuDomainDetachDeviceLive(), which calls them all.
      
      qemuhotplugtest.c is the only place any of these individual functions
      is called other than qemuDomainDetachDeviceLive() itself. Fortunately,
      qemuDomainDetachDeviceLive() provides exactly the functionality needed
      by the test driver (except that it supports detach of more device
      types than the test driver has tests for).
      
      This patch replaces the calls to
      qemuDomainDetach(Chr|Shmen|Watchdog|Disk)Device with a single call to
      the higher level function, allowing us to shift functionality between
      the lower level functions without breaking the tests.
      Signed-off-by: NLaine Stump <laine@laine.org>
      ACKed-by: NPeter Krempa <pkrempa@redhat.com>
      d3aab990
  18. 14 2月, 2019 1 次提交
  19. 08 2月, 2019 4 次提交
  20. 14 12月, 2018 2 次提交
  21. 08 10月, 2018 1 次提交
  22. 21 8月, 2018 1 次提交
  23. 13 8月, 2018 2 次提交
  24. 26 7月, 2018 1 次提交
  25. 18 7月, 2018 2 次提交
  26. 28 5月, 2018 1 次提交
  27. 14 5月, 2018 1 次提交
  28. 11 5月, 2018 1 次提交