xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Vasiliy G Tolstov <v.tolstov@selfip.ru>
To: Ian Campbell <Ian.Campbell@eu.citrix.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: use xs_watch from userspace and use epoll instead of select
Date: Mon, 06 Jun 2011 15:18:44 +0400	[thread overview]
Message-ID: <1307359124.28250.9.camel@vase> (raw)
In-Reply-To: <1307358029.775.437.camel@zakaz.uk.xensource.com>

On Mon, 2011-06-06 at 12:00 +0100, Ian Campbell wrote:
> On Mon, 2011-06-06 at 11:05 +0100, Vasiliy G Tolstov wrote:
> > On Mon, 2011-06-06 at 10:48 +0100, Ian Campbell wrote:
> 
> > > What are you actually trying to build?
> 
> > I'm try to build daemon, that can recieve command via xenstore (xs_watch
> > for specific path), via /dev/hvcN (serial char interface), now i'm try
> > to use gntmem mechanism to do this too. If one method not available or
> > not work or some errors accured - i'm try next. 
> > /dev/hvcN Not good sometimes, becouse in some domU i have gentty on this
> > port.
> > xenstore - has limit in size of message...
> 
> Interesting.
> 
> > In kernel side xen thing more easy to understand. Use it under userspace
> > need deep googling =).
> 
> I'm afraid so.
> 
> Remember that the underlying grant table hypercall's and mechanisms are
> the same in both kernel and userspace and the APIs provided reflect that
> -- userspace is not all that different.
> 
> In userspace you might need (actually I think it's probably required)
> to use the gntalloc driver (added to pvops by Daniel de Graff around
> 2.6.39 I think) to get memory suitable for granting out.
> 
> > Ok if i use grant pages mechanism - do i have notify for new message
> > after it arrives? If i use xs from domU i need libxc under it insted of
> > libxenstore ?
> 
> Yes you need to notify, libxc provides an interface to event channels as
> well as grant tables.
> 
> You will probably need both libxc and libxenstore. You use xenstore to
> negotiated the event channel and shared page with your peer and libxc to
> create, map, signal them etc.
> 
> Ian.
> 
> 

Thanks for suggestions. I'm try investigate e-mail list with gntdev
patches and write example code..
-- 
Vasiliy G Tolstov <v.tolstov@selfip.ru>
Selfip.Ru

  reply	other threads:[~2011-06-06 11:18 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-03 12:04 use xs_watch from userspace and use epoll instead of select Vasiliy G Tolstov
2011-06-03 12:13 ` Ian Campbell
2011-06-03 12:17   ` Vasiliy G Tolstov
2011-06-03 16:07     ` Vasiliy G Tolstov
2011-06-06  8:41       ` Ian Campbell
2011-06-06  8:58         ` Vasiliy G Tolstov
2011-06-06  9:48           ` Ian Campbell
2011-06-06 10:05             ` Vasiliy G Tolstov
2011-06-06 11:00               ` Ian Campbell
2011-06-06 11:18                 ` Vasiliy G Tolstov [this message]
2011-06-06 11:26                   ` Ian Campbell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1307359124.28250.9.camel@vase \
    --to=v.tolstov@selfip.ru \
    --cc=Ian.Campbell@eu.citrix.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).