diff --git a/ChangeLog b/ChangeLog index a9b6cbb2a18cb1353efed7f58b0058f00c764f8f..6aea8e907863f4c9859ad9e120b30f4b3889db9a 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 aab22611bbdb6ac1d69a46d23bab867e52b1d4cf..2674a7b147779ca7b3c18af47a33ebdb3aae75db 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 ba28df135bdea2db668a61f156863aee0a517771..fc5694e72316c0f66ed73a830f6afef051ac7e9c 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 ba5c6529209896d5edf2399572581ede550c8695..c211813845a654484317653c45ef4144542d7c4c 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 3fe8028099c3c91d60b88cc1cbb00cf01a162b83..28b5113721aaefa2d733c9ced5deffee9351b674 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 3fe8028099c3c91d60b88cc1cbb00cf01a162b83..28b5113721aaefa2d733c9ced5deffee9351b674 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 3fe8028099c3c91d60b88cc1cbb00cf01a162b83..28b5113721aaefa2d733c9ced5deffee9351b674 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 e8adf9a4c6723770630b131703088223fc1f6d8c..b5df81041db617a7813db6ee885e7e9bff6e56e0 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 a73a800fe35491b525fb57f96e2ccbbba9c6eb5e..5b5716697c057805902fc637dea74e23b560ddb7 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 bea504ff19bd6b785960e15ca2fab9a1f8cc1ec4..ddb93f6128366d198e928aef3d27e275fbb497b7 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 627f3b419ff4eac8a37716647f8d32acb1a371c0..523bb73011b902f887fc8c7156e653f7cd97baaa 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 8fcf3aba0cc8800367bc912f0729c74f89bfed37..c48c0a4c5c83f876511e0ccc1ff279aba43bcf0a 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 6e9c32bf9dadae37eef54ba3c879fa7588a8b04e..35f485667292277e6047df460d62c954dc2c59b2 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 */