1. 11 1月, 2013 5 次提交
    • E
      maint: don't distribute generated .def files · daa886b6
      Eric Blake 提交于
      I ran 'make dist' in the directory left over from ./autobuild.sh
      (which was configured for a mingw cross build); the resulting
      tarball had more files than 'make dist' on a normal Linux build.
      I traced it to the fact that we were distributing a generated
      file, but only when configure said the end user had to generate
      the file in the first place.  In the process, I noticed that
      we had some difference in symbol file names; I added a comment
      explaining why the difference exists (after first trying to
      normalize the names and hitting VPATH build failures).
      
      * configure.ac (LIBVIRT_QEMU_SYMBOL_FILE): Add some comments.
      * src/Makefile.am (EXTRA_DIST): No need to ship a generated file;
      particularly since which file is built depends on configure results.
      daa886b6
    • E
      spec: remove redundant %if · 86007cba
      Eric Blake 提交于
      The daemon-driver-{qemu,lxc} packages are only built if
      %{with_driver_modules} is specified, so they do not need to
      further test this condition.  Likewise, the daemon package
      is only built if %{with_libvirtd} is specified, so it does
      not need to further test this condition.
      
      * libvirt.spec.in (daemon-driver-qemu, daemon-driver-lxc):
      Unconditionally require libvirt-daemon-driver-network.
      (daemon): Unconditionally include lock-driver files.
      86007cba
    • L
      docs: fix typo in isa-serial additions · 7a4bf34b
      Laine Stump 提交于
      This was preventing make rpm from completing.
      7a4bf34b
    • E
      util: reduce syscalls for virGetDeviceID · 9f2879d3
      Eric Blake 提交于
      There's no need to do lots of readlink() calls to canonicalize
      a name if we're only going to use stat() on it, since stat()
      already chases symlinks.
      
      * src/util/virutil.c (virGetDeviceID): Let stat() do the symlink
      chasing.
      9f2879d3
    • C
      pass stub driver name instead of pciFindStubDriver · 66b46932
      Chunyan Liu 提交于
      Pass stub driver name directly to pciDettachDevice and pciReAttachDevice to fit
      for different libvirt drivers. For example, qemu driver prefers pci-stub, but
      Xen prefers pciback.
      Signed-off-by: NChunyan Liu <cyliu@suse.com>
      66b46932
  2. 10 1月, 2013 10 次提交
    • G
      qemu: add usb-net caps flag · fc66c160
      Guannan Ren 提交于
      QEMU_CAPS_DEVICE_USB_NET /* -device usb-net */
      fc66c160
    • G
      network: fix typos and docs · 29d37818
      Guannan Ren 提交于
      29d37818
    • G
      qemu: add usb-serial support · e3a04455
      Guannan Ren 提交于
      Add an optional 'type' attribute to <target> element of serial port
      device. There are two choices for its value, 'isa-serial' and
      'usb-serial'. For backward compatibility, when attribute 'type' is
      missing the 'isa-serial' will be chosen as before.
      
      Libvirt XML sample
      
          <serial type='pty'>
            <target type='usb-serial' port='0'/>
            <address type='usb' bus='0' port='1'/>
          </serial>
      
      qemu commandline:
      
      qemu ${other_vm_args}              \
          -chardev pty,id=charserial0    \
          -device usb-serial,chardev=charserial0,id=serial0,bus=usb.0,port=1
      e3a04455
    • G
      qemu: add usb-serial caps flag · f8d478b6
      Guannan Ren 提交于
      QEMU_CAPS_DEVICE_USB_SERIAL /* -device usb-serial */
      f8d478b6
    • M
      libvirt.h.in: Fix indentation · ab261523
      Michal Privoznik 提交于
      With the most recent patch from Claudio, I realized how many
      indentation flaws we have in the libvirt.h.in file. Even though
      they are harmless, it's still worth fixing them.
      ab261523
    • C
      Fix wrong indentation for virDomainState · 4ecd7caf
      Claudio Bley 提交于
      4ecd7caf
    • M
      qemu_agent: Remove agent reference only when disposing it · f2a4e5f1
      Michal Privoznik 提交于
      https://bugzilla.redhat.com/show_bug.cgi?id=892079
      
      With current code, if user calls virDomainPMSuspendForDuration()
      followed by virDomainDestroy(), the former API checks for qemu agent
      presence, which will evaluate as true (if agent is configured). While
      talking to qemu agent, the qemu driver is unlocked, so the latter API
      starts executing.  However, if machine dies meanwhile, libvirtd gets
      EOF on the agent socket and qemuProcessHandleAgentEOF() is called. The
      handler clears reference to qemu agent while the destroy API already
      holding a reference to it. This leads to NULL dereferencing later in
      the code. Therefore, the agent pointer should be set to NULL only if
      we are the exclusive owner of it.
      f2a4e5f1
    • Y
      build: move file deleting action from %files list to %install · daef7c9e
      Yufang Zhang 提交于
      When building libvirt rpms on rhel5, I got the following error:
      
          File must begin with "/": rm
          File must begin with "/": -f
          File must begin with "/": $RPM_BUILD_ROOT/etc/sysctl.d/libvirtd
          Installed (but unpackaged) file(s) found:
         /etc/sysctl.d/libvirtd
      
      It is triggerd by the %files list of libvirt daemon:
      
          %if 0%{?fedora} >= 14 || 0%{?rhel} >= 6
          %config(noreplace) %{_prefix}/lib/sysctl.d/libvirtd.conf
          %else
          rm -f $RPM_BUILD_ROOT%{_prefix}/lib/sysctl.d/libvirtd.conf
          %endif
      
      After checking document of rpm spec file, I think it would be better
      to move the file deleting line from %files list to %install script.
      
      Bug introduced in commit a1fd56cb.
      daef7c9e
    • E
      maint: fix comment typo · 70345318
      Eric Blake 提交于
      While OOM can have knock-on effects that trash a system, generally
      the first symptom is one of memory thrashing.
      
      * src/qemu/qemu_cgroup.c (qemuSetupCgroup): Reword slightly.
      70345318
    • E
      maint: distribute libvirtd.service.in · 7cc522be
      Eric Blake 提交于
      I did a build --without-libvirtd, then ran 'make dist'.  The
      resulting tarball was broken, with a complaint that make did not
      know how to create libvirtd.service.in.  I traced it to a use
      of EXTRA_DIST inside a conditional.
      
      * daemon/Makefile.am (EXTRA_DIST): Hoist libvirtd.service.in
      outside of WITH_LIBVIRTD conditional.
      7cc522be
  3. 09 1月, 2013 8 次提交
  4. 08 1月, 2013 17 次提交