1. 15 11月, 2019 3 次提交
  2. 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
  3. 13 11月, 2019 6 次提交
  4. 12 11月, 2019 3 次提交
  5. 11 11月, 2019 3 次提交
    • P
      tests: make domaincapstest less anoying to debug · 63d60408
      Peter Krempa 提交于
      Since 6a077cf2 domaincapstest does not run through all cases on
      failure but terminates right away. This makes it super annoying to debug
      or use in combination with VIR_TEST_REGENERATE_OUTPUT.
      
      Fix it by remembering failure and still running through all cases.
      Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
      Reviewed-by: NDaniel Henrique Barboza <danielhb413@gmail.com>
      63d60408
    • D
      python: sanitize spaces either side of operators · 43d29cb4
      Daniel P. Berrangé 提交于
      There should be a single space either side of operators. Inline
      comments should have two spaces before the '#'
      
      src/hyperv/hyperv_wmi_generator.py:130:45: E261 at least two spaces before inline comment
                  source += '    { "", "", 0 },\n' # null terminated
                                                  ^
      src/esx/esx_vi_generator.py:417:25: E221 multiple spaces before operator
          FEATURE__DESERIALIZE  = (1 << 6)
                              ^
      tests/cputestdata/cpu-cpuid.py:187:78: E225 missing whitespace around operator
                      f.write("  <msr index='0x%x' edx='0x%08x' eax='0x%08x'/>\n" %(
                                                                                   ^
      docs/apibuild.py:524:47: E226 missing whitespace around arithmetic operator
                                  self.line = line[i+2:]
                                                    ^
      ...more...
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      43d29cb4
    • D
      python: sanitize blank line usage · bc59247d
      Daniel P. Berrangé 提交于
      Coding style expects 1 blank line between each method and 2 blank lines
      before each class.
      
      docs/apibuild.py:171:5: E303 too many blank lines (2)
          def set_header(self, header):
          ^
      docs/apibuild.py:230:1: E302 expected 2 blank lines, found 1
      class index:
      ^
      docs/apibuild.py:175:5: E301 expected 1 blank line, found 0
          def set_module(self, module):
          ^
      ...more...
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      bc59247d
  6. 09 11月, 2019 2 次提交
  7. 07 11月, 2019 9 次提交
  8. 25 10月, 2019 11 次提交