1. 29 7月, 2011 1 次提交
    • L
      conf: add <listen> subelement to domain <graphics> element · ef79fb5b
      Laine Stump 提交于
      Once it's plugged in, the <listen> element will be an optional
      replacement for the "listen" attribute that graphics elements already
      have. If the <listen> element is type='address', it will have an
      attribute called 'address' which will contain an IP address or dns
      name that the guest's display server should listen on. If, however,
      type='network', the <listen> element should have an attribute called
      'network' that will be set to the name of a network configuration to
      get the IP address from.
      
      * docs/schemas/domain.rng: updated to allow the <listen> element
      
      * docs/formatdomain.html.in: document the <listen> element and its
        attributes.
      
      * src/conf/domain_conf.[hc]:
      
        1) The domain parser, formatter, and data structure are modified to
           support 0 or more <listen> subelements to each <graphics>
           element. The old style "legacy" listen attribute is also still
           accepted, and will be stored internally just as if it were a
           separate <listen> element. On output (i.e. format), the address
           attribute of the first <listen> element of type 'address' will be
           duplicated in the legacy "listen" attribute of the <graphic>
           element.
      
        2) The "listenAddr" attribute has been removed from the unions in
           virDomainGRaphicsDef for graphics types vnc, rdp, and spice.
           This attribute is now in the <listen> subelement (aka
           virDomainGraphicsListenDef)
      
        3) Helper functions were written to provide simple access
           (both Get and Set) to the listen elements and their attributes.
      
      * src/libvirt_private.syms: export the listen helper functions
      
      * src/qemu/qemu_command.c, src/qemu/qemu_hotplug.c,
        src/qemu/qemu_migration.c, src/vbox/vbox_tmpl.c,
        src/vmx/vmx.c, src/xenxs/xen_sxpr.c, src/xenxs/xen_xm.c
      
        Modify all these files to use the listen helper functions rather
        than directly referencing the (now missing) listenAddr
        attribute. There can be multiple <listen> elements to a single
        <graphics>, but the drivers all currently only support one, so all
        replacements of direct access with a helper function indicate index
        "0".
      
      * tests/* - only 3 of these are new files added explicitly to test the
        new <listen> element. All the others have been modified to reflect
        the fact that any legacy "listen" attributes passed in to the domain
        parse will be saved in a <listen> element (i.e. one of the
        virDomainGraphicsListenDefs), and during the domain format function,
        both the <listen> element as well as the legacy attributes will be
        output.
      ef79fb5b
  2. 02 6月, 2011 1 次提交
    • J
      Fix order of disks and controllers · c1a98d88
      Jiri Denemark 提交于
      Commit 2d6adabd replaced qsorting disk
      and controller devices with inserting them at the right position. That
      was to fix unnecessary reordering of devices. However, when parsing
      domain XML devices are just taken in the order in which they appear in
      the XML since. Use the correct insertion algorithm to honor device
      target.
      c1a98d88
  3. 11 5月, 2011 1 次提交
    • P
      xen: parse and generate hpet item in sxpr · e547e44c
      Paolo Bonzini 提交于
      Recent versions of Xen disable the virtual HPET by default.  This is
      usually more precise because tick policies are not implemented for
      the HPET in Xen.  However, there may be several reasons to control
      the HPET manually: 1) to test the emulation; 2) because distros may
      provide the knob while leaving the default to "enabled" for compatibility
      reasons.
      
      This patch provides support for the hpet item in both sexpr and xm
      formats, and translates it to a <timer> element.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      e547e44c
  4. 26 2月, 2011 1 次提交
    • M
      Add support for multiple serial ports into the Xen driver · 3ee7cf6c
      Michal Novotny 提交于
      this is the patch to add support for multiple serial ports to the
      libvirt Xen driver. It support both old style (serial = "pty") and
      new style (serial = [ "/dev/ttyS0", "/dev/ttyS1" ]) definition and
      tests for xml2sexpr, sexpr2xml and xmconfig have been added as well.
      
      Written and tested on RHEL-5 Xen dom0 and working as designed but
      the Xen version have to have patch for RHBZ #614004 but this patch
      is for upstream version of libvirt.
      
      Also, this patch is addressing issue described in RHBZ #670789.
      Signed-off-by: NMichal Novotny <minovotn@redhat.com>
      3ee7cf6c
  5. 18 12月, 2010 1 次提交
    • E
      maint: improve tests distribution · 65532f45
      Eric Blake 提交于
      * tests/Makefile.am (EXTRA_DIST): Sort, and add directories.
      (SUBDIRS): Drop automake recursion into subdirs.
      * tests/commanddata/Makefile.am: Delete.
      * tests/confdata/Makefile.am: Likewise.
      * tests/sexpr2xmldata/Makefile.am: Likewise.
      * tests/xencapsdata/Makefile.am: Likewise.
      * tests/xmconfigdata/Makefile.am: Likewise.
      * tests/xml2sexprdata/Makefile.am: Likewise.
      65532f45
  6. 23 11月, 2010 1 次提交
  7. 20 10月, 2010 2 次提交
    • J
      Fix make check on RHEL-5 · f05b0e46
      Jiri Denemark 提交于
      The test for <vcpu> element is unrelated to vnc so the easiest fix is to
      remove related configuration.
      f05b0e46
    • E
      vcpu: improve vcpu support in xen command line · 0fab10e5
      Eric Blake 提交于
      This patch series focuses on xendConfigVersion 2 (xm_internal) and 3
      (xend_internal), but leaves out changes for xenapi drivers.
      
      See this link for more details about vcpu_avail for xm usage.
      http://lists.xensource.com/archives/html/xen-devel/2009-11/msg01061.html
      
      This relies on the fact that def->maxvcpus can be at most 32 with xen.
      
      * src/xen/xend_internal.c (xenDaemonParseSxpr)
      (sexpr_to_xend_domain_info, xenDaemonFormatSxpr): Use vcpu_avail
      when current vcpus is less than maximum.
      * src/xen/xm_internal.c (xenXMDomainConfigParse)
      (xenXMDomainConfigFormat): Likewise.
      * tests/xml2sexprdata/xml2sexpr-pv-vcpus.sexpr: New file.
      * tests/sexpr2xmldata/sexpr2xml-pv-vcpus.sexpr: Likewise.
      * tests/sexpr2xmldata/sexpr2xml-pv-vcpus.xml: Likewise.
      * tests/xmconfigdata/test-paravirt-vcpu.cfg: Likewise.
      * tests/xmconfigdata/test-paravirt-vcpu.xml: Likewise.
      * tests/xml2sexprtest.c (mymain): New test.
      * tests/sexpr2xmltest.c (mymain): Likewise.
      * tests/xmconfigtest.c (mymain): Likewise.
      0fab10e5
  8. 24 8月, 2010 1 次提交
    • J
      xen tests: Fix missing "type ioemu" with rhel5-api · 20311a9a
      Jiri Denemark 提交于
      The most common cause of errors with rhel5-api turn on was missing
      "(type ioemu)" in sexpr or its equivalent in XM configuration file. This
      happens because the presence of that part in sexpr (or cfg) depends on
      xen version the host is running. Let's avoid it by explicitly specifying
      interface model which ensures "type ioemu" will always be emitted.
      
      This patch adds
      
          <model type='e1000'/>
      
      withing the interface element in all affected xml files. And
      
          (model 'e1000')
      
      to all corresponding sexpr files with similar fix to cfg files. Such
      configuration works regardless on Xen version.
      20311a9a
  9. 10 8月, 2010 1 次提交
    • P
      bootloader_args is named bootargs in xen-xm · ab8b2bea
      Philipp Hahn 提交于
      According to <xen-3.4.3/tools/python/xen/xm/create.py:158>
      	gopts.var('bootargs', val='NAME',
      			  fn=set_value, default=None,
      			  use="Arguments to pass to boot loader")
      the "bootloader_args" parameter needs to be translated into "bootargs"
      when using "virsh domxml-to-native xen-xm".
      The reverse direction (domxml-from-native) is already okay.
      
      This patch fixes domxml-to-native and adds two test files to catch this
      problem.
      Signed-off-by: NPhilipp Hahn <hahn@univention.de>
      ab8b2bea
  10. 29 7月, 2010 1 次提交
    • C
      domain conf: Track <console> target type · 6b247552
      Cole Robinson 提交于
      All <console> devices now export a <target> type attribute. QEMU defaults
      to 'serial', UML defaults to 'uml, xen can be either 'serial' or 'xen'
      depending on fullvirt. Understandably there is lots of test fallout.
      
      This will be used to differentiate between a serial vs. virtio console for
      QEMU.
      Signed-off-by: NCole Robinson <crobinso@redhat.com>
      6b247552
  11. 15 6月, 2010 1 次提交
    • E
      maint: simplify some ignore files · fb8552f8
      Eric Blake 提交于
      * .hgignore: Delete, no longer used.
      * examples/python/.gitignore: Delete, covered globally.
      * include/.gitignore: Likewise.
      * python/tests/.gitignore: Likewise.
      * docs/schemas/.gitignore: Likewise.
      * tests/xml2sexprdata/.gitignore: Likewise.
      * tests/sexpr2xmldata/.gitignore: Likewise.
      * tests/confdata/.gitignore: Likewise.
      * tests/xencapsdata/.gitignore: Likewise.
      * tests/xmconfigdata/.gitignore: Likewise.
      * tests/xml2sexprdata/.gitignore: Likewise.
      fb8552f8
  12. 28 5月, 2010 1 次提交
  13. 25 2月, 2010 1 次提交
    • J
      build: avoid non-srcdir "make distcheck" failures (srcdir vs wildcard) · 083b901e
      Jim Meyering 提交于
      * tests/xencapsdata/Makefile.am: Use $(wildcard in $(srcdir)-aware manner
      * tests/xmconfigdata/Makefile.am: Likewise.
      * tests/xml2sexprdata/Makefile.am: Likewise.
      * tests/sexpr2xmldata/Makefile.am (EXTRA_DIST): Likewise.
      * Makefile.am (XML_EXAMPLES): Use $(wildcard in $(srcdir)-aware manner.
      083b901e
  14. 05 12月, 2009 1 次提交
  15. 08 7月, 2009 1 次提交
  16. 24 4月, 2009 1 次提交
  17. 03 4月, 2009 1 次提交
  18. 01 4月, 2009 1 次提交
  19. 28 11月, 2008 1 次提交
  20. 17 10月, 2008 1 次提交
    • J
      generate .gitignore files from .cvsignore ones · 164fbbd6
      Jim Meyering 提交于
      * Makefile.maint (sync-vcs-ignore-files): New target.
      Prompted by a patch from James Morris.
      http://thread.gmane.org/gmane.comp.emulators.libvirt/8619/focus=8773
      Add all (now-generated) .gitignore files.
      * .gitignore: New file.
      * build-aux/.gitignore: New file.
      * docs/.gitignore: New file.
      * docs/devhelp/.gitignore: New file.
      * docs/examples/.gitignore: New file.
      * docs/examples/python/.gitignore: New file.
      * gnulib/lib/.gitignore: New file.
      * gnulib/lib/arpa/.gitignore: New file.
      * gnulib/lib/netinet/.gitignore: New file.
      * gnulib/lib/sys/.gitignore: New file.
      * gnulib/tests/.gitignore: New file.
      * include/.gitignore: New file.
      * include/libvirt/.gitignore: New file.
      * po/.gitignore: New file.
      * proxy/.gitignore: New file.
      * python/.gitignore: New file.
      * python/tests/.gitignore: New file.
      * qemud/.gitignore: New file.
      * src/.gitignore: New file.
      * tests/.gitignore: New file.
      * tests/confdata/.gitignore: New file.
      * tests/sexpr2xmldata/.gitignore: New file.
      * tests/virshdata/.gitignore: New file.
      * tests/xencapsdata/.gitignore: New file.
      * tests/xmconfigdata/.gitignore: New file.
      * tests/xml2sexprdata/.gitignore: New file.
      164fbbd6
  21. 17 9月, 2008 1 次提交
  22. 09 9月, 2008 1 次提交
  23. 05 9月, 2008 1 次提交
  24. 25 7月, 2008 2 次提交
  25. 25 6月, 2008 1 次提交
  26. 08 5月, 2008 1 次提交
  27. 07 5月, 2008 1 次提交
    • D
      More regression tests for sound support · 0feb4c95
      Daniel Veillard 提交于
      * tests/qemuxml2argvdata/qemuxml2argv-sound.args
        tests/qemuxml2argvdata/qemuxml2argv-sound.xml
        tests/sexpr2xmldata/sexpr2xml-fv-sound-all.sexpr
        tests/sexpr2xmldata/sexpr2xml-fv-sound-all.xml
        tests/sexpr2xmldata/sexpr2xml-fv-sound.sexpr
        tests/sexpr2xmldata/sexpr2xml-fv-sound.xml
        tests/xmconfigdata/test-fullvirt-sound.cfg
        tests/xmconfigdata/test-fullvirt-sound.xml
        tests/xml2sexprdata/xml2sexpr-fv-sound.sexpr
        tests/xml2sexprdata/xml2sexpr-fv-sound.xml: other regression
        tests from previous commit
      Daniel
      0feb4c95
  28. 30 4月, 2008 1 次提交
  29. 26 4月, 2008 1 次提交
  30. 10 8月, 2007 1 次提交
  31. 19 7月, 2007 1 次提交
  32. 17 7月, 2007 1 次提交
  33. 08 6月, 2007 1 次提交
  34. 07 6月, 2007 1 次提交
  35. 20 1月, 2007 1 次提交