[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [RFC PATCH 3/16]: PVH xen: Add PHYSDEVOP_map_iomem



On Thu, 24 Jan 2013 15:06:29 +0000
Tim Deegan <tim@xxxxxxx> wrote:

> At 17:32 -0800 on 11 Jan (1357925563), Mukesh Rathor wrote:
>DEFINE_XEN_GUEST_HANDLE(physdev_dbgp_op_t);
> >  
> > + 
> > +#define PHYSDEVOP_map_iomem        30
> > +struct physdev_map_iomem {
> > +    /* IN */
> > +    unsigned long first_gfn;
> > +    unsigned long first_mfn;
> > +    unsigned int nr_mfns;
> > +    unsigned int add_mapping;        /* 1 == add mapping;  0 ==
> > unmap */ +
> > +};
> > +typedef struct physdev_map_iomem physdev_map_iomem_t;
> > +DEFINE_XEN_GUEST_HANDLE(physdev_map_iomem_t);
> > +
> 
> This needs documentation.  Also, the arguemnts should be explicitly
> sized to avoid compat difficulties. 
> 
> Tim.

Done:

/* Map given gfns to mfns where mfns are part of IO space. */
#define PHYSDEVOP_map_iomem        30
struct physdev_map_iomem {
    /* IN */
    uint64_t first_gfn;
    uint64_t first_mfn;
    uint32_t nr_mfns;
    uint32_t add_mapping;        /* 1 == add mapping;  0 == unmap */

};


thanks,
Mukesh

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.