1. 18 3月, 2014 7 次提交
  2. 17 3月, 2014 3 次提交
    • D
      Fix mistakes in checking return values · cb873e9d
      Daniel P. Berrange 提交于
      Thre was a syntax error in checking virRegisterStateDriver in
      the remote driver, and bogus checking of a void return type
      of virDomainConfNWFilterRegister in nwfilter.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      cb873e9d
    • M
      spec: move some dirs into appropriate subpackages · 9add02a0
      Michael Chapman 提交于
      This commit moves a few directories into more appropriate subpackages.
      In a few cases a directory is owned by two subpackages, however this is
      OK as long as the permissions and ownership for the directory are
      consistent between them.
      
      - %{_sysconfdir}/libvirt/qemu/
      
        Used by the qemu and network drivers.
      
        When building with separate driver modules, this directory is only
        owned by l-d-d-network. l-d-d-qemu has a hard dependency on
        l-d-d-network, which means this directory is created with the
        correct permissions and ownership, however it's clearer if both
        subpackages own the directory independently.
      
      - %{_sysconfdir}/libvirt/nwfilter/
      
        Used by the nwfilter driver only.
      
        This directory is currently always owned by libvirt-daemon. This
        commit moves it into l-d-d-nwfilter when building with separate
        driver modules.
      
      - %{_localstatedir}/run/libvirt/network/
      
        Used by the network and nwfilter drivers.
      
        When building without separate driver modules, this directory is
        should be owned by libvirt-daemon only if either of these drivers
        are enabled. When building with separate driver modules, this
        directory should be owned by l-d-d-nwfilter in addition to
        l-d-d-network.
      
      - %{_datadir}/libvirt/networks/ and
        %{_datadir}/libvirt/networks/default.xml
      
        Used only by the %post scriptlet in libvirt-daemon-config-network.
      Signed-off-by: NMichael Chapman <mike@very.puzzling.org>
      9add02a0
    • P
      Fix issue found by coverity and cleanup · b396fae9
      Pavel Hrdina 提交于
      Coverity found an issue in lxc_driver and uml_driver that we don't
      check the return value of register functions.
      
      I've also updated all other places and unify the way we check the
      return value.
      Signed-off-by: NPavel Hrdina <phrdina@redhat.com>
      b396fae9
  3. 15 3月, 2014 3 次提交
    • C
      XMLToNative: Parse XML as INACTIVE · fbf14e82
      Cole Robinson 提交于
      Right now we are parsing the XML as though it's live, which for example
      will choke on hardcoded XML like:
      
        <seclabel type='dynamic' model='selinux' relabel='yes'/>
      
      Erroring with:
      
        $ sudo virsh domxml-to-native qemu-argv f
        error: XML error: security label is missing
      
      All drivers are fixed, but only qemu was tested.
      fbf14e82
    • C
      qemu: XMLToNative: Don't open vhostfd · 3b79321a
      Cole Robinson 提交于
      Just skip the vhost command line generation, since this won't work if
      attempting to run manually.
      3b79321a
    • C
      qemu: XMLToNative: Don't show -S · e8400564
      Cole Robinson 提交于
      -S causes qemu to start in the paused state. Since XML2Native is intended
      to generate something that users can run directly, this will trip them up.
      e8400564
  4. 14 3月, 2014 19 次提交
  5. 13 3月, 2014 8 次提交
    • J
      hostdev: add virObject field to virHostdevManager struct · b322717f
      Jim Fehlig 提交于
      Commit 6b306d66 converted virHostdevManager to a virObject, but
      missed adding a virObject field to the virHostdevManager struct.
      Result is memory corruption when taking a reference on an instance
      of the object, where atomic inc is done on the stateDir field.
      Later use of stateDir crashes libvirtd.
      b322717f
    • M
      qemu.conf: Mention virtlockd in @lock_manager description · 41700d21
      Michal Privoznik 提交于
      When I played with virtlockd I was stunned by lacking
      documentation. My frustration got bigger when I had to
      read the patches to get the correct value to set in
      qemu.conf.
      
      Moreover, from pure libvirt-pride  I'm changing commented
      value from sanlock to lockd. We want to favor our own
      implementation after all.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      41700d21
    • W
      hotplug:Fix log mistake in qemuMonitorAddNetdev · f613e894
      Wang Rui 提交于
      VIR_DEBUG  in qemuMonitorAddNetdev should print vhostfdSize
      Signed-off-by: NWang Rui <moon.wangrui@huawei.com>
      f613e894
    • J
      Make ABI stability issue easier to debug · 287e2b39
      Jiri Denemark 提交于
      When ABI stability check fails, we only log the error message describing
      the incompatibility. Let's log both XMLs in case of an error to make it
      easier to analyze where and why the stability check failed.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      287e2b39
    • O
      qemu: Forbid "sgio" support for SCSI generic host device · ce346623
      Osier Yang 提交于
      The kernel didn't support the unprivileged SGIO for SCSI generic
      device finally, and since it's unknow whether the way to support
      unprivileged SGIO for SCSI generic device will be similar as for
      SCSI block device or not, even it's simliar (I.e. via sysfs, for
      SCSI block device, it's /sys/dev/block/8\:0/queue/unpriv_sgio,
      for example), the file name might be different, So it's better not
      guess what it should be like currently.
      
      This patch removes the related code (mainly about the "shareable"
      checking on the "sgio" setting, it's not supported at all, why
      we leave checking code there? :-), and error out if "sgio" is
      specified in the domain config.
      ce346623
    • M
      docs: add VMmanager to web apps · 55d444bc
      Martin Kletzander 提交于
      This is a request for adding a VMmanager application as requested and
      described by Ksenya Phil.
      Signed-off-by: NKsenya Phil <philka2003@mail.ru>
      Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      55d444bc
    • S
      libxl: Check for control_d string to decide about dom0 · 8c869ad9
      Stefan Bader 提交于
      As soon as any guest mounts xenfs to /proc/xen, there is a capabilities
      file in that directory. However it returns nothing when reading from it.
      Change the test to actually check the contents of the file.
      
      BugLink: http://bugs.launchpad.net/bugs/1248025Signed-off-by: NStefan Bader <stefan.bader@canonical.com>
      8c869ad9
    • N
      vircrypto: fix Invalid write in virCryptoHashString() · 03fc0c62
      Nehal J Wani 提交于
      While running vircryptotest, it was found that valgrind pointed out the
      following error:
      
      ==27453== Invalid write of size 1
      ==27453==    at 0x4C7D7C9: virCryptoHashString (vircrypto.c:76)
      ==27453==    by 0x401C4E: testCryptoHash (vircryptotest.c:41)
      ==27453==    by 0x402A11: virtTestRun (testutils.c:199)
      ==27453==    by 0x401AD5: mymain (vircryptotest.c:76)
      ==27453==    by 0x40318D: virtTestMain (testutils.c:782)
      ==27453==    by 0x3E6CE1ED1C: (below main) (libc-start.c:226)
      ==27453==  Address 0x51f0541 is 0 bytes after a block of size 65 alloc'd
      ==27453==    at 0x4A0577B: calloc (vg_replace_malloc.c:593)
      ==27453==    by 0x4C69F2E: virAllocN (viralloc.c:189)
      ==27453==    by 0x4C7D76B: virCryptoHashString (vircrypto.c:69)
      ==27453==    by 0x401C4E: testCryptoHash (vircryptotest.c:41)
      ==27453==    by 0x402A11: virtTestRun (testutils.c:199)
      ==27453==    by 0x401AD5: mymain (vircryptotest.c:76)
      ==27453==    by 0x40318D: virtTestMain (testutils.c:782)
      ==27453==    by 0x3E6CE1ED1C: (below main) (libc-start.c:226)
      ==27453==
      
      ...and many more.  Two observations: hashstrlen was already set
      to include the trailing NUL byte (so writing to hashstrlen as
      the array offset was indeed writing one byte beyond bounds), and
      VIR_ALLOC_N already guarantees zero-initialization (so we already
      have a trailing NUL without needing to explicitly write one).
      Signed-off-by: NEric Blake <eblake@redhat.com>
      03fc0c62