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

Re: [Xen-devel] [PATCH v1 0/2] libxl: add PV display device driver interface



On Thu, May 4, 2017 at 11:49 AM, Oleksandr Grytsov <al1img@xxxxxxxxx> wrote:
> Hi All,
>
> Here is configuration proposal with connector (surface) id:
>
> 1. Configuration file:
> vdispl = [ 'backend=0, devId=0, beAlloc=1,
> connectors=id0:800x600;id1:1024x768' ]
>
>     * backend - backend domain id or name (if different from dom 0);
>     * devId - device id (if different from 0);
>     * beAlloc - indicated where to allocate buffers (according to protocol 
> [1]);
>     * connectors - list of available connectors: each connector
> description consists of
>       string id and resolution separated by colon:
>         * id0, id1 - unique connector id. It is string which may contain:
>             - uppercase [A-Z] and lowercase [a-z] English alphabet characters;
>             - digits 0-9;
>             - special symbols except: space : ; , ' "
>         * 800x600, 1024x768 - connectors resolutions.
>
> 2. libxl_types.idl:
>
> libxl_connector_param = Struct("connector_param", [
>     ("id", string),
>     ("width", uint32),
>     ("height", uint32)
>     ])
>
> libxl_device_vdispl = Struct("device_vdispl", [
>     ("backend_domid", libxl_domid),
>     ("backend_domname", string),
>     ("devid", libxl_devid),
>     ("be_alloc", bool),
>     ("connectors", Array(libxl_connector_param, "num_connectors"))
>     ])
>
> libxl_connectorinfo = Struct("connectorinfo", [
>     ("id", string),
>     ("width", uint32),
>     ("height", uint32),
>     ("evtch", integer),
>     ("rref", integer),
>     ], dir=DIR_OUT)
>
> libxl_vdisplinfo = Struct("vdisplinfo", [
>     ("backend", string),
>     ("backend_id", uint32),
>     ("frontend", string),
>     ("frontend_id", uint32),
>     ("devid", libxl_devid),
>     ("state", integer),
>     ("be_alloc", bool),
>     ("connectors", Array(libxl_connectorinfo, "num_connectors"))
>     ], dir=DIR_OUT)
>
> 3. xl command line:
>
>     { "vdispl-attach",
>       &main_vdisplattach, 1, 1,
>       "Create a new virtual display device",
>       "<Domain> [devId=<Device>] [backend=<BackDomain>] 
> [beAlloc=<BackAlloc>]"\
>       " [connectors=<Connectors>]",
>       "    BackAlloc - set to 1 to allow backend allocated display buffers\n"
>       "    Connectors - list of connector's description in ID:WxH format,\n"
>       "    Where: ID - unique connector ID, W - connector width, H -
> connector height:\n"
>       "         id0:800x600;id1:1024x768"
>     },
>     { "vdispl-list",
>       &main_vdispllist, 0, 0,
>       "List virtual display devices for a domain",
>       "<Domain(s)>",
>     },
>     { "vdispl-detach",
>       &main_vdispldetach, 0, 1,
>       "Destroy a domain's virtual display device",
>       "<Domain> <DevId>",
>     },

Ping

-- 
Best Regards,
Oleksandr Grytsov.

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

 


Rackspace

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