1. 25 7月, 2008 2 次提交
  2. 24 7月, 2008 2 次提交
  3. 12 7月, 2008 2 次提交
  4. 11 7月, 2008 1 次提交
  5. 26 6月, 2008 1 次提交
  6. 12 6月, 2008 2 次提交
  7. 10 6月, 2008 1 次提交
    • R
      virDomainMemoryPeek API · 6bcf2501
      Richard W.M. Jones 提交于
              * include/libvirt/libvirt.h.in, src/libvirt.c, src/driver.h,
                src/libvirt_sym.version: New virDomainMemoryPeek API.
              * qemud/remote.c, qemud/remote_protocol.x, src/remote_internal.c:
                Support for remote.
              * src/qemu_driver.c: QEMU driver implementation of API.
              * src/test.c: Test driver (null) implementation of API.
              * docs/hvsupport.html.in: Document API.
              * libvirt.spec.in: New path /var/cache/libvirt for temporary
                storage of memory images.
              * qemud/libvirtd.init.in: Remove any old temp files in
                /var/cache/libvirt on restarts.
              * src/Makefile.am: make install creates /var/cache/libvirt.
              * configure.in: Detect mkdir -p.
      6bcf2501
  8. 06 6月, 2008 1 次提交
    • R
      virDomainBlockPeek QEMU and remote support · a73a88a1
      Richard W.M. Jones 提交于
      	* qemud/remote.c, qemud/remote_protocol.x, src/remote_internal.c:
      	  Remote support.
      	* qemud/remote_dispatch_localvars.h,
      	  qemud/remote_dispatch_proc_switch.h,
      	  qemud/remote_dispatch_prototypes.h,
      	  qemud/remote_protocol.c,
      	  qemud/remote_protocol.h:
      	  Generated files for remote support.
      	* src/xen_unified.c, src/driver.h, src/libvirt.c: Small fix -
      	  pass flags around internally.
      	* src/qemu_driver.c: Support for QEMU.
      	* src/xend_internal.c: Remove redundant fstat call from Xen.
      a73a88a1
  9. 05 6月, 2008 1 次提交
    • R
      virDomainBlockPeek call · 8354895e
      Richard W.M. Jones 提交于
      	* configure.in: Document AC_SYS_LARGEFILE.
      	* docs/hvsupport.html.in: Document HV support for virDomainBlockPeek.
      	* include/libvirt/libvirt.h.in, src/driver.h, src/libvirt.c,
      	src/libvirt_sym.version: Add virDomainBlockPeek infrastructure.
      	* src/qemu_driver.c, src/test.c: Null versions of this call.
      	* src/xen_unified.c, src/xend_internal.c, src/xend_internal.h,
      	src/xm_internal.c, src/xm_internal.h: Xen implementation.
      	* tests/sexpr2xmldata/sexpr2xml-curmem.xml,
      	tests/sexpr2xmldata/sexpr2xml-no-source-cdrom.xml: XML output
      	has been reordered slightly in the Xen driver, but should be
      	functionally the same.
      8354895e
  10. 30 5月, 2008 1 次提交
  11. 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
      Apply CPU pinning at startup for QEMU guests · e193b5dd
      Daniel P. Berrange 提交于
      e193b5dd
    • D
      Add support for VCPU pinning in QEMU driver · 6d372bd4
      Daniel P. Berrange 提交于
      6d372bd4
  12. 22 5月, 2008 2 次提交
  13. 17 5月, 2008 1 次提交
  14. 16 5月, 2008 2 次提交
    • 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
    • D
      3a7b528d
  15. 15 5月, 2008 1 次提交
    • J
      avoid using STREQLEN with a literal; use STRPREFIX instead · 60495940
      Jim Meyering 提交于
      Likewise for STRNEQLEN -> !STRPREFIX.
      * src/nodeinfo.c (linuxNodeInfoCPUPopulate):
      * src/qemu_conf.c (qemudNetworkIfaceConnect):
      (qemudParseInterfaceXML):
      * src/qemu_driver.c (qemudDomainBlockStats):
      * src/remote_internal.c (call):
      * src/stats_linux.c (xenLinuxDomainDeviceID):
      * src/xend_internal.c (xend_parse_sexp_desc):
      (xend_get, sexpr_to_xend_topology):
      * src/xm_internal.c (xenXMConfigCacheRefresh)
      (xenXMDomainFormatXML):
      60495940
  16. 13 5月, 2008 1 次提交
    • D
      Enable libvirtd drivers to handle signals, in lxc, sigchld triggers vm cleanup · 94311de5
      David L. Leskovec 提交于
      Mon May 12 23:32:21 PST 2008 David L. Leskovec <dlesko@linux.vnet.ibm.com>
      
      	* qemud/qemud.c: get siginfo with signals, distribute to drivers that
          register a handler
      	* src/driver.h: add sighandler function to state driver table
      	* src/internal.h: define virStateSigDispatcher functions
      	* src/libvirt.c: add __virStateSigDispatcher function
      	* src/libvirt_sym.version: add __virStateSigDispatcher
      	* src/lxc_driver.c: add sig handler function, cleanup vm when sigchld
          received from container process
      	* src/qemu_driver.c: NULL for sig handler (no handler) in state driver
      	* src/remote_internal.c: NULL for sig handler (no handler) in state driver
      	* src/storage_driver.c: NULL for sig handler (no handler) in state driver
      94311de5
  17. 09 5月, 2008 1 次提交
    • J
      Use gnulib's c-ctype.h, not <ctype.h>. · 25534052
      Jim Meyering 提交于
      # Convert uses of isspace to c_isspace, isdigit to c_isdigit, etc.
      re=$(man isspace|grep is.....,.is|sed 's/ -.*//' \
        |tr -s ', \n' \||sed 's/^|//;s/|$//')
      git grep -l -E "$re"|grep -Ev 'Chan|gnulib' \
        |xargs perl -pi -e 's/\b('"$re"')\b/c_$1/g'
      # Remove all uses of to_uchar
      git grep -l to_uchar|xargs perl -pi -e 's/to_uchar\((.*?)\)/$1/g'
      * src/util.h (to_uchar): Remove definition.
      (TOLOWER): Remove definition.
      (__virMacAddrCompare): Use c_tolower, not TOLOWER.
      Globally:
        Where needed, change <ctype.h> to <c-ctype.h>.
        Remove unnecessary inclusion of <ctype.h>.
      Ensure the global changes are never needed again:
      * Makefile.maint (sc_avoid_ctype_macros): Prohibit use of ctype
      macros.   Recommend c-ctype.h instead.
      (sc_prohibit_c_ctype_without_use): New rule.
      (sc_prohibit_ctype_h): New rule.  Disallow use of <ctype.h>.
      25534052
  18. 08 5月, 2008 1 次提交
  19. 26 4月, 2008 1 次提交
  20. 25 4月, 2008 1 次提交
    • J
      avoid problems with sign-extended "char" operand to is* functions · 225ba3f0
      Jim Meyering 提交于
      * src/util.h (to_uchar): Define function.
      * src/nodeinfo.c (linuxNodeInfoCPUPopulate): Apply to_uchar to is* operand.
      * src/qemu_driver.c (qemudExtractMonitorPath): Likewise.
      * src/sexpr.c (_string2sexpr): Likewise.
      * src/stats_linux.c (xenLinuxDomainDeviceID): Likewise.
      * src/util.c (TOLOWER, __virMacAddrCompare, virParseMacAddr): Likewise.
      * src/virsh.c (cmdVcpupin, vshCommandGetToken): Likewise.
      225ba3f0
  21. 11 4月, 2008 2 次提交
  22. 08 4月, 2008 1 次提交
  23. 29 3月, 2008 1 次提交
  24. 27 3月, 2008 2 次提交
    • J
      qemudReportError: mark for translation string args to this function · b53c4e51
      Jim Meyering 提交于
      * Makefile.maint (msg_gen_function): Add qemudReportError.
      * src/qemu_conf.c (qemudLoadDriverConfig)
      (qemudExtractVersion, qemudParseDiskXML, qemudParseInterfaceXML)
      (qemudParseInputXML, qemudParseXML, qemudNetworkIfaceConnect)
      (qemudBuildCommandLine, qemudSaveConfig, qemudParseVMDeviceDef)
      (qemudAssignVMDef, qemudSaveVMDef, qemudSaveNetworkConfig)
      (qemudParseDhcpRangesXML, qemudParseNetworkXML)
      (qemudAssignNetworkDef, qemudSaveNetworkDef, qemudGenerateXML)
      (qemudGenerateNetworkXML, qemudDeleteConfig): Mark strings.
      * src/qemu_driver.c (qemudBuildDnsmasqArgv, qemudAddIptablesRules)
      (qemudGetCapabilities, qemudDomainGetOSType)
      (qemudListDefinedDomains, qemudListNetworks)
      (qemudListDefinedNetworks, qemudNetworkGetBridgeName): Mark strings.
      b53c4e51
    • J
      Mark many more strings for translation. · 513bd04c
      Jim Meyering 提交于
      * Makefile.maint (err_func_re): Add to the list and make it readable.
      * po/POTFILES.in: Add src/util.c and src/xm_internal.c, and sort.
      * src/storage_backend.c: Fix comment.
      * src/util.c (virFileLinkPointsTo): Mark a string.
      * qemud/remote.c (remoteDispatchClientRequest): Mark strings.
      (remoteDispatchOpen, CHECK_CONN, remoteDispatchGetType): Likewise.
      (remoteDispatchDomainGetSchedulerType): Likewise.
      (remoteDispatchDomainGetSchedulerParameters): Likewise.
      (remoteDispatchDomainSetSchedulerParameters): Likewise.
      (remoteDispatchDomainBlockStats): Likewise.
      (remoteDispatchDomainInterfaceStats): Likewise.
      (remoteDispatchDomainAttachDevice, remoteDispatchDomainCreate):
      (remoteDispatchDomainDestroy, remoteDispatchDomainDetachDevice):
      (remoteDispatchDomainDumpXml, remoteDispatchDomainGetAutostart):
      (remoteDispatchDomainGetInfo, remoteDispatchDomainGetMaxMemory):
      (remoteDispatchDomainGetMaxVcpus, remoteDispatchDomainGetOsType):
      (remoteDispatchDomainGetVcpus): Likewise.
      (remoteDispatchDomainMigratePerform): Likewise.
      (remoteDispatchListDefinedDomains, remoteDispatchDomainPinVcpu):
      (remoteDispatchDomainReboot, remoteDispatchDomainResume):
      (remoteDispatchDomainSave, remoteDispatchDomainCoreDump):
      (remoteDispatchDomainSetAutostart): Likewise.
      (remoteDispatchDomainSetMaxMemory, remoteDispatchDomainSetMemory):
      (remoteDispatchDomainSetVcpus, remoteDispatchDomainShutdown):
      (remoteDispatchDomainSuspend, remoteDispatchDomainUndefine):
      (remoteDispatchListDefinedNetworks, remoteDispatchListDomains):
      (remoteDispatchListNetworks, remoteDispatchNetworkCreate):
      (remoteDispatchNetworkDestroy, remoteDispatchNetworkDumpXml):
      (remoteDispatchNetworkGetAutostart, remoteDispatchNetworkGetBridgeName):
      (remoteDispatchNetworkSetAutostart, remoteDispatchNetworkUndefine):
      (addrToString, remoteDispatchAuthSaslInit, remoteDispatchAuthSaslStart):
      (remoteDispatchAuthSaslStep, remoteDispatchListDefinedStoragePools):
      (remoteDispatchListStoragePools, remoteDispatchStoragePoolCreate):
      (remoteDispatchStoragePoolBuild, remoteDispatchStoragePoolDestroy):
      (remoteDispatchStoragePoolDelete, remoteDispatchStoragePoolRefresh):
      (remoteDispatchStoragePoolGetInfo, remoteDispatchStoragePoolDumpXml):
      (remoteDispatchStoragePoolGetAutostart): Likewise.
      (remoteDispatchStoragePoolSetAutostart):
      (remoteDispatchStoragePoolListVolumes):
      (remoteDispatchStoragePoolNumOfVolumes):
      (remoteDispatchStoragePoolUndefine, remoteDispatchStorageVolCreateXml):
      (remoteDispatchStorageVolDelete, remoteDispatchStorageVolGetInfo):
      (remoteDispatchStorageVolDumpXml, remoteDispatchStorageVolGetPath):
      (remoteDispatchStorageVolLookupByName): Likewise.
      * src/qemu_driver.c (qemudOpenMonitor, qemudStartVMDaemon):
      (dhcpStartDhcpDaemon, qemudStartNetworkDaemon):
      (qemudDomainSuspend, qemudDomainResume, qemudDomainShutdown):
      (qemudDomainGetOSType, qemudDomainSetMaxMemory):
      (qemudDomainSetMemory, qemudDomainGetInfo, qemudDomainSave):
      (qemudDomainRestore, qemudDomainDumpXML, qemudDomainStart):
      (qemudDomainUndefine, qemudDomainChangeCDROM):
      (qemudDomainAttachDevice, qemudDomainGetAutostart):
      (qemudDomainSetAutostart, qemudDomainInterfaceStats):
      (qemudNetworkLookupByUUID, qemudNetworkLookupByName):
      (qemudNetworkUndefine, qemudNetworkStart, qemudNetworkDestroy):
      (qemudNetworkDumpXML, qemudNetworkGetAutostart):
      (qemudNetworkSetAutostart): Likewise.
      * src/virsh.c (cmdVcpupin, cmdAttachDevice, cmdDetachDevice): Likewise.
      * src/xm_internal.c (xenXMConfigCacheRefresh, xenXMDomainPinVcpu): Likewise.
      513bd04c
  25. 24 3月, 2008 2 次提交
  26. 19 3月, 2008 1 次提交
  27. 13 3月, 2008 1 次提交
  28. 27 2月, 2008 2 次提交