direct-io.hg

changeset 10450:0991ed8e4ae5

Add DOM0_DOMAIN_SETUP hypercall.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
[I fiddled with the flags prefix after all. :-)
Signed-off-by: Keir Fraser <keir@xensource.com>]
author kaf24@firebug.cl.cam.ac.uk
date Mon Jun 19 16:39:27 2006 +0100 (2006-06-19)
parents 2a99292b1a8a
children 1507021dccdf
files xen/include/public/dom0_ops.h
line diff
     1.1 --- a/xen/include/public/dom0_ops.h	Mon Jun 19 14:44:34 2006 +0100
     1.2 +++ b/xen/include/public/dom0_ops.h	Mon Jun 19 16:39:27 2006 +0100
     1.3 @@ -514,6 +514,19 @@ struct dom0_hypercall_init {
     1.4  typedef struct dom0_hypercall_init dom0_hypercall_init_t;
     1.5  DEFINE_XEN_GUEST_HANDLE(dom0_hypercall_init_t);
     1.6  
     1.7 +#define DOM0_DOMAIN_SETUP     49
     1.8 +#define _XEN_DOMAINSETUP_hvm_guest 0
     1.9 +#define XEN_DOMAINSETUP_hvm_guest  (1UL<<_XEN_DOMAINSETUP_hvm_guest)
    1.10 +typedef struct dom0_domain_setup {
    1.11 +    domid_t  domain;          /* domain to be affected */
    1.12 +    unsigned long flags;      /* XEN_DOMAINSETUP_* */
    1.13 +#ifdef __ia64__
    1.14 +    unsigned long bp;         /* mpaddr of boot param area */
    1.15 +    unsigned long maxmem;	  /* Highest memory address for MDT.  */
    1.16 +#endif
    1.17 +} dom0_domain_setup_t;
    1.18 +DEFINE_XEN_GUEST_HANDLE(dom0_domain_setup_t);
    1.19 +
    1.20  struct dom0_op {
    1.21      uint32_t cmd;
    1.22      uint32_t interface_version; /* DOM0_INTERFACE_VERSION */
    1.23 @@ -555,6 +568,7 @@ struct dom0_op {
    1.24          struct dom0_irq_permission    irq_permission;
    1.25          struct dom0_iomem_permission  iomem_permission;
    1.26          struct dom0_hypercall_init    hypercall_init;
    1.27 +        struct dom0_domain_setup      domain_setup;
    1.28          uint8_t                       pad[128];
    1.29      } u;
    1.30  };