From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tamas K Lengyel Subject: Re: [RFC PATCH V3 12/12] xen/vm_event: Check for VM_EVENT_FLAG_DUMMY only in Debug builds Date: Fri, 6 Feb 2015 14:22:00 +0100 Message-ID: References: <1422567998-29995-1-git-send-email-tamas.lengyel@zentific.com> <1422567998-29995-13-git-send-email-tamas.lengyel@zentific.com> <54D1F940020000780005CB4A@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <54D1F940020000780005CB4A@mail.emea.novell.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: Jan Beulich Cc: Tim Deegan , "Tian, Kevin" , "wei.liu2@citrix.com" , Ian Campbell , Razvan Cojocaru , Stefano Stabellini , "Dong, Eddie" , Ian Jackson , "xen-devel@lists.xen.org" , Steven Maresca , Andres Lagar-Cavilla , Jun Nakajima , "rshriram@cs.ubc.ca" , Keir Fraser , Daniel De Graaf , "yanghy@cn.fujitsu.com" List-Id: xen-devel@lists.xenproject.org On Wed, Feb 4, 2015 at 10:49 AM, Jan Beulich wrote: >>>> On 29.01.15 at 22:46, wrote: >> The flag is only used for debugging purposes, thus it should be only checked >> for in debug builds of Xen. > > So this should be where the respective conditional I just complained > about should get added. > > >> --- a/xen/common/mem_access.c >> +++ b/xen/common/mem_access.c >> @@ -30,6 +30,37 @@ >> #include >> #include >> >> +void mem_access_resume(struct domain *d) >> +{ > > Why is this being re-added, and how do things build with the other > (inline) mem_access_resume() added in an earlier patch? > > Jan Yes, this patch got a bit mixed up with the previous one. To answer your question nevertheless, mem_access_resume is redefined to be only doing mem_access related work. Previously it was responsible to pulling all the responses off the ring, even if these were not mem_access related. Now the monitor is pulling the responses off the ring, and issues mem_access_resume if the response is to a mem_access request. Tamas