From: Razvan Cojocaru <rcojocaru@bitdefender.com>
To: Tim Deegan <tim@xen.org>, Tamas K Lengyel <tamas.lengyel@zentific.com>
Cc: kevin.tian@intel.com, wei.liu2@citrix.com,
ian.campbell@citrix.com, stefano.stabellini@eu.citrix.com,
ian.jackson@eu.citrix.com, eddie.dong@intel.com,
xen-devel@lists.xen.org, jbeulich@suse.com,
andres@lagarcavilla.org, jun.nakajima@intel.com,
rshriram@cs.ubc.ca, keir@xen.org, dgdegra@tycho.nsa.gov,
yanghy@cn.fujitsu.com
Subject: Re: [RFC PATCH V2 1/8] xen/mem_event: Cleanup of mem_event structures
Date: Thu, 22 Jan 2015 14:50:51 +0200 [thread overview]
Message-ID: <54C0F22B.9060209@bitdefender.com> (raw)
In-Reply-To: <20150122124322.GA97314@deinos.phlegethon.org>
On 01/22/2015 02:43 PM, Tim Deegan wrote:
> Hi,
>
> At 16:17 +0100 on 18 Jan (1421594274), Tamas K Lengyel wrote:
>> From: Razvan Cojocaru <rcojocaru@bitdefender.com>
>>
>> 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 <rcojocaru@bitdefender.com>
>> Signed-off-by: Tamas K Lengyel <tamas.lengyel@zentific.com>
>
> 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).
>
> 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?
Yes, that's an oversight (unless Tamas knows something about this I don't).
Thanks,
Razvan
next prev parent reply other threads:[~2015-01-22 12:50 UTC|newest]
Thread overview: 53+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-18 15:17 [RFC PATCH V2 0/8] xen: Clean-up of mem_event subsystem Tamas K Lengyel
2015-01-18 15:17 ` [RFC PATCH V2 1/8] xen/mem_event: Cleanup of mem_event structures Tamas K Lengyel
2015-01-22 12:43 ` Tim Deegan
2015-01-22 12:50 ` Razvan Cojocaru [this message]
2015-01-22 12:50 ` Tamas K Lengyel
2015-01-22 12:53 ` Razvan Cojocaru
2015-01-22 13:11 ` Tim Deegan
2015-01-22 15:00 ` Jan Beulich
2015-01-22 15:34 ` Tamas K Lengyel
2015-01-22 16:00 ` Jan Beulich
2015-01-22 16:23 ` Tamas K Lengyel
2015-01-22 16:34 ` Jan Beulich
[not found] ` <CAErYnsj8B1Fbo=JD3hLz-8kjtt-FoWTrSkGnbkvVf=iR64MDBQ@mail.gmail.com>
2015-01-23 9:00 ` Jan Beulich
2015-01-23 9:18 ` Tamas K Lengyel
2015-01-29 11:54 ` Tamas K Lengyel
2015-01-29 12:02 ` Jan Beulich
2015-01-29 12:09 ` Tamas K Lengyel
2015-01-29 12:15 ` Tamas K Lengyel
2015-01-29 12:51 ` Jan Beulich
2015-01-29 13:03 ` Tamas K Lengyel
2015-01-18 15:17 ` [RFC PATCH V2 2/8] xen/mem_event: Rename the mem_event ring from 'access' to 'monitor' Tamas K Lengyel
2015-01-22 12:53 ` Tim Deegan
2015-01-22 14:12 ` Tamas K Lengyel
2015-01-22 15:02 ` Jan Beulich
2015-01-22 15:42 ` Tamas K Lengyel
2015-01-18 15:17 ` [RFC PATCH V2 3/8] xen/mem_paging: Convert mem_event_op to mem_paging_op Tamas K Lengyel
2015-01-22 13:03 ` Tim Deegan
2015-01-22 15:09 ` Jan Beulich
2015-01-22 15:41 ` Tamas K Lengyel
2015-01-18 15:17 ` [RFC PATCH V2 4/8] x86/hvm: rename hvm_memory_event_* functions to hvm_event_* Tamas K Lengyel
2015-01-22 13:05 ` Tim Deegan
2015-01-22 15:56 ` Andrew Cooper
2015-01-22 16:34 ` Tamas K Lengyel
2015-01-18 15:17 ` [RFC PATCH V2 5/8] xen/mem_event: Rename mem_event to vm_event Tamas K Lengyel
2015-01-22 14:52 ` Tim Deegan
2015-01-22 15:02 ` Tamas K Lengyel
2015-01-18 15:17 ` [RFC PATCH V2 6/8] xen/vm_event: Decouple vm_event and mem_access Tamas K Lengyel
2015-01-22 14:56 ` Tim Deegan
2015-01-22 15:35 ` Tamas K Lengyel
2015-01-18 15:18 ` [RFC PATCH V2 7/8] tools/tests: Clean-up tools/tests/xen-access Tamas K Lengyel
2015-01-18 15:18 ` [RFC PATCH V2 8/8] x86/hvm: factor out vm_event related functions into separate file Tamas K Lengyel
2015-01-22 15:00 ` Tim Deegan
2015-01-22 15:36 ` Tamas K Lengyel
2015-01-22 16:25 ` Jan Beulich
2015-01-22 16:42 ` Tamas K Lengyel
2015-01-22 16:50 ` Tim Deegan
2015-01-23 8:56 ` Razvan Cojocaru
2015-01-23 9:03 ` Jan Beulich
2015-01-23 9:21 ` Tamas K Lengyel
2015-01-22 16:32 ` Andrew Cooper
2015-01-22 16:41 ` Tamas K Lengyel
2015-01-19 13:03 ` [RFC PATCH V2 0/8] xen: Clean-up of mem_event subsystem Andrew Cooper
2015-01-21 10:59 ` Tamas K Lengyel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54C0F22B.9060209@bitdefender.com \
--to=rcojocaru@bitdefender.com \
--cc=andres@lagarcavilla.org \
--cc=dgdegra@tycho.nsa.gov \
--cc=eddie.dong@intel.com \
--cc=ian.campbell@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=jbeulich@suse.com \
--cc=jun.nakajima@intel.com \
--cc=keir@xen.org \
--cc=kevin.tian@intel.com \
--cc=rshriram@cs.ubc.ca \
--cc=stefano.stabellini@eu.citrix.com \
--cc=tamas.lengyel@zentific.com \
--cc=tim@xen.org \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xen.org \
--cc=yanghy@cn.fujitsu.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.