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

Re: [Xen-devel] How to mask an event channel?


  • To: "吴佳民" <wujiamin_tyut@xxxxxxx>
  • 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
  • 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=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

>  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


 


Rackspace

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