1. 04 4月, 2016 4 次提交
    • L
      qemu: change args to qemuAssignDeviceHostdevAlias() · f09c7139
      Laine Stump 提交于
      In certain cases, we need to assign a hostdevN-style alias in a case
      when we don't have a virDomainHostdevDefPtr (instead we have a
      virDomainNetDefPtr). Since qemuAssignDeviceHostdevAlias() doesn't use
      anything in the virDomainHostdevDef except the alias string itself
      anyway, this patch just changes the arguments to pass a pointer to the
      alias pointer instead.
      f09c7139
    • L
      network: new function networkGetActualType · 3992ff14
      Laine Stump 提交于
      There are times when it's necessary to learn the actual type of a
      network connection before any resources have been allocated
      (e.g. during qemuProcessPrepareDomain()), but in the past it was
      necessary to call networkAllocateActualDevice() in order to have the
      actual type filled in.
      
      This new function returns the type of network that *will be* setup
      once it actually happens, but without making any changes on the host.
      3992ff14
    • M
      qemu: Clear generated private paths · d558fb34
      Martin Kletzander 提交于
      The paths have the domain ID in them.  Without cleaning them, they would
      contain the same ID even after multiple restarts.  That could cause
      various problems, e.g. with access.
      
      Add function qemuDomainClearPrivatePaths() for this as a counterpart of
      qemuDomainSetPrivatePaths().
      Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      d558fb34
    • M
      qemu: Simplify calls to qemuDomainSetPrivatePaths · 1893b6df
      Martin Kletzander 提交于
      Since commit 9dca74ee, the function can take driver and a vm, no
      need to overcomplicate.
      Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      1893b6df
  2. 02 4月, 2016 1 次提交
    • G
      apparmor: QEMU monitor socket moved · dfbc9a83
      Guido Günther 提交于
      The directory name changed in a89f05ba.
      
      This unbreaks launching QEMU/KVM VMs with apparmor enabled. It also adds
      the directory for the qemu guest-agent socket which is not known when
      parsing the domain XML.
      dfbc9a83
  3. 01 4月, 2016 8 次提交
  4. 31 3月, 2016 17 次提交
  5. 30 3月, 2016 10 次提交
    • P
      qemu: command: Split up formatting of -numa and memory devices · 13a4ec67
      Peter Krempa 提交于
      They recently were extracted to a separate function. They don't belong
      together though. Since -numa formatting is pretty compact, move it to
      the main function and rename qemuBuildNumaCommandLine to
      qemuBuildMemoryDeviceCommandLine.
      13a4ec67
    • P
      qemu: command: Pass numad nodeset when formatting memory devices at boot · 25c39f76
      Peter Krempa 提交于
      When starting up a VM libvirtd asks numad to place the VM in case of
      automatic nodeset. The nodeset would not be passed to the memory device
      formatter and the user would get an error.
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1269715
      25c39f76
    • P
      qemu_process: add check for hyperv features · 95bbe4bf
      Pavel Hrdina 提交于
      Commit 7068b56c introduced several hyperv features.  Not all hyperv
      features are supported by old enough kernels and we shouldn't allow to
      start a guest if kernel doesn't support any of the hyperv feature.
      
      There is one exception, for backward compatibility we cannot error out
      if one of the RELAXED, VAPIC or SPINLOCKS isn't supported, for the same
      reason we ignore invtsc, to not break restoring saved domains with older
      libvirt.
      Signed-off-by: NPavel Hrdina <phrdina@redhat.com>
      95bbe4bf
    • P
      qemu_process: skip only cpu features · e7cc2e3b
      Pavel Hrdina 提交于
      This check is there to allow restore saved domain with older libvirt
      where we included invtsc by default for host-passthrough model.  Don't
      skip the whole function, but only the part that checks for invtsc.
      Signed-off-by: NPavel Hrdina <phrdina@redhat.com>
      e7cc2e3b
    • P
      docs: fix qemu version for hyperv features · ec4c80b0
      Pavel Hrdina 提交于
      Signed-off-by: NPavel Hrdina <phrdina@redhat.com>
      ec4c80b0
    • A
      host-validate: Fix suggestion for missing cpu cgroup · 53d3874c
      Andrea Bolognani 提交于
      If the cpu cgroup is not found when validating an host for
      LXC support, virt-host-validate will suggest to enable the
      CONFIG_CGROUP_SCHED kconfig option.
      
      The appropriate option is really CONFIG_CGROUP_CPU. The
      QEMU checks already get that right, so no changes needed.
      53d3874c
    • R
      nss: FreeBSD support · 45408cd8
      Roman Bogorodskiy 提交于
       * tools/nss/libvirt_nss.[ch]: add BSD-comptabile wrappers and
         register via the nss_module_register() interface
       * m4/virt-nss.m4: add checks if we're building NSS for FreeBSD
       * tools/Makefile.am: handle target library name differences, as
         Linux needs libnss_libvirt.so.2 and FreeBSD needs
         nss_libvirt.so.1. Also, different syms files have to be used
         as Linux needs to export all the methods while FreeBSD
         only needs to have nss_module_register()
       * tests/nsstest.c, tests/nssmock.c: s/__linux__/NSS/
       * tests/nssmock.c: pass int instead of mode_t to va_arg() to please
         gcc 4.8
       * libvirt_nss_bsd.syms: FreeBSD syms file
      45408cd8
    • J
      libxl: only disable domain death events in libxlDomainCleanup · e23a640c
      Jim Fehlig 提交于
      Remove disabling domain death events from libxlDomainStart error
      path. The domain death event is already disabled in libxlDomainCleanup.
      Signed-off-by: NJim Fehlig <jfehlig@suse.com>
      e23a640c
    • C
      libxl: fix resource leaks in libxlDomainStart error paths · 45fc2c14
      Chunyan Liu 提交于
      libxlDomainStart allocates and reserves resources that were not
      being released in error paths. libxlDomainCleanup already handles
      the job of releasing resources, and libxlDomainStart should call
      it when encountering a failure.
      
      Change the error handling logic to call libxlDomainCleanup on
      failure. This includes acquiring the lease sooner and allowing
      it to be released in libxlDomainCleanup on failure, similar to
      the way other resources are reclaimed. With the lease now
      released in libxlDomainCleanup, the release_dom label can be
      renamed to cleanup_dom to better reflect its changed semantics.
      Signed-off-by: NJim Fehlig <jfehlig@suse.com>
      45fc2c14
    • J
      libxl: rename cleanup_dom label · a75e35a0
      Jim Fehlig 提交于
      Rename cleanup_dom label to destroy_dom, which better describes what
      it does.
      Signed-off-by: NJim Fehlig <jfehlig@suse.com>
      a75e35a0