1. 04 9月, 2009 25 次提交
  2. 03 9月, 2009 7 次提交
    • P
      VBox cleanup and update of networking shutdown · da482fe1
      Pritesh Kothari 提交于
      * src/vbox/vbox_tmpl.c: merged vboxNetworkUndefine() and
        vboxNetworkDestroy() and added code to handle multiple hostonly
        interfaces.
      da482fe1
    • P
      VBox cleanup and update of networking XML functions · 32ad6aef
      Pritesh Kothari 提交于
      * src/vbox/vbox_tmpl.c: merged vboxNetworkCreateXML() and
        vboxNetworkDefineXML() and added code to handle multiple hostonly
        interfaces.
      32ad6aef
    • D
      Add support for setting disk drive serial numbers · 85d15b51
      Daniel P. Berrange 提交于
      * docs/schemas/domain.rng: Add <serial> element to disks
      * src/domain_conf.h, src/domain_conf.c: XML parsing and
        formatting for disk serial numbers
      * src/qemu_conf.c: Set serial number when launching guests
      * tests/qemuxml2argvdata/qemuxml2argv-disk-drive-shared.args,
        tests/qemuxml2argvdata/qemuxml2argv-disk-drive-shared.xml: Add
        serial number to XML test
      85d15b51
    • D
      Support configuration of huge pages in guests · d823a05a
      Daniel P. Berrange 提交于
      Add option to domain XML for
      
           <memoryBacking>
              <hugepages/>
           </memoryBacking>
      
      * configure.in: Add check for mntent.h
      * qemud/libvirtd_qemu.aug, qemud/test_libvirtd_qemu.aug, src/qemu.conf
        Add 'hugetlbfs_mount' config parameter
      * src/qemu_conf.c, src/qemu_conf.h: Check for -mem-path flag in QEMU,
        and pass it when hugepages are requested.
        Load hugetlbfs_mount config parameter, search for mount if not given.
      * src/qemu_driver.c: Free hugetlbfs_mount/path parameter in driver shutdown.
        Create directory for QEMU hugepage usage, chowning if required.
      * docs/formatdomain.html.in: Document memoryBacking/hugepages elements
      * docs/schemas/domain.rng: Add memoryBacking/hugepages elements to schema
      * src/util.c, src/util.h, src/libvirt_private.syms: Add virFileFindMountPoint
        helper API
      * tests/qemuhelptest.c: Add -mem-path constants
      * tests/qemuxml2argvtest.c, tests/qemuxml2xmltest.c: Add tests for hugepage
        handling
      * tests/qemuxml2argvdata/qemuxml2argv-hugepages.xml,
        tests/qemuxml2argvdata/qemuxml2argv-hugepages.args: Data files for
        hugepage tests
      d823a05a
    • D
      Fix misc OOM bugs · 8eacfd4c
      Daniel P. Berrange 提交于
      * tests/testutils.c: Run test function twice, once to prime it for
        static allocations, once to count the non-static allocations.
      * tests/testutilsqemu.c: Initialize variable correctl
      * src/capabilities.c: Don't free machines variable upon failure
        since caller must do that
      * src/xm_internal.c: Add missing check for OOM in building VIF
        config param
      8eacfd4c
    • P
      VBox support for defining/dumping video devices · 4ff60912
      Pritesh Kothari 提交于
      * src/vbox/vbox_tmpl.c: add setting of video and acceleration in
        VBox driver, and the ability to save this back for serialization
      4ff60912
    • P
      Generic parsing support for video acceleration · 6aa576cd
      Pritesh Kothari 提交于
      * docs/schemas/domain.rng: augment the video model with an optional
        acceleration element with optional accel2d and accel3d flags
      * src/domain_conf.c src/domain_conf.h: exten the virDomainVideoDef
        structure with an optional accel field, virDomainVideoAccelDefParseXML
        and virDomainVideoAccelDefFormat functions to parse and serialize
        the structure.
      6aa576cd
  3. 02 9月, 2009 8 次提交
    • C
      Fix bugs in virDomainMigrate v2 code. · 6dfc042c
      Chris Lalancette 提交于
      Paolo Bonzini points out that in my refactoring of the code for
      virDomainMigrate(), I added a check for the return value from
      virDomainMigratePerform().  The problem is that we don't want to
      exit if we fail, we actually want to go on and do
      virDomainMigrateFinish2() with a non-0 return code to clean things
      up.  Remove the check.
      
      While reproducing this issue, I also noticed that we wouldn't
      always properly propagate an error message.  In particular, I
      found that if you blocked off the migration ports (with iptables)
      and then tried the migration, it would actually fail but we would
      get no failure output from Qemu.  Therefore, we would think we
      succeeded, and leave a huge mess behind us.  Execute the monitor
      command "info migrate", and look for a failure string in there
      as well.
      Signed-off-by: NChris Lalancette <clalance@redhat.com>
      6dfc042c
    • M
      VMware ESX: Don't warn on some query parameter · b8ee9810
      Matthias Bolte 提交于
      * src/esx/esx_util.c: esxUtil_ParseQuery() warns if a known query
        parameter should be ignored due to the corresponding char/int pointer
        being NULL, instead of silently ignoring it. Fix the control flow.
      b8ee9810
    • M
      VMware ESX: Allow ethernet address type 'vpx' · b6e747ec
      Matthias Bolte 提交于
      * src/esx/esx_vmx.c: add an extra type of addressType beside 'static'
        and 'generated', 'vpx' indicates that the MAC address was generated
        by a vCenter.
      b6e747ec
    • D
      Don't blindly reorder disk drives · 2d6adabd
      Daniel P. Berrange 提交于
      Calling qsort() on the disks array causes disk to be
      unneccessarily re-ordered, potentially breaking the
      ability to boot if the boot disk gets moved later in
      the list. The new algorithm will insert a new disk as
      far to the end of the list as possible, while being
      ordered correctly wrt other disks on the same bus.
      
      * src/domain_conf.c, src/domain_conf.h: Remove disk sorting
        routines. Add API to insert a disk into existing list at
        the optimal position, without resorting disks
      * src/libvirt_private.syms: Export virDomainDiskInsert
      * src/xend_internal.c, src/xm_internal.c: Remove calls to
        qsort, use virDomainDiskInsert instead.
      * src/qemu_driver.c: Remove calls to qsort, use virDoaminDiskInsert
        instead. Fix reordering bugs when hotunplugging disks and
        networks. Fix memory leak in disk/net unplug
      2d6adabd
    • P
      Support for getting/setting number of cpus in VBox · fea5a0bd
      Pritesh Kothari 提交于
      * src/vbox/vbox_tmpl.c: adds support for getting/setting number of cpus
      fea5a0bd
    • D
      Misc fixes to secrets API code · 575b18c0
      Daniel P. Berrange 提交于
      * proxy/Makefile.am: Build storage_encryption_conf.c since its a
        dependancy of domain_conf.c
      * src/storage_encryption_conf.c: Disable XML parsing APis when
        build under proxy
      * src/test.c: Add a dummy no-op secrets driver for test suite
      575b18c0
    • D
      Only add glusterfs dep for Fedora >= 11 · 6a035507
      Daniel P. Berrange 提交于
      * libvirt.spec.in: Conditionalize glusterfs requires line for
        Fedora >= 11, since other distros don't have it available
      6a035507
    • D
      Remove redundant base64 include file · 721d3f06
      Daniel P. Berrange 提交于
      * src/storage_encryption_conf.c: Remove base64.h
      721d3f06