From: Ian Campbell Subject: Re: use xs_watch from userspace and use epoll instead of select Date: Mon, 6 Jun 2011 10:48:29 +0100 Message-ID: <1307353709.775.431.camel@zakaz.uk.xensource.com> References: <1307102689.15777.3.camel@vase> <1307103239.775.382.camel@zakaz.uk.xensource.com> <1307103479.15777.5.camel@vase> <1307117238.15777.7.camel@vase> <1307349708.775.419.camel@zakaz.uk.xensource.com> <1307350709.28250.2.camel@vase> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1307350709.28250.2.camel@vase> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "v.tolstov@selfip.ru" Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On Mon, 2011-06-06 at 09:58 +0100, Vasiliy G Tolstov wrote: > Code to using from domU. I'm correct all my mistakes and now relative > and full path watches work's fine with epoll and select based looping. > Sorry for wrong panic about it. Oh good. > Sorry for small offtop, where i can find example to use grand pages to > transfer for example 1byte from domU to dom) and vice versa? (it's "grant" pages). Any of the PV drivers would give a decent example for in kernel use of grant tables to setup a shared memory buffer, but I guess you are asking for a userspace example? The principals are mostly the same, except you use xc_* functions instead of the kernel ones. qemu contains some userspace backends, for example the xenfb backend. Daniel de Graaf posted some patches to make this use grant tables back in February/March this year -- you should check the ML archives. There are also PV disk and net backends in qemu. I can't think of any userspace frontends offhand. Once you have a shared page you can use the standard Xen ring.h datastructures to define your request and response protocol. What are you actually trying to build? Ian.