From: "Paul Samon" Subject: Re: Re: A wrong assert in get_ioreq()? Date: Thu, 5 Jul 2007 09:08:44 +0800 Message-ID: <34cec8c90707041808x2fab534epbd46527a173ec336@mail.gmail.com> References: <34cec8c90707040412s4aa16fcdlbdd252e42a05f76e@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2146823137==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============2146823137== Content-Type: multipart/alternative; boundary="----=_Part_117758_5953906.1183597724086" ------=_Part_117758_5953906.1183597724086 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Yes, the lock is necessary (for hvm_vcpu_initialise()), but my question is: in the ASSERT of get_ioreq(), we shouldn't check if we have got the lock, and we don't have the lock in it (if I'm wrong, please point out where we get the lock), that is, in get_ioreq(), I think spin_is_locked(&d-> arch.hvm_domain.ioreq.lock) always returns false. -- Paul S. On 7/4/07, Keir Fraser wrote: > > The lock is taken in, for example, hvm_vcpu_initialise(), which calles > get_ioreq(v) with v!=current. So the assertion is correct as-is. > > -- Keir > ------=_Part_117758_5953906.1183597724086 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Yes, the lock is necessary (for hvm_vcpu_initialise()), but my question is: in the ASSERT of get_ioreq(), we shouldn't check if we have got the lock, and we don't have the lock in it (if I'm wrong, please point out where we get the lock), that is, in get_ioreq(), I think  spin_is_locked(&d-> arch.hvm_domain.ioreq.lock) always returns false.
 
-- Paul S.

 
On 7/4/07, Keir Fraser <keir@xensource.com> wrote:
The lock is taken in, for example, hvm_vcpu_initialise(), which calles get_ioreq(v) with v!=current. So the assertion is correct as-is.

 -- Keir
------=_Part_117758_5953906.1183597724086-- --===============2146823137== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============2146823137==--