From: Ian Jackson Subject: Re: FIFO-based event channel ABI design (draft B) Date: Tue, 19 Feb 2013 18:39:01 +0000 Message-ID: <20771.50885.702521.722255@mariner.uk.xensource.com> References: <511E46FD.3010605@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <511E46FD.3010605@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: David Vrabel Cc: "xen-devel@lists.xensource.com" , Wei Liu List-Id: xen-devel@lists.xenproject.org David Vrabel writes ("[Xen-devel] FIFO-based event channel ABI design (draft B)"): > Event State Machine > ------------------- > > Event channels are bound to a port in the domain using the existing > ABI. > > A bound event may be in one of three main states. > > State Abbrev. PML Bits Meaning > ----- ------- -------- ------- > BOUND B 000 The event is bound but not pending. > PENDING P 100 The event has been raised and not yet > acknowledged. > LINKED L 101 The event is on an event queue. > > Additionally, events may be UNMASKED or MASKED (M). > > ![\label{events_sm}Event State Machine](event-sm.pdf) This high-level state machine description doesn't capture the transient states which exist when Xen and/or the guest need to update multiple words at once. In order to check that this protocol is correct, I think you should draw a state diagram which includes these transient states, and verify that the edges all operate as intended. Ian.