1. 21 3月, 2013 8 次提交
    • D
      Fix linkage of virt-aa-helper with numa library · e053561e
      Daniel P. Berrange 提交于
      The recent commit moved some of the use of libnuma out of the
      driver code, and into src/util/. It did not, however, update
      libvirt_util.la to link against libnuma. This caused linkage
      failure with virt-aa-helper, since nothing else caused libnuma
      to be pulled onto the linker command line.
      
      The fix removes all reference to NUMACTL_LIBS/CFLAGS from the
      various modules in src/Makefile.am and just adds them to the
      libvirt_util.la module, which everything else depends on.
      
      Technically a build-breaker fix, but wanted to wait for feedback
      on this
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      e053561e
    • O
      qemu: Add the new disk src into shared disk table when updating disk · 65f61e45
      Osier Yang 提交于
      We should record the new disk src in the shared disk table for
      updating disk (CD-ROM or Floppy) API. Fortunately, we only allow
      to update the disk source now, otherwise we might also want to
      set the unpriv_sgio setting.
      65f61e45
    • G
      python: fix bindings that don't raise an exception · 4b143ab2
      Guannan Ren 提交于
      For example:
       >>> dom.memoryStats()
       libvir: QEMU Driver error : Requested operation is not valid:\
               domain is not running
      
      There are six such python API functions like so.
      The root reason is that generator.py script checks the type of return
      value of a python stub function defined in libvirt-api.xml or
      libvirt-override-api.xml to see whether to add the raise clause or not
      in python wrapper code in libvirt.py.
      
      The type of return value is supposed to be C types.
      For those stub functions which return python non-integer data type like
      string, list, tuple, dictionary, the existing type in functions varies
      from each other which leads problem like this.
      
      Currently, in generator.py, it maintains a buggy whitelist for stub functions
      returning a list type. I think it is easy to forget adding new function name
      in the whitelist.
      
      This patch makes the value of type consistent with C type "char *"
      in libvirt-override-api.xml. For python, any of types could be printed
      as string, so I choose "char *" in this case. And the comment in xml
      could explain it when adding new function definition.
      
            <function name='virNodeGetCPUStats' file='python'>
              ...
       -      <return type='virNodeCPUStats' info='...'/>
       +      <return type='char *' info='...'/>
              ...
            </function>
      4b143ab2
    • P
      domain: add support for iscsi network disks · 1d948912
      Paolo Bonzini 提交于
      This plumbs in the XML description of iSCSI shares.  The next patches
      will add support for the libiscsi userspace initiator.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      1d948912
    • L
      Clean redundant code about VCPU string checking · a67aebd6
      Li Zhang 提交于
      Now that VCPU number are removed from qemu_monitor_text.c
      (commit cc78d7ba), VCPU string checking also should be removed.
      Report-by: NJohn Ferlan <jferlan@redhat.com>
      Signed-off-by: NLi Zhang <zhlcindy@linux.vnet.ibm.com>
      a67aebd6
    • G
      cgroup: export virCgroupRemoveRecursively · 8d19a9f5
      Gao feng 提交于
      We will use virCgroupRemoveRecursively to remove cgroup
      directories in the coming patch.
      Signed-off-by: NGao feng <gaofeng@cn.fujitsu.com>
      8d19a9f5
    • G
      Don't fail if SELinux is diabled · 82eec793
      Guido Günther 提交于
      but libvirt is built with --with-selinux. In this case getpeercon
      returns ENOPROTOOPT so don't return an error in that case but simply
      don't set seccon.
      82eec793
    • G
      clarify virsh net commands · 2e1cd890
      Gene Czarcinski 提交于
      Clarify that net-create deals with a transient virtual
      network whereas net-define defines a persistent virtual
      network definition and will create the network (xml)
      definition file.
      
      Clarify that net-destroy works with both transient and
      persistent virtual networks.
      Signed-off-by: NGene Czarcinski <gene@czarc.net>
      2e1cd890
  2. 20 3月, 2013 16 次提交
  3. 19 3月, 2013 10 次提交
  4. 18 3月, 2013 1 次提交
    • J
      qemu: Fix startupPolicy regression · ef3cd647
      Jiri Denemark 提交于
      Commit 82d5fe54
      
          qemu: check backing chains even when cgroup is omitted
      
      added backing file checks just before the code that removes optional
      disks if they are not present. However, the backing chain code fails in
      case the disk file does not exist, which makes qemuProcessStart fail
      regardless on configured startupPolicy.
      
      Note that startupPolicy implementation is still wrong after this patch
      since it only check the first file in a possible chain. It should rather
      check the complete backing chain. But this is an existing limitation
      that can be solved later. After all, startupPolicy is most useful for
      CDROM images and they won't make use of backing files in most cases.
      ef3cd647
  5. 16 3月, 2013 5 次提交