1. 08 10月, 2009 4 次提交
    • J
      Documentation and examples for SVirt Apparmor driver · 624a7927
      Jamie Strandboge 提交于
      * docs/drvqemu.html.in: include documentation for AppArmor sVirt
        confinement
      * examples/apparmor/TEMPLATE examples/apparmor/libvirt-qemu
        examples/apparmor/usr.lib.libvirt.virt-aa-helper
        examples/apparmor/usr.sbin.libvirtd: example templates and
        configuration files for SVirt Apparmor when using KVM/QEmu
      624a7927
    • J
      sVirt AppArmor security driver · bbaecd6a
      Jamie Strandboge 提交于
      * configure.in: look for AppArmor and devel
      * src/security/security_apparmor.[ch] src/security/security_driver.c
        src/Makefile.am: add and plug the new driver
      * src/security/virt-aa-helper.c: new binary which is used exclusively by
        the AppArmor security driver to manipulate AppArmor.
      * po/POTFILES.in: registers the new files
      * tests/Makefile.am tests/secaatest.c tests/virt-aa-helper-test:
        tests for virt-aa-helper and the security driver, secaatest.c is
        identical to seclabeltest.c except it initializes the 'apparmor'
        driver instead of 'selinux'
      bbaecd6a
    • C
      cgroup: Fix -Werror breakage · f5c65fa1
      Cole Robinson 提交于
      f5c65fa1
    • D
      Misc win32 build fixes · 7b1fe89a
      Daniel P. Berrange 提交于
      * daemon/Makefile.am: Fix missing sasl rule
      * src/datatypes.c: Add unistd.h to avoid gnulib bug
      * src/util/cgroup.c: Disable mntent if not available
      7b1fe89a
  2. 07 10月, 2009 4 次提交
    • R
      Fix handling return value of qemuMonitorSetBalloon · e1f5f851
      Ryota Ozaki 提交于
      * src/qemu/qemu_driver.c: The positive return value of
        qemuMonitorSetBalloon should be handled as a success
      e1f5f851
    • R
      LXC implement memory control APIs · 3a05dc09
      Ryota Ozaki 提交于
      The patch implements the missing memory control APIs for lxc, i.e.,
      domainGetMaxMemory, domainSetMaxMemory, domainSetMemory, and improves
      domainGetInfo to return proper amount of used memory via cgroup.
      
      * src/libvirt_private.syms: Export virCgroupGetMemoryUsage
        and add missing virCgroupSetMemory
      * src/lxc/lxc_driver.c: Implement missing memory functions
      * src/util/cgroup.c, src/util/cgroup.h: Add the function
        to get used memory
      3a05dc09
    • J
      Add a domain argument to SVirt *RestoreImageLabel · 709c37e9
      Jamie Strandboge 提交于
      When James Morris originally submitted his sVirt patches (as seen in
      libvirt 0.6.1), he did not require on disk labelling for
      virSecurityDomainRestoreImageLabel. A later commit[2] changed this
      behavior to assume on disk labelling, which halts implementations for
      path-based MAC systems such as AppArmor and TOMOYO where
      vm->def->seclabel is required to obtain the label.
      
      * src/security/security_driver.h src/qemu/qemu_driver.c
        src/security/security_selinux.c: adds the 'virDomainObjPtr vm'
        argument back to *RestoreImageLabel
      709c37e9
    • C
      Fix up "make check" · db68d6b1
      Chris Lalancette 提交于
      While running make check, I noticed that it was actually using
      the virsh binary from my system, in /usr/bin/virsh, and not the
      one that was just compiled.  This is actually caused by a bug
      in Makefile.am, where we didn't update the PATH to include tools.
      
      While here, I also updated all of the scripts to properly define
      the srcdir, abs_top_srcdir, and abs_top_builddir environment
      variables.  This is required if you want to be able to run the
      tests standalone (i.e. ./test instead of from make check).  I've
      tested this on both RHEL-5 and Fedora-10 machines, and make check
      works on both, as does running the individual tests by hand.
      Signed-off-by: NChris Lalancette <clalance@redhat.com>
      db68d6b1
  3. 06 10月, 2009 17 次提交
  4. 05 10月, 2009 1 次提交
  5. 02 10月, 2009 5 次提交
    • D
      Fix typo in Makefile.am breaking NEWS file generation · ea6bc1e8
      Daniel P. Berrange 提交于
      * docs/Makefile.am: Fix syntax error in NEWS rule, '$' should be '$$'
        to escape correctly
      ea6bc1e8
    • D
      Fix emission of domain events messages · 398d01b8
      Daniel P. Berrange 提交于
      The code which updated the message length after writing the
      payload wrote the updated length word in the wrong place since
      the XDR object was given a buffer pointing to the start of the
      header payload, rather than message start.
      
      * daemon/remote.c: Fix updating of event message length so that
        we actually send the payload, not just the header
      398d01b8
    • P
      unbreak `make rpcgen' · 96ad9ed3
      Paolo Bonzini 提交于
      Fix "make rpcgen", broken by the directory reorganization.
      
      * src/Makefile.am (rpcgen): Fix path to rpcgen_fix.pl.
      96ad9ed3
    • P
      unbreak migration · 1a09553e
      Paolo Bonzini 提交于
      Fix migration, broken in two different ways by the QEMU monitor
      abstraction.  Note that the QEMU console emits a "\r\n" as the
      line-ending.
      
      * src/qemu/qemu_monitor_text.c (qemuMonitorGetMigrationStatus):
      Fix "info migrate" command and its output's parsing.
      1a09553e
    • C
      Tunnelled migration. · 6e16575a
      Chris Lalancette 提交于
      Implementation of tunnelled migration, using a Unix Domain Socket
      on the qemu backend.  Note that this requires very new versions of
      qemu (0.10.7 at least) in order to get the appropriate bugfixes.
      Signed-off-by: NChris Lalancette <clalance@redhat.com>
      6e16575a
  6. 01 10月, 2009 6 次提交
    • J
      Fix build in separate build directory · 3bd4c7ba
      Jiri Denemark 提交于
      * cfg.mk: use $(srcdir)/ prefix for Makefile.nonreentrant include
      * examples/domain-events/events-c/Makefile.am tools/Makefile.am
        examples/hellolibvirt/Makefile.am: extend the include paths to
        use $(top_srcdir)/include too.
      3bd4c7ba
    • P
      Fix documentation and comment typos · 36e03729
      Paolo Bonzini 提交于
      Fix a few mispellings :-) of "successfully" and regenerate
      docs/libvirt-*.xml.
      * src/libvirt.c: Fix typos.
      * src/secret/secret_driver.c: Fix typos.
      * docs/libvirt-api.xml: Regenerate.
      * docs/libvirt-refs.xml: Regenerate.
      36e03729
    • C
      Various monitor improvements for migration. · 7cc1491d
      Chris Lalancette 提交于
      The upcoming tunnelled migration needs to be able to set
      a migration in progress in the background, as well as
      be able to cancel a migration when a problem has happened.
      This patch allows for both of these to properly work.
      Signed-off-by: NChris Lalancette <clalance@redhat.com>
      7cc1491d
    • M
      Fix USB device re-labelling · 1daea0c5
      Mark McLoughlin 提交于
      A simple misplaced break out of a switch results in:
      
        libvir: error : Failed to open file '/sys/bus/pci/devices/0000:00:54c./vendor': No such file or directory
        libvir: error : Failed to open file '/sys/bus/pci/devices/0000:00:54c./device': No such file or directory
        libvir: error : this function is not supported by the hypervisor: Failed to read product/vendor ID for 0000:00:54c.
      
      when trying to passthrough a USB host device to qemu.
      
      * src/security_selinux.c: fix a switch/break thinko
      1daea0c5
    • D
      Avoid a libvirtd crash on broken input 523418 · 79d233b5
      Daniel Veillard 提交于
      * src/conf/domain_conf.c: a simple typo in an XML domain file could lead
        to a crash, because we called STRPREFIX() on the looked up value without
        checking it was non-null.
      79d233b5
    • F
      Incorrect error message in virDomainNetDefParseXML · b3797902
      Florian Vichot 提交于
      * src/conf/domain_conf.c: when declaring a <interface type="bridge">
        tag, <source> needs a "bridge" attribute, but the parser complains
        about a missing "dev" attribute.
      b3797902
  7. 30 9月, 2009 3 次提交