1. 08 8月, 2008 3 次提交
    • D
      Fix const-correctness of virRUn and virExec · b3728d7d
      Daniel P. Berrange 提交于
      b3728d7d
    • D
      llow to add a disk as an USB device (QEmu/KVM) · 5ba37230
      Daniel Veillard 提交于
      * src/domain_conf.c src/domain_conf.h src/qemu_conf.c
        src/qemu_driver.c: patch from Guido Günther allowing to add
        disk as USB devices
      * docs/libvirt.rng: extend the schemas for the new value
      * tests/qemuxml2argvdata/qemuxml2argv-disk-usb.args
        tests/qemuxml2argvdata/qemuxml2argv-disk-usb.xml
        tests/qemuxml2argvtest.c tests/qemuxml2xmltest.c: add a specific
        test to the regression suite
      Daniel
      5ba37230
    • D
      Extend parser and add support for USB devices in QEmu/KVM · d1710d35
      Daniel Veillard 提交于
      * src/domain_conf.c src/domain_conf.h src/qemu_conf.c
        src/qemu_driver.c: Patch from Guido Günther allowing to pass
        usb devices to qemu/kvm
      * docs/libvirt.rng: add the new functionality to the grammar
      * tests/qemuxml2argvdata/qemuxml2argv-hostdev-usb-address.args
        tests/qemuxml2argvdata/qemuxml2argv-hostdev-usb-address.xml
        tests/qemuxml2argvdata/qemuxml2argv-hostdev-usb-product.args
        tests/qemuxml2argvdata/qemuxml2argv-hostdev-usb-product.xml
        tests/qemuxml2argvtest.c tests/qemuxml2xmltest.c: adding examples
        to the regression tests
      * libvirt.spec.in: fix the licence tag
      Daniel
      d1710d35
  2. 29 7月, 2008 1 次提交
  3. 25 7月, 2008 1 次提交
  4. 12 7月, 2008 3 次提交
  5. 11 7月, 2008 1 次提交
  6. 09 7月, 2008 1 次提交
  7. 19 6月, 2008 1 次提交
    • C
      When doing the conversion to danpb's new memory API, a small bug was · a24b1d9e
      Chris Lalancette 提交于
      introduced into the qemudNetworkIfaceConnect() function.  In particular, there
      is a call:
      
          if (VIR_ALLOC_N(vm->tapfds, vm->ntapfds+2) < 0)
              goto no_memory;
      
      However, the tapfds structure is used to track *all* of the tap fds, and is
      called once for each network that is being attached to the domain.  VIR_ALLOC_N
      maps to calloc().  So the first network would work just fine, but if you had
      more than one network, subsequent calls to this function would blow away the
      stored fd's that were already there and fill them all in with zeros.  This
      causes multiple problems, from the qemu domains not starting properly to
      improper cleanup on shutdown.  The attached patch just changes the VIR_ALLOC_N()
      to a VIR_REALLOC_N(), and everything is happy again.
      Signed-off-by: NChris Lalancette <clalance@redhat.com>
      a24b1d9e
  8. 13 6月, 2008 1 次提交
  9. 12 6月, 2008 1 次提交
  10. 30 5月, 2008 1 次提交
  11. 29 5月, 2008 1 次提交
  12. 23 5月, 2008 3 次提交
    • R
      Standardize use of header files, making internal.h primary. · 1d8d4f86
      Richard W.M. Jones 提交于
      	* qemud/internal.h, qemud/qemud.h: Rename this file so it
      	doesn't conflict with src/internal.h.
      	* HACKING: Document how header files should be used.
      	* qemud/Makefile.am: Add src/ directory to includes.
      	* qemud/event.c, qemud/mdns.c, qemud/qemud.c, qemud/remote.c,
      	qemud/remote_protocol.c, qemud/remote_protocol.h,
      	qemud/remote_protocol.x, src/buf.c, src/libvirt.c,
      	src/nodeinfo.c, src/qemu_conf.c, src/qemu_driver.c,
      	src/stats_linux.c, src/storage_backend.c, src/storage_backend_fs.c,
      	src/storage_backend_iscsi.c, src/storage_backend_logical.c,
      	src/storage_conf.c, src/storage_driver.c, src/util.c,
      	src/util.h, src/virsh.c, src/virterror.c, src/xend_internal.c,
      	src/xml.c, tests/reconnect.c, tests/xmlrpctest.c,
      	tests/qparamtest.c: Standardize	use of header files.
      	* docs/*, po/*: Rebuild docs.
      1d8d4f86
    • D
      7646d595
    • D
      Apply CPU pinning at startup for QEMU guests · e193b5dd
      Daniel P. Berrange 提交于
      e193b5dd
  13. 22 5月, 2008 3 次提交
  14. 17 5月, 2008 2 次提交
  15. 16 5月, 2008 8 次提交
    • J
      start using c-ctype functions · c1ee35af
      Jim Meyering 提交于
      Up to now, we've been avoiding ctype functions like isspace, isdigit,
      etc.  because they are locale-dependent.  Now that we have the c-ctype
      functions, we can start using *them*, to make the code more readable
      with changes like these:
      
      -        /* This may not work on EBCDIC. */
      -        if ((*p >= 'a' && *p <= 'z') ||
      -            (*p >= 'A' && *p <= 'Z') ||
      -            (*p >= '0' && *p <= '9'))
      +        if (c_isalnum(*p))
      
      -    while ((*cur >= '0') && (*cur <= '9')) {
      +    while (c_isdigit(*cur)) {
      
      Also, some macros in conf.c used names that conflicted with
      standard meaning of "BLANK" and "SPACE", so I've adjusted them
      to be in line with the definition of e.g., isblank.
      In addition, I've wrapped those statement macros with do {...} while (0),
      so that we can't forget the ";" after a use.  There was one like that
      already (fixed below).  The missing semicolon would mess up automatic
      indenting.
      * src/buf.c (virBufferURIEncodeString):
      * src/conf.c (IS_EOL, SKIP_BLANKS_AND_EOL, SKIP_BLANKS)
      (virConfParseLong, virConfParseValue, virConfParseName)
      (virConfParseSeparator, virConfParseStatement, IS_BLANK, IS_CHAR)
      (IS_DIGIT, IS_SPACE, SKIP_SPACES):
      * src/nodeinfo.c:
      * src/qemu_conf.c (qemudParseInterfaceXML):
      * src/qemu_driver.c (qemudDomainBlockStats):
      * src/sexpr.c:
      * src/stats_linux.c:
      * src/util.c (virParseNumber, virDiskNameToIndex):
      * src/uuid.c (hextobin, virUUIDParse):
      * src/virsh.c:
      * src/xml.c (parseCpuNumber, virParseCpuSet):
      c1ee35af
    • J
      avoid a double-free bug · 0dc23afb
      Jim Meyering 提交于
      * src/qemu_conf.c (qemudParseXML): Ensure that "obj" is either
      NULL or a valid malloc'd pointer before we might "goto error"
      where it is freed.
      0dc23afb
    • D
      Remove use of strcmp() · 65c2738e
      Daniel P. Berrange 提交于
      65c2738e
    • D
      Fixe default disk bus selection logic · 25f860dc
      Daniel P. Berrange 提交于
      25f860dc
    • D
      Support Xenner bootloader · 763a59d8
      Daniel P. Berrange 提交于
      763a59d8
    • D
      Pass -name arg to QEMU when available · 0f1b6dd0
      Daniel P. Berrange 提交于
      0f1b6dd0
    • D
      3a7b528d
    • D
      2c37f479
  16. 15 5月, 2008 2 次提交
  17. 13 5月, 2008 1 次提交
  18. 10 5月, 2008 1 次提交
  19. 08 5月, 2008 1 次提交
  20. 07 5月, 2008 1 次提交
    • D
      Sound support for QEmu and Xen · 70f44663
      Daniel Veillard 提交于
      * src/qemu_conf.c src/qemu_conf.h src/xend_internal.c
        src/xend_internal.h src/xm_internal.c src/xml.c src/xml.h:
        Patch from Cole Robinson adding sound support for QEmu and Xen
      * tests/qemuxml2argvtest.c tests/sexpr2xmltest.c
        tests/xmconfigtest.c tests/xml2sexprtest.c:
        Associated regression tests
      Daniel
      70f44663
  21. 30 4月, 2008 2 次提交
    • D
      159cb2b9
    • J
      remove useless tests before xmlFree · 0c37f598
      Jim Meyering 提交于
      * src/qemu_conf.c (qemudParseDiskXML, qemudParseInterfaceXML):
      (qemudParseInputXML, qemudParseDhcpRangesXML):
      * src/remote_internal.c (doRemoteOpen):
      * src/storage_conf.c (virStoragePoolDefParseDoc):
      * src/xm_internal.c (xenXMParseXMLDisk, xenXMParseXMLVif):
      (xenXMParseXMLToConfig, xenXMAttachInterface):
      * src/xml.c (virDomainParseXMLDiskDesc, virDomainParseXMLIfDesc):
      (virDomainXMLDevID):
      0c37f598
  22. 28 4月, 2008 1 次提交