From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Vrabel Subject: Re: Understanding Xen event channel bit operation Date: Mon, 26 Oct 2015 10:50:29 +0000 Message-ID: <562E0575.2020802@citrix.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: "amin.fallahi@gmail.com" , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On 25/10/15 09:25, amin.fallahi@gmail.com wrote: > Hi everybody > I need to understand when these pending and mask bits are set and > cleared. It seems pending bits are set by evtchn_set_pending method in > event_channel.c but I don't understand where pending bit is cleared by > the guest and where mask bit is set and reset? The mask and pending bits are in memory shared with the guest and the guest (mostly) modifies these bits by writing directly to the shared memory. You need to look at the guest kernel (e.g., drivers/xen/events/events_base.c in Linux). David