1. 18 7月, 2016 3 次提交
    • J
      Allow omitting USB port · 4f903643
      Ján Tomko 提交于
      We were requiring a USB port path in the schema, but not enforcing it.
      Omitting the USB port would lead to libvirt formatting it as (null).
      Such domain cannot be started and will disappear after libvirtd restart
      (since it cannot parse back the XML).
      
      Only format the port if it has been specified and mark it as optional
      in the XML schema.
      4f903643
    • J
      qemu: Drop default channel path during migration · 08d566a0
      Jiri Denemark 提交于
      Migration to an older libvirt (pre v1.3.0-175-g71408079) is broken
      because older versions of libvirt generated different channel paths and
      they didn't drop the default paths when parsing domain XMLs. We'd get
      such a nice error message:
      
          internal error: process exited while connecting to monitor:
          2016-07-08T15:28:02.665706Z qemu-kvm: -chardev socket,
          id=charchannel0,path=/var/lib/libvirt/qemu/channel/target/
          domain-3-nest/org.qemu.guest_agent.0,server,nowait: Failed to bind
          socket to /var/lib/libvirt/qemu/channel/target/domain-3-nest/
          org.qemu.guest_agent.0: No such file or directory
      
      That said, we should not even format the default paths when generating a
      migratable XML.
      
      https://bugzilla.redhat.com/show_bug.cgi?id=1320470Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      08d566a0
    • J
      qemu: Copy complete domain def in qemuDomainDefFormatBuf · b1305a6b
      Jiri Denemark 提交于
      Playing directly with our live definition, updating it, and reverting it
      back once we are done is very nice and it's quite dangerous too. Let's
      just make a copy of the domain definition if needed and do all tricks on
      the copy.
      
      https://bugzilla.redhat.com/show_bug.cgi?id=1320470Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      b1305a6b
  2. 15 7月, 2016 6 次提交
  3. 14 7月, 2016 4 次提交
    • A
      tests: command: Fix build on ppc64/aarch64 · 5bcbf724
      Andrea Bolognani 提交于
      Commit ca10bb04 introduced a new test that fails to build
      on at least some architectures:
      
        commandtest.c: In function 'test25':
        commandtest.c:1121:5: error: comparison is always true due to
                              limited range of data type [-Werror=type-limits]
          if (rv >= 0) {
          ^
      
      Change the type of 'rv' from char to int, which is the proper
      return type for virCommandExec() anyway.
      5bcbf724
    • A
      spec: Fix indentation · 55d8daa0
      Andrea Bolognani 提交于
      Commit ffc49e57 broke syntax-check:
      
        cppi: libvirt.spec.in: line 622: not properly indented
        cppi: libvirt.spec.in: line 624: not properly indented
        cppi: libvirt.spec.in: line 640: not properly indented
        cppi: libvirt.spec.in: line 642: not properly indented
        maint.mk: incorrect preprocessor indentation
        cfg.mk:697: recipe for target 'sc_spec_indentation' failed
      
      Indent the new conditionals properly.
      55d8daa0
    • M
      conf: Make really sure we don't access non-existing vCPUs again · 05f89657
      Martin Kletzander 提交于
      MinGW complained that we might be dereferencing a NULL pointer.  While
      that can't be true, the logic certainly allows for that.
      
      ../../src/conf/domain_conf.c: In function 'virDomainDefPostParse':
      ../../src/conf/domain_conf.c:4224:18: error: potential null pointer dereference [-Werror=null-dereference]
               if (!vcpu->online && vcpu->cpumask) {
                    ~~~~^~~~~~~~
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      05f89657
    • D
      libvirt.spec.in: require systemd-container on >= f24 · ffc49e57
      Daniel P. Berrange 提交于
      The systemd-machined tools libvirt uses were split into a
      systemd-container RPM. Without depending on this, libvirt
      may silently fallback to the non-systemd cgroup impl which
      is not desirable.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      ffc49e57
  4. 13 7月, 2016 7 次提交
  5. 12 7月, 2016 20 次提交