From mboxrd@z Thu Jan 1 00:00:00 1970 From: Razvan Cojocaru Subject: Re: [RFC PATCH V2 1/8] xen/mem_event: Cleanup of mem_event structures Date: Thu, 22 Jan 2015 14:53:16 +0200 Message-ID: <54C0F2BC.2090107@bitdefender.com> References: <1421594281-27658-1-git-send-email-tamas.lengyel@zentific.com> <1421594281-27658-2-git-send-email-tamas.lengyel@zentific.com> <20150122124322.GA97314@deinos.phlegethon.org> 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: Tamas K Lengyel , Tim Deegan Cc: "Tian, Kevin" , wei.liu2@citrix.com, Ian Campbell , Stefano Stabellini , Ian Jackson , "Dong, Eddie" , "xen-devel@lists.xen.org" , Jan Beulich , 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 01/22/2015 02:50 PM, Tamas K Lengyel wrote: > On Thu, Jan 22, 2015 at 1:43 PM, Tim Deegan wrote: >> Hi, >> >> At 16:17 +0100 on 18 Jan (1421594274), Tamas K Lengyel wrote: >>> From: Razvan Cojocaru >>> >>> The public mem_event structures used to communicate with helper applications via >>> shared rings have been used in different settings. However, the variable names >>> within this structure have not reflected this fact, resulting in the reuse of >>> variables to mean different things under different scenarios. >>> >>> This patch remedies the issue by clearly defining the structure members based on >>> the actual context within which the structure is used. >>> >>> Signed-off-by: Razvan Cojocaru >>> Signed-off-by: Tamas K Lengyel >> >> This looks like a nice improvement. If everyone who commented about >> making ABI changes is happy with it, I am too. >> >> It would be nice if you could add some comments to the new struct >> definitions saying what the various fields mean (e.g. when the event >> triggers and what the fields will contain). > > Ack, will do! > >> >> One nit in the patch itself: >> >>> @@ -592,13 +592,12 @@ int main(int argc, char *argv[]) >>> } >>> >>> >>> - rsp.gfn = req.gfn; >>> - rsp.p2mt = req.p2mt; >>> + rsp.mem_access_event.gfn = req.mem_access_event.gfn; >> >> You're dropping a p2mt update here. Is that an oversight? >> With the obvious equivalent update inserted, > > No, it is not. That field is only used by mem_sharing and mem_paging, > not by mem_access. Ah, I stand corrected. I've checked agains my original patch, but the series also separates the mentioned areas. Sorry for the noise, Razvan