From 0798941a85e36cadf569e91b1bc34a07c36d582e Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Tue, 11 Jul 2006 16:57:03 +0000 Subject: [PATCH] * configure.in libvirt.spec.in docs/* NEWS: preparing release of libvirt-0.1.3 * src/xend_internal.c: uninitialized var and disable TCP slow start Daniel --- ChangeLog | 7 ++++++- NEWS | 10 ++++++++++ configure.in | 2 +- docs/format.html | 13 +++++++------ docs/html/book1.html | 2 +- docs/html/index.html | 2 +- docs/html/libvirt-lib.html | 2 +- docs/html/libvirt-virterror.html | 1 + docs/libvir.html | 24 ++++++++++++++++++------ docs/news.html | 9 ++++++++- include/libvirt/libvirt.h | 2 +- libvirt.spec.in | 4 ++++ src/xend_internal.c | 10 +++++++++- 13 files changed, 68 insertions(+), 20 deletions(-) diff --git a/ChangeLog b/ChangeLog index a9b6cbb2a1..6aea8e9078 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Tue Jul 11 18:03:51 CEST 2006 Daniel Veillard + + * configure.in libvirt.spec.in docs/* NEWS: preparing release of + libvirt-0.1.3 + * src/xend_internal.c: uninitialized var and disable TCP slow start + Mon Jul 10 14:19:52 CEST 2006 Daniel Veillard * docs/format.html docs/libvir.html docs/news.html: updated the XML @@ -14,7 +20,6 @@ Fri Jul 7 09:47:14 EDT 2006 Daniel Berrange an sexpr GET on /xend/domain/[ID] instead of listing all names and iterating over /xend/domain/[NAME]. Reduces the running time and number of GETs from O(n^2) to O(n). - * src/xend_internal.c: fixed xenDaemonOpen() to try both unix and Wed Jul 5 17:11:32 IST 2006 Mark McLoughlin diff --git a/NEWS b/NEWS index aab22611bb..2674a7b147 100644 --- a/NEWS +++ b/NEWS @@ -5,6 +5,16 @@ http://libvirt.org/news.html Releases +0.1.3: Jul 11 2006: + - bugfixes: build as non-root, fix xend access when root, handling of + empty XML elements (Mark McLoughlin), XML serialization and parsing fixes + (Mark McLoughlin), allow to create domains without disk (Mark + McLoughlin), + - improvement: xenDaemonLookupByID from O(n^2) to O(n) (Daniel Berrange), + support for fully virtualized guest (Jim Fehlig, DV, Mark McLoughlin) + - documentation: augmented to cover hvm domains + + 0.1.2: Jul 3 2006: - headers include paths fixup - proxy mechanism for unpriviledged read-only access by httpu diff --git a/configure.in b/configure.in index ba28df135b..fc5694e723 100644 --- a/configure.in +++ b/configure.in @@ -5,7 +5,7 @@ AC_CANONICAL_HOST LIBVIRT_MAJOR_VERSION=0 LIBVIRT_MINOR_VERSION=1 -LIBVIRT_MICRO_VERSION=2 +LIBVIRT_MICRO_VERSION=3 LIBVIRT_MICRO_VERSION_SUFFIX= LIBVIRT_VERSION=$LIBVIRT_MAJOR_VERSION.$LIBVIRT_MINOR_VERSION.$LIBVIRT_MICRO_VERSION$LIBVIRT_MICRO_VERSION_SUFFIX LIBVIRT_VERSION_INFO=`expr $LIBVIRT_MAJOR_VERSION + $LIBVIRT_MINOR_VERSION`:$LIBVIRT_MICRO_VERSION:$LIBVIRT_MINOR_VERSION diff --git a/docs/format.html b/docs/format.html index ba5c652920..c211813845 100644 --- a/docs/format.html +++ b/docs/format.html @@ -86,7 +86,7 @@ poweroff. There is various actions possible when this happen:

  • destroy </domain>

    While the format may be extended in various ways as support for more hypervisor types and features are added, it is expected that this core subset will remain functional in spite of the evolution of the library.

    Fully virtualized guests -(added in 0.1.3):

    Here is an example of a domain description used to start an fully +(added in 0.1.3):

    Here is an example of a domain description used to start a fully virtualized (a.k.a. HVM) Xen domain. This requires hardware virtualization support at the processor level but allows to run unmodified operating systems:

    <domain type='xen' id='3'>
    @@ -118,8 +118,8 @@ systems:

    <domain type='xen' id='3'>
     </domain>

    There is a few things to notice specifically for HVM domains:

    • the <os> block description is very different, first it indicates that the type is 'hvm' for hardware virtualization, then instead of a kernel, boot and command line arguments, it points to an os boot loader - which ill extract the boot informations from the boot device specified in - a separate boot element
    • + which will extract the boot informations from the boot device specified + in a separate boot element
    • the <devices> section includes an emulator entry pointing to an additional program in charge of emulating the devices
    • the disk entry indicates in the dev target section that the emulation @@ -127,6 +127,7 @@ systems:

      <domain type='xen' id='3'>
         
    • the <devices> section also include at least one entry for the graphic device used to render the os. Currently there is just 2 types possible 'vnc' or 'sdl'
    • -

    It is likely that the HVM description gets additional elements and -attributes as the support for fully virtualized domain expands especially for -the kind of devices emulated and the graphic options offered.

    +

It is likely that the HVM description gets additional optional elements +and attributes as the support for fully virtualized domain expands, +especially for the variety of devices emulated and the graphic support +options offered.

diff --git a/docs/html/book1.html b/docs/html/book1.html index 3fe8028099..28b5113721 100644 --- a/docs/html/book1.html +++ b/docs/html/book1.html @@ -1,3 +1,3 @@ -Reference Manual for libvirt

Reference Manual for libvirt

Table of Contents

    +Reference Manual for libvirt

    Reference Manual for libvirt

    Table of Contents

    • libvirt: core interfaces for the libvirt library
    • virterror: error handling interfaces for the libvirt library

    diff --git a/docs/html/index.html b/docs/html/index.html index 3fe8028099..28b5113721 100644 --- a/docs/html/index.html +++ b/docs/html/index.html @@ -1,3 +1,3 @@ -Reference Manual for libvirt

    Reference Manual for libvirt

    Table of Contents

      +Reference Manual for libvirt

      Reference Manual for libvirt

      Table of Contents

      • libvirt: core interfaces for the libvirt library
      • virterror: error handling interfaces for the libvirt library

      diff --git a/docs/html/libvirt-lib.html b/docs/html/libvirt-lib.html index 3fe8028099..28b5113721 100644 --- a/docs/html/libvirt-lib.html +++ b/docs/html/libvirt-lib.html @@ -1,3 +1,3 @@ -Reference Manual for libvirt

      Reference Manual for libvirt

      Table of Contents

        +Reference Manual for libvirt

        Reference Manual for libvirt

        Table of Contents

        • libvirt: core interfaces for the libvirt library
        • virterror: error handling interfaces for the libvirt library

        diff --git a/docs/html/libvirt-virterror.html b/docs/html/libvirt-virterror.html index e8adf9a4c6..b5df81041d 100644 --- a/docs/html/libvirt-virterror.html +++ b/docs/html/libvirt-virterror.html @@ -40,6 +40,7 @@ void virErrorFunc (void * userData,
        VIR_FROM_XML = 5 : Error in the XML code VIR_FROM_DOM = 6 : Error when operating on a domain VIR_FROM_RPC = 7 : Error in the XML-RPC code + VIR_FROM_PROXY = 8 : Error in the proxy code }

        Enum virErrorLevel

        Enum virErrorLevel {
             VIR_ERR_NONE = 0
        diff --git a/docs/libvir.html b/docs/libvir.html
        index a73a800fe3..5b5716697c 100644
        --- a/docs/libvir.html
        +++ b/docs/libvir.html
        @@ -33,6 +33,17 @@ development of libvirt, it is preferable when possible to just use the CVS version or snapshot, contact the mailing list
         and check the ChangeLog to gauge progresses.

        +

        0.1.3: Jul 11 2006

        +
          +
        • bugfixes: build as non-root, fix xend access when root, handling of + empty XML elements (Mark McLoughlin), XML serialization and parsing fixes + (Mark McLoughlin), allow to create domains without disk (Mark + McLoughlin),
        • +
        • improvement: xenDaemonLookupByID from O(n^2) to O(n) (Daniel Berrange), + support for fully virtualized guest (Jim Fehlig, DV, Mark McLoughlin)
        • +
        • documentation: augmented to cover hvm domains
        • +
        +

        0.1.2: Jul 3 2006

        • headers include paths fixup
        • @@ -396,7 +407,7 @@ will remain functional in spite of the evolution of the library.

          Fully virtualized guests (added in 0.1.3):

          -

          Here is an example of a domain description used to start an fully +

          Here is an example of a domain description used to start a fully virtualized (a.k.a. HVM) Xen domain. This requires hardware virtualization support at the processor level but allows to run unmodified operating systems:

          @@ -433,8 +444,8 @@ systems:

        • the <os> block description is very different, first it indicates that the type is 'hvm' for hardware virtualization, then instead of a kernel, boot and command line arguments, it points to an os boot loader - which ill extract the boot informations from the boot device specified in - a separate boot element
        • + which will extract the boot informations from the boot device specified + in a separate boot element
        • the <devices> section includes an emulator entry pointing to an additional program in charge of emulating the devices
        • the disk entry indicates in the dev target section that the emulation @@ -444,9 +455,10 @@ systems:

          possible 'vnc' or 'sdl'
        -

        It is likely that the HVM description gets additional elements and -attributes as the support for fully virtualized domain expands especially for -the kind of devices emulated and the graphic options offered.

        +

        It is likely that the HVM description gets additional optional elements +and attributes as the support for fully virtualized domain expands, +especially for the variety of devices emulated and the graphic support +options offered.

        Binding for Python

        diff --git a/docs/news.html b/docs/news.html index bea504ff19..ddb93f6128 100644 --- a/docs/news.html +++ b/docs/news.html @@ -2,7 +2,14 @@ Releases

        Releases

        Here is the list of official releases, however since it is early on in the development of libvirt, it is preferable when possible to just use the CVS version or snapshot, contact the mailing list -and check the ChangeLog to gauge progresses.

        0.1.2: Jul 3 2006

        • headers include paths fixup
        • +and check the ChangeLog to gauge progresses.

          0.1.3: Jul 11 2006

          • bugfixes: build as non-root, fix xend access when root, handling of + empty XML elements (Mark McLoughlin), XML serialization and parsing fixes + (Mark McLoughlin), allow to create domains without disk (Mark + McLoughlin),
          • +
          • improvement: xenDaemonLookupByID from O(n^2) to O(n) (Daniel Berrange), + support for fully virtualized guest (Jim Fehlig, DV, Mark McLoughlin)
          • +
          • documentation: augmented to cover hvm domains
          • +

          0.1.2: Jul 3 2006

          • headers include paths fixup
          • proxy mechanism for unpriviledged read-only access by httpu

          0.1.1: Jun 21 2006

          • building fixes: ncurses fallback (Jim Fehlig), VPATH builds (Daniel P. Berrange)
          • diff --git a/include/libvirt/libvirt.h b/include/libvirt/libvirt.h index 627f3b419f..523bb73011 100644 --- a/include/libvirt/libvirt.h +++ b/include/libvirt/libvirt.h @@ -184,7 +184,7 @@ typedef virNodeInfo *virNodeInfoPtr; * version * 1,000,000 + minor * 1000 + micro */ -#define LIBVIR_VERSION_NUMBER 1002 +#define LIBVIR_VERSION_NUMBER 1003 int virGetVersion (unsigned long *libVer, const char *type, diff --git a/libvirt.spec.in b/libvirt.spec.in index 8fcf3aba0c..c48c0a4c5c 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -104,6 +104,10 @@ rm -fr %{buildroot} %doc docs/examples/python %changelog +* Tue Jul 11 2006 Daniel Veillard 0.1.3-1 +- support for HVM Xen guests +- various bugfixes + * Mon Jul 3 2006 Daniel Veillard 0.1.2-1 - added a proxy mechanism for read only access using httpu - fixed header includes paths diff --git a/src/xend_internal.c b/src/xend_internal.c index 6e9c32bf9d..35f4856672 100644 --- a/src/xend_internal.c +++ b/src/xend_internal.c @@ -184,6 +184,7 @@ do_connect(virConnectPtr xend) { int s; int serrno; + int no_slow_start = 1; s = socket(xend->type, SOCK_STREAM, 0); if (s == -1) { @@ -192,6 +193,13 @@ do_connect(virConnectPtr xend) return -1; } + /* + * try to desactivate slow-start + */ + setsockopt(s, IPPROTO_TCP, TCP_NODELAY, (void *)&no_slow_start, + sizeof(no_slow_start)); + + if (connect(s, xend->addr, xend->len) == -1) { serrno = errno; close(s); @@ -1435,7 +1443,7 @@ xend_parse_sexp_desc(struct sexpr *root) struct sexpr *cur, *node; const char *tmp; virBuffer buf; - int hvm; + int hvm = 0; if (root == NULL) { /* ERROR */ -- GitLab