1. 21 10月, 2009 7 次提交
  2. 19 10月, 2009 3 次提交
    • D
      Remove bogus const annotations to hash iterator · cf577653
      Daniel P. Berrange 提交于
      Most of the hash iterators need to modify either payload of
      data args. The const annotation prevents this.
      
      * src/util/hash.h, src/util/hash.c: Remove const-ness from
        virHashForEach/Iterator
      * src/xen/xm_internal.c: Remove bogus casts
      cf577653
    • D
      fix virDomainMigrateToURI doc · de2b252d
      Dan Kenigsberg 提交于
      * src/libvirt.c: remove reverences to non existent dconn parameter
        when using that entry point.
      de2b252d
    • R
      LXC fix virCgroupGetValueStr problem with \n · 41fa653f
      Ryota Ozaki 提交于
      A cgroup file returns integer value terminated with '\n' and remaining
      it has sometimes harmful effects, for example it leads virStrToLong_ull
      to fail.
      * src/util/cgroup.c: strip out terminating \n when reading a value
      41fa653f
  3. 17 10月, 2009 1 次提交
  4. 16 10月, 2009 6 次提交
  5. 15 10月, 2009 2 次提交
    • M
      Don't copy old machines from a domain which has none · 2210f8a3
      Mark McLoughlin 提交于
      If the the qemu and kvm binaries are the same, we don't include machine
      types in the kvm domain info.
      
      However, the code which refreshes the machine types info from the
      previous capabilities structure first looks at the kvm domain's info,
      finds it matches and then copies the empty machine types list over
      for the top-level qemu domain.
      
      That doesn't make sense, we shouldn't copy an empty machin types list.
      
      * src/qemu/qemu_conf.c: qemudGetOldMachinesFromInfo(): don't copy an
        empty machine types list.
      2210f8a3
    • L
      Avoid crash in virBufferEscapeString · 04e06862
      Laine Stump 提交于
      * src/util/buf.c: if virBufferEscapeString was called on a buffer that
        had 0 bytes of space, a size of -1 will be passed to snprintf, resulting
        in a segmentation fault, this preallocate some space.
      04e06862
  6. 14 10月, 2009 6 次提交
  7. 13 10月, 2009 11 次提交
  8. 12 10月, 2009 2 次提交
    • M
      Take domain type into account when looking up default machine · 73c901a8
      Mark McLoughlin 提交于
      If one has e.g.
      
        <guest>
          <os_type>hvm</os_type>
          <arch name='x86_64'>
            <wordsize>64</wordsize>
            <emulator>/usr/bin/qemu-system-x86_64</emulator>
            <machine>pc-0.11</machine>
            <machine canonical='pc-0.11'>pc</machine>
            <machine>pc-0.10</machine>
            <machine>isapc</machine>
            <domain type='qemu'>
            </domain>
            <domain type='kvm'>
              <emulator>/usr/bin/kvm</emulator>
              <machine>pc</machine>
              <machine>isapc</machine>
            </domain>
          </arch>
        </guest>
      
      and start a guest with:
      
        <domain type='kvm'>
          ...
          <os>
            <type arch='x86_64'>hvm</type>
            ...
          </os>
        </domain>
      
      then the default machine type should be 'pc' and not 'pc-0.11'
      
      Issue was reported by Anton Protopopov.
      
      * src/capabilities.[ch]: pass the domain type to
        virCapabilitiesDefaultGuestArch() and use it to look up the default
        machine type from a specific guest domain if needed.
      
      * src/conf/domain_conf.c, src/xen/xm_internal.c: update
      
      * tests/qemuxml2argvdata/qemuxml2argv-machine-aliases2.xml: update
        the domain type to 'kvm' and remove the machine type to check
        that the default gets looked up correctly
      73c901a8
    • M
      Fix schema to allow missing machine type · 33948c68
      Mark McLoughlin 提交于
      The domain/os/type element may have an arch specified without having
      a machine variant specified. In fact, this is what python-virtinst
      does when defining a guest.
      
      * docs/schemas/domain.rng: allow missing machine type
      33948c68
  9. 09 10月, 2009 2 次提交
    • D
      Rewrite example domain events programm for python · 93f77250
      Daniel P. Berrange 提交于
      The existing python demo for domain events does not fully
      implement the event loop contract. This makes the code useless
      for real world applications. This change re-writes the demo so
      that it has a full event loop implementation which is suitable
      for application usage & better demonstrates integration
      
      * examples/domain-events/events-python/event-test.py: Rewrite
        to include a real world usable event loop implementation
      93f77250
    • D
      Remove some auto-generated files · 35b5f84c
      Daniel P. Berrange 提交于
      Removes some auto-generated files still under version control.
      It also moves the rule for generating NEWS into the Makefile.am
      that's in the same directory as the output file to avoid confusion
      
      * docs/libvirt-api.xml, docs/libvirt-refs.xml, NEWS: Remove
        auto-generated files from source control
      * Makefile.am: Add rule for generating NEWS file
      * docs/Makefile.am: Remove rule for generating NEWS file
      35b5f84c