1. 25 10月, 2014 1 次提交
    • D
      Move virDomainSnapshot related APIs out of libvirt.h.in · 84783d9d
      Daniel P. Berrange 提交于
      Create a new libvirt-domain-snapshot.h file to hold the public
      API definitions for the virDomainSnapshot type. This header
      file is not self-contained, so applications will not directly
      include it. They will continue to #include <libvirt/libvirt.h>
      84783d9d
  2. 24 10月, 2014 12 次提交
  3. 23 10月, 2014 3 次提交
  4. 22 10月, 2014 7 次提交
    • P
      qemu: migration: Make check for empty hook XML robust · 19b1ee42
      Peter Krempa 提交于
      Also consider whitespace only strings returned from the hook as empty
      result.
      19b1ee42
    • P
      qemu: restore: Fix restoring of VM when the restore hook returns empty XML · e3867799
      Peter Krempa 提交于
      The documentation for the restore hook states that returning an empty
      XML is equivalent with copying the input. There was a bug in the code
      checking the returned string by checking the string instead of the
      contents. Use the new helper to check if the string is empty.
      e3867799
    • P
      util: string: Add helper to check whether string is empty · 0eeafeed
      Peter Krempa 提交于
      The helper checks whether a string contains only whitespace or is NULL.
      This will be helpful to skip cases where a user string is optional, but
      may be provided empty with the same meaning.
      0eeafeed
    • P
      doc: HACKING: Regenerate after recent change · 5de9e082
      Peter Krempa 提交于
      5de9e082
    • R
      Add support for /run/initctl · 7e037f64
      Rick Harris 提交于
      Newer versions of Debian use '/run/initctl' instead of '/dev/initctl'.
      This patch updates the code to search for the FIFO from a list of
      well-known locations.
      7e037f64
    • C
      docs: fix an improper git browsable address · 966d07b9
      Chen Hanxiao 提交于
      Signed-off-by: NChen Hanxiao <chenhanxiao@cn.fujitsu.com>
      966d07b9
    • R
      Fix cast errors with clang · 82e4f85c
      Roman Bogorodskiy 提交于
      Build with clang fails with:
      
        CC       util/libvirt_util_la-virsocketaddr.lo
      util/virsocketaddr.c:904:17: error: cast from 'struct sockaddr *' to
      'struct sockaddr_in *' increases required alignment from 1 to 4
      [-Werror,-Wcast-align]
              inet4 = (struct sockaddr_in*) res->ai_addr;
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      util/virsocketaddr.c:909:17: error: cast from 'struct sockaddr *' to
      'struct sockaddr_in6 *' increases required alignment from 1 to 4
      [-Werror,-Wcast-align]
              inet6 = (struct sockaddr_in6*) res->ai_addr;
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      2 errors generated.
      
      Fix that by replacing virSocketAddrParseInternal() call with
      virSocketAddrParse() in the virSocketAddrIsNumericLocalhost() function.
      virSocketAddrParse stores an address in virSocketAddr.
      virSocketAddr uses a union to store an address, so it doesn't
      need casting.
      82e4f85c
  5. 21 10月, 2014 4 次提交
    • M
    • M
      qemu: unref cfg after TerminateMachine has been called · 9661ac2f
      Martin Kletzander 提交于
      Commit 4882618e added the code that
      requests driver cfg, but forgot to unref it.
      Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      9661ac2f
    • L
      qemu: x86_64 is good enough for i686 · afe8f420
      Lubomir Rintel 提交于
      virt-manager on Fedora sets up i686 hosts with "/usr/bin/qemu-kvm" emulator,
      which in turn unconditionally execs qemu-system-x86_64 querying capabilities
      then fails:
      
      Error launching details: invalid argument: architecture from emulator 'x86_64' doesn't match given architecture 'i686'
      
      Traceback (most recent call last):
        File "/usr/share/virt-manager/virtManager/engine.py", line 748, in _show_vm_helper
          details = self._get_details_dialog(uri, vm.get_connkey())
        File "/usr/share/virt-manager/virtManager/engine.py", line 726, in _get_details_dialog
          obj = vmmDetails(conn.get_vm(connkey))
        File "/usr/share/virt-manager/virtManager/details.py", line 399, in __init__
          self.init_details()
        File "/usr/share/virt-manager/virtManager/details.py", line 784, in init_details
          domcaps = self.vm.get_domain_capabilities()
        File "/usr/share/virt-manager/virtManager/domain.py", line 518, in get_domain_capabilities
          self.get_xmlobj().os.machine, self.get_xmlobj().type)
        File "/usr/lib/python2.7/site-packages/libvirt.py", line 3492, in getDomainCapabilities
          if ret is None: raise libvirtError ('virConnectGetDomainCapabilities() failed', conn=self)
      libvirtError: invalid argument: architecture from emulator 'x86_64' doesn't match given architecture 'i686'
      
      Journal:
      
      Oct 16 21:08:26 goatlord.localdomain libvirtd[1530]: invalid argument: architecture from emulator 'x86_64' doesn't match given architecture 'i686'
      afe8f420
    • Z
      qemu: move setting emulatorpin ahead of monitor showing up · 411cea63
      Zhou yimin 提交于
      If VM is configured with many devices(including passthrough devices)
      and large memory, libvirtd will take seconds(in the worst case) to
      wait for monitor. In this period the qemu process may run on any
      PCPU though I intend to pin emulator to the specified PCPU in xml
      configuration.
      
      Actually qemu process takes high cpu usage during vm startup.
      So this is not the strict CPU isolation in this case.
      Signed-off-by: NZhou yimin <zhouyimin@huawei.com>
      411cea63
  6. 20 10月, 2014 3 次提交
    • R
      docs: apps: Update references to virt-p2v and virt-v2v. · 8b9ec18d
      Richard W.M. Jones 提交于
      These tools have been rewritten upstream, so you don't need to link to
      the old tools, link to the new ones and mention they are part of
      libguestfs.
      
      Also remove the link to "Poor man's P2V".  There's no real reason to
      use that technique any longer since the rewritten tools are simple,
      fast and highly capable.
      8b9ec18d
    • M
      tests: fix incorrect caps for shmem-invalid-size, shmem-small-size · e80be99f
      Maxime Leroy 提交于
      VIR_TEST_DEBUG=2 ./qemuxml2argvtest generates the following output:
      
      409) QEMU XML-2-ARGV shmem-invalid-size
      ... Got expected error: unsupported configuration: ivshmem device is not \
      	 supported with this QEMU binary
      OK
      410) QEMU XML-2-ARGV shmem-small-size
      ... Got expected error: unsupported configuration: ivshmem device is not \
      supported with this QEMU binary
      OK
      
      We should have:
      
      409) QEMU XML-2-ARGV shmem-invalid-size
      ... Got expected error: XML error: shmem size must be a power of two
      OK
      410) QEMU XML-2-ARGV shmem-small-size
      ... Got expected error: XML error: shmem size must be at least 1 MiB
      OK
      
      This commit fixes the issue by providing QEMU_CAPS_DEVICE_IVSHMEM caps
      for shmem-invalid-size, shmem-small-size test.
      Signed-off-by: NMaxime Leroy <maxime.leroy@6wind.com>
      e80be99f
    • M
      conf: tests: fix virDomainNetDefFormat for vhost-user in client mode · 30272074
      Maxime Leroy 提交于
      The mode attribute is required for the source element of vhost-user.
      Thus virDomainNetDefFormat should always generate a xml with it and not
      only when the mode is server.
      
      The commit fixes the issue. And it adds a vhostuser interface in
      'client' mode to qemuxml2argv-net-vhostuser.(args|xml) to test this
      usecase.
      Signed-off-by: NMaxime Leroy <maxime.leroy@6wind.com>
      30272074
  7. 17 10月, 2014 1 次提交
  8. 15 10月, 2014 9 次提交