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] How to mask an event channel?

To: "吴佳民" <wujiamin_tyut@xxxxxxx>
Subject: Re: [Xen-devel] How to mask an event channel?
From: "Grzegorz Miłoś" <gm281@xxxxxxxxx>
Date: Tue, 24 Jun 2008 07:57:39 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 23 Jun 2008 23:58:05 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=tb+Kvf/WsBAGptg3FFvRwLZtNZpFkV3DxNTUb/72wNI=; b=NgFPCEXMBKRIB7RxtsTyAKAO+lF2TNc6qFKyvuxCLLdABQq+QwfYtJk5GdaaN/ZtnI z7QoAcmlgCsqJWx4MmdOeq2WXHIuEQ+uaClhfRMMWpQFtpR7ysOZ3MbPLg8IHDR+uJj+ 0ZIjuulRhmSLCyJl7DJHB4/A/lUpmIkmzl298=
Domainkey-signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=uQdSf1Q0AdID6vTN2+baAtjLFvdscPPOgewmn6ZJXedqVsO6wQ4FpZFc62cIBeVJuF IMouemn01rerQFMaSxCvYIx3qSUEc8TusKxnzVaCGS6F1xm0BZDV68ZNpYgw4Ua33kVT Dm7TrbDpNtuUd0p3oDL62Mo3nqewFiIDQOkZc=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <4498743.752821214275922209.JavaMail.coremail@xxxxxxxxxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <4498743.752821214275922209.JavaMail.coremail@xxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
>  In <Xen In seterface Manual>, chapter 5 Event Channels, they say
> that:"Event Notifications can be masked by setting a flag; this is
> equivalent to disabling interrupts and can be used to ensure atomicity of
> certain operation in the guest kernel".
>
> My question is :
> I know that we can use 'xc_evtchn_unmask(xcehandle, port)' to unmask an
> event channel , but I can not find the function used to mask an event
> channel.
> Can any body solve the problem?

You are looking on the userspace tools if you found the xc_ unmask. I
don't think there is the corresponding mask function there too, as
there was no need for it in the limited use of event channels that the
tools make.
You can find Linux mask/unmask functions in
linux-2.6.18-xen.hg/drivers/xen/core/evtchn.c though. Depending on
your needs you can add a new ioctl to evtchn_ioctl in
linux-2.6.18-xen.hg/drivers/xen/evtchn/evtchn.c and export it to
userspace that way.

Cheers
Gr(z)egor(z)

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

<Prev in Thread] Current Thread [Next in Thread>