direct-io.hg

diff tools/libxc/xenctrl.h @ 7404:75ec60b67f64

Have xenstored initialise its connections, meaning that xend can be out of
that loop completely -- the xc_init_store, initDomainStore calls can all go.

Have xenstored understand where the local domain information goes. Xend no
longer has to generate a path and pass it to xenstored through
xs_introduce_domain -- we just allow xenstored to generate the path, and then
call GetDomainPath later. There is still some work required to tidy this up.

Change the uuid module to generate uuids as lists of bytes, not in the
stringified form. Added a unit test for that module.

Change the semantics of Xend restart, relying on these changes to the
xenstored semantics and earlier changes to add an opaque handle to the
hypervisor's domain-specific data block. The semantics are now clearer, as
Xend can validate whether the details in the store match the current live
domain.

Added a usage statement to xenstored.

Some of this code is by Steven Hand.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@leeni.uk.xensource.com
date Mon Oct 17 16:22:05 2005 +0100 (2005-10-17)
parents fa0faada967b
children 8928c89a8d0a
line diff
     1.1 --- a/tools/libxc/xenctrl.h	Mon Oct 17 14:12:20 2005 +0100
     1.2 +++ b/tools/libxc/xenctrl.h	Mon Oct 17 16:22:05 2005 +0100
     1.3 @@ -236,12 +236,12 @@ int xc_domain_getinfolist(int xc_handle,
     1.4                            xc_domaininfo_t *info);
     1.5  
     1.6  /**
     1.7 - * This function returns information about one domain.  This information is
     1.8 - * more detailed than the information from xc_domain_getinfo().
     1.9 + * This function returns information about the execution context of a
    1.10 + * particular vcpu of a domain.
    1.11   *
    1.12   * @parm xc_handle a handle to an open hypervisor interface
    1.13   * @parm domid the domain to get information from
    1.14 - * @parm info a pointer to an xc_domaininfo_t to store the domain information
    1.15 + * @parm vcpu the vcpu number
    1.16   * @parm ctxt a pointer to a structure to store the execution context of the
    1.17   *            domain
    1.18   * @return 0 on success, -1 on failure
    1.19 @@ -489,15 +489,6 @@ int xc_dom0_op(int xc_handle, dom0_op_t 
    1.20  
    1.21  int xc_version(int xc_handle, int cmd, void *arg);
    1.22  
    1.23 -/* Initializes the store (for dom0)
    1.24 -   remote_port should be the remote end of a bound interdomain channel between
    1.25 -   the store and dom0.
    1.26 -
    1.27 -   This function returns a shared frame that should be passed to
    1.28 -   xs_introduce_domain
    1.29 - */
    1.30 -long xc_init_store(int xc_handle, int remote_port);
    1.31 -
    1.32  /*
    1.33   * MMU updates.
    1.34   */