1. 21 11月, 2019 19 次提交
  2. 20 11月, 2019 4 次提交
  3. 19 11月, 2019 2 次提交
  4. 15 11月, 2019 12 次提交
  5. 14 11月, 2019 3 次提交
    • J
      conf: Drop nameLen parameter from virDomainCapsCPUModelsAdd · 18eeb75d
      Jiri Denemark 提交于
      All callers use nameLen == -1 anyway.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      18eeb75d
    • 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