ia64/linux-2.6.18-xen.hg

changeset 644:c110692c140f

Sync domctl.h for XEN_DOMCTL_subscribe

Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Aug 13 10:00:09 2008 +0100 (2008-08-13)
parents 1c928f28914a
children 359b1e70d9eb
files include/xen/interface/domctl.h
line diff
     1.1 --- a/include/xen/interface/domctl.h	Mon Aug 11 13:39:00 2008 +0100
     1.2 +++ b/include/xen/interface/domctl.h	Wed Aug 13 10:00:09 2008 +0100
     1.3 @@ -448,6 +448,16 @@ struct xen_domctl_assign_device {
     1.4  typedef struct xen_domctl_assign_device xen_domctl_assign_device_t;
     1.5  DEFINE_XEN_GUEST_HANDLE(xen_domctl_assign_device_t);
     1.6  
     1.7 +/* Retrieve sibling devices infomation of machine_bdf */
     1.8 +#define XEN_DOMCTL_get_device_group 50
     1.9 +struct xen_domctl_get_device_group {
    1.10 +    uint32_t  machine_bdf;      /* IN */
    1.11 +    uint32_t  max_sdevs;        /* IN */
    1.12 +    uint32_t  num_sdevs;        /* OUT */
    1.13 +    XEN_GUEST_HANDLE_64(uint32)  sdev_array;   /* OUT */
    1.14 +};
    1.15 +typedef struct xen_domctl_get_device_group xen_domctl_get_device_group_t;
    1.16 +DEFINE_XEN_GUEST_HANDLE(xen_domctl_get_device_group_t);
    1.17  
    1.18  /* Pass-through interrupts: bind real irq -> hvm devfn. */
    1.19  #define XEN_DOMCTL_bind_pt_irq       38
    1.20 @@ -590,6 +600,21 @@ typedef struct xen_domctl_cpuid xen_domc
    1.21  DEFINE_XEN_GUEST_HANDLE(xen_domctl_cpuid_t);
    1.22  #endif
    1.23  
    1.24 +#define XEN_DOMCTL_subscribe          29
    1.25 +struct xen_domctl_subscribe {
    1.26 +    uint32_t port; /* IN */
    1.27 +};
    1.28 +typedef struct xen_domctl_subscribe xen_domctl_subscribe_t;
    1.29 +DEFINE_XEN_GUEST_HANDLE(xen_domctl_subscribe_t);
    1.30 +
    1.31 +/*
    1.32 + * Define the maximum machine address size which should be allocated
    1.33 + * to a guest.
    1.34 + */
    1.35 +#define XEN_DOMCTL_set_machine_address_size  51
    1.36 +#define XEN_DOMCTL_get_machine_address_size  52
    1.37 +
    1.38 +
    1.39  struct xen_domctl {
    1.40      uint32_t cmd;
    1.41      uint32_t interface_version; /* XEN_DOMCTL_INTERFACE_VERSION */
    1.42 @@ -619,6 +644,7 @@ struct xen_domctl {
    1.43          struct xen_domctl_hvmcontext        hvmcontext;
    1.44          struct xen_domctl_address_size      address_size;
    1.45          struct xen_domctl_sendtrigger       sendtrigger;
    1.46 +        struct xen_domctl_get_device_group  get_device_group;
    1.47          struct xen_domctl_assign_device     assign_device;
    1.48          struct xen_domctl_bind_pt_irq       bind_pt_irq;
    1.49          struct xen_domctl_memory_mapping    memory_mapping;
    1.50 @@ -627,6 +653,7 @@ struct xen_domctl {
    1.51          struct xen_domctl_ext_vcpucontext   ext_vcpucontext;
    1.52          struct xen_domctl_set_opt_feature   set_opt_feature;
    1.53          struct xen_domctl_set_target        set_target;
    1.54 +        struct xen_domctl_subscribe         subscribe;
    1.55  #if defined(__i386__) || defined(__x86_64__)
    1.56          struct xen_domctl_cpuid             cpuid;
    1.57  #endif