1. 30 3月, 2016 2 次提交
  2. 29 3月, 2016 4 次提交
  3. 21 3月, 2016 3 次提交
    • J
      conf: add 'state' attribute to <hap> feature · 9d243e08
      Jim Fehlig 提交于
      Most hypervisors use Hardware Assisted Paging by default and don't
      require specifying the feature in domain conf. But some hypervisors
      support disabling HAP on a per-domain basis. To enable HAP by default
      yet provide a knob to disable it, extend the <hap> feature with a
      'state=on|off' attribute, similar to <pvspinlock> and <vmport> features.
      
      In the absence of <hap>, the hypervisor default (on) is used. <hap>
      without the state attribute would be the same as <hap state='on'/> for
      backwards compatibility. And of course <hap state='off'/> disables hap.
      Signed-off-by: NJim Fehlig <jfehlig@suse.com>
      9d243e08
    • J
      Add event and state details for post-copy · 5a9cbc62
      Jiri Denemark 提交于
      VIR_DOMAIN_EVENT_SUSPENDED_POSTCOPY and VIR_DOMAIN_PAUSED_POSTCOPY are
      used on the source host once migration enters post-copy mode (which
      means the domain gets paused on the source. After the destination host
      takes over the execution of the domain, its virtual CPUs are resumed and
      the domain enters VIR_DOMAIN_RUNNING_POSTCOPY state and
      VIR_DOMAIN_EVENT_RESUMED_POSTCOPY event is emitted.
      
      In case migration fails during post-copy mode and none of the hosts have
      complete state of the domain, both domains will remain paused with
      VIR_DOMAIN_PAUSED_POSTCOPY_FAILED reason and an upper layer may decide
      what to do.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      5a9cbc62
    • C
      domain: Add virDomainDefAddImplicitDevices · 9a423d18
      Cole Robinson 提交于
      It's just a combination of AddImplicitControllers, and AddConsoleCompat.
      Every caller that wants ImplicitControllers also wants the ConsoleCompat
      AFAICT, so lump them together. We also need it for future patches.
      9a423d18
  4. 19 3月, 2016 1 次提交
    • C
      domain: Remove controller/net address whitelists · 2dabe2e0
      Cole Robinson 提交于
      Judging by how the whitelist has skewed quite far from the original
      error message, I think it's better to just drop these.
      
      If someone wants to revive this check I suggest implementing it on
      a per-HV driver basis with PostParse callbacks.
      2dabe2e0
  5. 11 3月, 2016 2 次提交
    • J
      qemu: Introduce qemuBuildDiskDriveCommandLine · 0ea0f6c4
      John Ferlan 提交于
      Add new function to manage adding the disk -drive options to the
      command line removing that task from the mainline qemuBuildCommandLine.
      
      Also since using const virDomainDef in new function, that means other
      functions called needed to change their usage.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      0ea0f6c4
    • J
      qemu: Introduce qemuBuildControllerDevCommandLine · 4908772e
      John Ferlan 提交于
      Add new function to manage adding the controller -device options to the
      command line removing that task from the mainline qemuBuildCommandLine.
      
      Also adjust to using const virDomainDef instead of virDomainDefPtr.
      This causes collateral damage in order to modify called APIs to use
      the const virDomainDef instead as well.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      4908772e
  6. 10 3月, 2016 2 次提交
  7. 09 3月, 2016 5 次提交
    • P
      conf: extract ignoring of inactive vcpu pinning information · acf521e1
      Peter Krempa 提交于
      Introduce VIR_DOMAIN_DEF_FEATURE_OFFLINE_VCPUPIN domain feature flag
      whcih will allow to skip ignoring of the pinning information for
      hypervisor drivers which will want to implement forward-pinning of
      vcpus.
      acf521e1
    • P
      conf: refactor checking for unsupported memory devices · 185d13b1
      Peter Krempa 提交于
      Introduce a helper to check supported device and domain config and move
      the memory hotplug checks to it.
      
      The advantage of this approach is that by default all new features are
      considered unsupported by all hypervisors unless specifically changed
      rather than the previous approach where every hypervisor would need to
      declare that a given feature is unsupported.
      185d13b1
    • P
      conf: introduce parser feature flags · 23eb3821
      Peter Krempa 提交于
      To avoid having to forbid new features added to domain XML in post parse
      callbacks for individual hypervisor drivers the feature flag mechanism
      will allow to add a central check that will be disabled for the drivers
      that will add support.
      
      As a first example flag, the 'hasWideSCSIBus' is converted to the new
      bitmap.
      23eb3821
    • P
      qemu: Report pinning for all vCPUs in qemuDomainGetVcpuPinInfo · 0fe41f1a
      Peter Krempa 提交于
      The API documentation states that the function is returning pinning for
      all vCPUs, so we can actually do so if the user passes a large enough
      array.
      0fe41f1a
    • P
      conf: Extract code filling data for virDomainGetVcpuPinInfo · e498e904
      Peter Krempa 提交于
      The implementation of the inner guts of the function is similar for all
      drivers, so we can add a helper and not have to reimplement it three
      times.
      e498e904
  8. 08 3月, 2016 1 次提交
  9. 03 3月, 2016 1 次提交
    • M
      Initialize couple of variables. · bde6e002
      Michal Privoznik 提交于
      While trying to build with -Os couple of compile errors showed
      up.
      
      conf/domain_conf.c: In function 'virDomainChrRemove':
      conf/domain_conf.c:13666:24: error: 'ret' may be used uninitialized in this function [-Werror=maybe-uninitialized]
           virDomainChrDefPtr ret, **arrPtr = NULL;
                              ^
      Compiler fails to see that @ret is used only if set in the loop,
      but whatever, there's no harm in initializing the variable.
      
      In vboxAttachDrivesNew and _vboxAttachDrivesOld compiler thinks
      that @rc may be used uninitialized. Well, not directly, but maybe
      after some optimization. Yet again, no harm in initializing a
      variable.
      
      In file included from ./util/virthread.h:26:0,
                       from ./datatypes.h:28,
                       from vbox/vbox_tmpl.c:43,
                       from vbox/vbox_V3_1.c:37:
      vbox/vbox_tmpl.c: In function '_vboxAttachDrivesOld':
      ./util/virerror.h:181:5: error: 'rc' may be used uninitialized in this function [-Werror=maybe-uninitialized]
           virReportErrorHelper(VIR_FROM_THIS, code, __FILE__,              \
           ^
      In file included from vbox/vbox_V3_1.c:37:0:
      vbox/vbox_tmpl.c:1041:14: note: 'rc' was declared here
           nsresult rc;
                    ^
      Yet again, one uninitialized variable:
      
      qemu/qemu_driver.c: In function 'qemuDomainBlockCommit':
      qemu/qemu_driver.c:17194:9: error: 'baseSource' may be used uninitialized in this function [-Werror=maybe-uninitialized]
               qemuDomainPrepareDiskChainElement(driver, vm, baseSource,
               ^
      
      And another one:
      
      storage/storage_backend_logical.c: In function 'virStorageBackendLogicalMatchPoolSource.isra.2':
      storage/storage_backend_logical.c:618:33: error: 'thisSource' may be used uninitialized in this function [-Werror=maybe-uninitialized]
                             thisSource->devices[j].path))
                                       ^
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      bde6e002
  10. 01 3月, 2016 6 次提交
  11. 26 2月, 2016 1 次提交
  12. 22 2月, 2016 2 次提交
  13. 19 2月, 2016 2 次提交
    • C
      domain: add implicit controllers from post parse · 4066c734
      Cole Robinson 提交于
      Seems like the natural fit, since we are already adding other XML bits
      in the PostParse routine.
      
      Previously AddImplicitControllers was only called at the end of XML
      parsing, meaning code that builds a DomainDef by hand had to manually
      call it. Now those PostParse callers get it for free.
      
      There's some test churn here; xen xm and sexpr test suite bits weren't
      calling this before, but now they are, so you'll see new IDE controllers.
      I don't think this will cause problems in practice, since the code already
      needs to handle these implicit controllers like in the case when a user
      defines their own XML.
      4066c734
    • J
      Check for active domain in virDomainObjWait · 5591ca50
      Jiri Denemark 提交于
      virDomainObjWait is designed to be called in a loop. Make sure we break
      the loop in case the domain dies to avoid waiting for an event which
      will never happen.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      5591ca50
  14. 18 2月, 2016 1 次提交
  15. 17 2月, 2016 1 次提交
    • A
      conf: Use a temporary int variable to store GIC version · cda1cc17
      Andrea Bolognani 提交于
      Since no value in the virGICVersion enumeration is negative, a clever
      enough compiler can report an error such as
      
        src/conf/domain_conf.c:15337:75: error: comparison of unsigned enum
        expression < 0 is always false [-Werror,-Wtautological-compare]
          if ((def->gic_version = virGICVersionTypeFromString(tmp)) < 0 ||
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~
      
      virGICVersionTypeFromString() can, however, return a negative value if
      the input string is not part of the enumeration, so we definitely need
      that check.
      
      Work around the problem by storing the return value in a temporary int
      variable.
      cda1cc17
  16. 16 2月, 2016 1 次提交
  17. 10 2月, 2016 1 次提交
  18. 08 2月, 2016 4 次提交