1. 08 11月, 2010 5 次提交
    • D
      Read the host sysinfo for the QEmu driver · 1e4c4599
      Daniel Veillard 提交于
      Read and store the data when initializing the driver.
      1e4c4599
    • D
      Add a sysinfo util module and read host info API · 778c0976
      Daniel Veillard 提交于
      Move existing routines about virSysinfoDef to an util module,
      add a new entry point virSysinfoRead() to read the host values
      with dmidecode
      
      * src/conf/domain_conf.c src/conf/domain_conf.h src/util/sysinfo.c
        src/util/sysinfo.h: move to a new module, add virSysinfoRead()
      * src/Makefile.am: handle the new module build
      * src/libvirt_private.syms: new internal symbols
      * include/libvirt/virterror.h src/util/virterror.c: defined a new
        error code for that module
      * po/POTFILES.in: add new file for translations
      778c0976
    • D
      Add smbios element to schema and configuration to HVM os · d528b52f
      Daniel Veillard 提交于
      the element has a mode attribute allowing only 3 values:
        - emulate: use the smbios emulation from the hypervisor
        - host: try to use the smbios values from the node
        - sysinfo: grab the values from the <sysinfo> fields
      
      * docs/schemas/domain.rng: extend the schemas
      * src/conf/domain_conf.h: add the flag to the domain config
      * src/conf/domain_conf.h: parse and serialize the smbios if present
      d528b52f
    • D
      Sysinfo parsing and saving to/from configuration files · ebb7a0dd
      Daniel Veillard 提交于
      * src/conf/domain_conf.h: defines a new internal type added to the
        domain structure
      * src/conf/domain_conf.c: parsing and serialization of that new type
      ebb7a0dd
    • D
      Sysinfo extension to relax-ng schemas · 5c3611ca
      Daniel Veillard 提交于
      Currently includes a subset of the SMBIOS strings set
      5c3611ca
  2. 06 11月, 2010 2 次提交
  3. 05 11月, 2010 1 次提交
  4. 03 11月, 2010 6 次提交
    • S
      macvtap: libvirtd forgot macvtap dev name when restarted · c4bd44d9
      Stefan Berger 提交于
      During a shutdown/restart cycle libvirtd forgot the macvtap device name that it had created on behalf of a VM so that a stale macvtap device remained on the host when the VM terminated. Libvirtd has to actively tear down a macvtap device and it uses its name for identifying which device to tear down.
      
      The solution is to not blank out the <target dev='...'/> completely, but only blank it out on VMs that are not active. So, if a VM is active, the device name makes it into the XML and is also being parsed. If a VM is not active, the device name is discarded.
      c4bd44d9
    • O
      tests: fix daemon-conf testing failure · d9c75c8d
      Osier Yang 提交于
      libvirtd.conf uses "libvirt" as the value of "unix_sock_group",
      however, group "libvirt" may not exist on the system, in this case
      the case will always fail.
      
      As a solution, replace "libvirt" with "$USER" in "tmp.conf".
      d9c75c8d
    • D
      Fix virPipeReadUntilEOF on more than 1024 bytes of data · 04cbfa4f
      Daniel Veillard 提交于
      virPipeReadUntilEOF is used to read the stdout of exec'ed
      and this could fail to capture the full output and read only
      1024 bytes.
        The problem is that this is based on a poll loop, and in the
      loop we read at most 1024 bytes per file descriptor, but we also
      note in the loop if poll indicates that the process won't output
      more than that on that fd by setting finished[i] = 1.
        The simplest way is that if we read a full buffer make sure
      finished[i] is still 0 because we will need another pass in the
      loop.
      04cbfa4f
    • E
      virterror: supply missing spaces · b50408c1
      Eric Blake 提交于
      * src/util/virterror.c (virErrorDomainName): Always supply
      trailing space if category was present.
      b50408c1
    • E
      xen: work with xen 4.0.1 headers · 8dd22be9
      Eric Blake 提交于
      * src/xen/xen_driver.h (includes): Include main xen headers
      here...
      * src/xen/xs_internal.c (includes): ...rather than in just one of
      the sub-drivers.
      8dd22be9
    • J
      Fix build with polkit 0 · 98b8424e
      Jim Fehlig 提交于
      Commit e8066d53 broke the build with polkit0:
      
      remote.c: In function 'remoteDispatchAuthPolkit':
      remote.c:4177: error: 'rv' undeclared (first use in this function)
      
      Add missing identifier.
      98b8424e
  5. 02 11月, 2010 12 次提交
  6. 01 11月, 2010 1 次提交
    • E
      xen: work with ia64 MAX_VIRT_CPUS of 64 · dc27e089
      Eric Blake 提交于
      * src/xen/xen_hypervisor.c (MAX_VIRT_CPUS): Move...
      * src/xen/xen_driver.h (MAX_VIRT_CPUS): ...so all xen code can see
      same value.
      * src/xen/xend_internal.c (sexpr_to_xend_domain_info)
      (xenDaemonDomainGetVcpusFlags, xenDaemonParseSxpr)
      (xenDaemonFormatSxpr): Work if MAX_VIRT_CPUS is 64 on a platform
      where long is 64-bits.
      * src/xen/xm_internal.c (xenXMDomainConfigParse)
      (xenXMDomainConfigFormat): Likewise.
      dc27e089
  7. 30 10月, 2010 3 次提交
    • D
      build: cleanup declaration of xen tests. · 2f88770b
      Diego Elio Pettenò 提交于
      Only build statstest and reconnect if they should be used, so add them
      behind the ENABLE_XEN_TESTS conditional.
      2f88770b
    • K
    • K
      add compression support for "virsh dump" · 95a17abd
      KAMEZAWA Hiroyuki 提交于
      Add dump_image_format[] to qemu.conf and support compressed dump
      at virsh dump. coredump compression is important for saving disk space
      in an environment where multiple guests run.
      
      In general, "disk space for dump" is specially allocated and will be
      a dead space in the system. It's used only at emergency. So, it's better
      to have both of save_image_format and dump_image_format. "save" is done
      in scheduled manner with enough calculated disk space for it.
      
      This code reuses some of save_image_format[] and supports the same format.
      
      Changelog:
       - modified libvirtd_qemu.aug
       - modified test_libvirtd_qemu.aug
       - fixed error handling of qemudSaveCompressionTypeFromString()
      95a17abd
  8. 29 10月, 2010 7 次提交
  9. 28 10月, 2010 3 次提交
    • S
      eliminate possibility of a double-closed file descriptor · e92848eb
      Stefan Berger 提交于
      The 2nd and 3rd hunk show the only double-closed file descriptor code part that I found while trying to clean up close(). The first hunk seems a harmless cleanup in that same file.
      e92848eb
    • E
      qemu: check for vm after starting a job · 054d43f5
      Eric Blake 提交于
      https://bugzilla.redhat.com/show_bug.cgi?id=638285 - when migrating
      a guest, it was very easy to provoke a race where an application
      could query block information on a VM that had just been migrated
      away.  Any time qemu code obtains a job lock, it must also check
      that the VM was not taken down in the time where it was waiting
      for the lock.
      
      * src/qemu/qemu_driver.c (qemudDomainSetMemory)
      (qemudDomainGetInfo, qemuDomainGetBlockInfo): Check that vm still
      exists after obtaining job lock, before starting monitor action.
      054d43f5
    • L
      Only attempt removal of the rule allowing tftp if it was added · 0111cebb
      Laine Stump 提交于
      During virtual network startup, the iptables rule that allows tftp
      traffic is only added if network->def->tftproot is non-empty, but when
      the virtual network is destroyed, we had been unconditionally trying
      to delete the rule. This was harmless, except that it created a bogus
      error message.
      
      This patch conditionalizes the delete command in the same manner that
      the insert command is already conditionalized.
      0111cebb