WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH 0/2] enable event channel wake-up for mem_event i

To: Adin Scannell <adin@xxxxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH 0/2] enable event channel wake-up for mem_event interfaces
From: Keir Fraser <keir.xen@xxxxxxxxx>
Date: Thu, 29 Sep 2011 07:21:14 -0700
Cc: Tim Deegan <tim@xxxxxxx>
Delivery-date: Thu, 29 Sep 2011 07:21:55 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=user-agent:date:subject:from:to:cc:message-id:thread-topic :thread-index:in-reply-to:mime-version:content-type :content-transfer-encoding; bh=xGY6VTwoGCzV0OpzSh8LFUN4HL45idjTUU3idw00N7E=; b=xb5U3R9n2TxR9l/NB5AxFfNXTFhTXgCot36lv/l65yYlmStqXrTrepmuA23sWrXBHo f5IbCQAi9UvoHebQB87mKlEVWiQyTTEJ2hReuZzVhYxIgeHYT5Myp82yUW3SeOvUz4iP Voh2JGNYwrJHN4YwVnIaNWhAv2rLixEiR1MPs=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <CAAJKtqp1jEXzfp9Y+1pYKrxdLJU65r2oj3Fc4ScPrzufH8kiig@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acx+swtBFoXOYffjI0md8opwEL2aZw==
Thread-topic: [Xen-devel] [PATCH 0/2] enable event channel wake-up for mem_event interfaces
User-agent: Microsoft-Entourage/12.30.0.110427
On 28/09/2011 14:22, "Adin Scannell" <adin@xxxxxxxxxxxxxxx> wrote:

> Currently the mem_event code requires a domctl to kick the hypervisor
> and unpause vcpus.  An event channel is used to notify dom0 of
> requests placed in the ring, and it can similarly be used to notify
> Xen, so as not to overuse domctls when running many domains with
> mem_event interfaces (domctls are not a great interface for this sort
> of thing, because they will all be serialized).
> 
> This patch set enables the use of the event channel to signal when a
> response in placed in a mem_event ring.

I don't have an opinion on patch 1/2. I'll leave it to someone else, like
Tim, to comment.

Patch 2/2 I don't mind the principle, but the implementation is not very
scalable. I will post a rewritten version to the list. It might be early
next week before I do so.

 -- Keir

> The two patches are as follows:
> - The first patch tweaks the memevent code to ensure that no events
> are lost.  Instead of calling get_response once per kick, we may have
> to pull out multiple events at a time.  This doesn't affect normal
> operation with the domctls.
> This patch also ensures that each vCPU can generate a request in each
> mem_event ring (i.e. put_request will always work), by appropriately
> pausing vCPUs when after requests are placed.
> - The second patch breaks the Xen-side event channel handling into a
> new arch-specific file "events.c", and adds cases for the different
> Xen-handled event channels.  This formalizes the tiny exception that
> was in place for just qemu in event_channel.c.
> 
> All the domctls are still in place and everything should be backwards
> compatible.
> 
> Cheers,
> -Adin
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel