All of lore.kernel.org
 help / color / mirror / Atom feed
From: Razvan Cojocaru <rcojocaru@bitdefender.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: kevin.tian@intel.com, keir@xen.org, ian.campbell@citrix.com,
	stefano.stabellini@eu.citrix.com, andrew.cooper3@citrix.com,
	eddie.dong@intel.com, tim@xen.org, jun.nakajima@intel.com,
	xen-devel@lists.xenproject.org, ian.jackson@eu.citrix.com
Subject: Re: [PATCH V8 for-4.5 4/4] xen: Handle resumed instruction based on previous mem_event reply
Date: Mon, 15 Sep 2014 14:37:52 +0300	[thread overview]
Message-ID: <5416CF90.4090500@bitdefender.com> (raw)
In-Reply-To: <5416DC120200007800034EA8@mail.emea.novell.com>

On 09/15/2014 01:31 PM, Jan Beulich wrote:
>>>> On 15.09.14 at 08:24, <rcojocaru@bitdefender.com> wrote:
>> In a scenario where a page fault that triggered a mem_event occured,
>> p2m_mem_access_check() will now be able to either 1) emulate the
>> current instruction, or 2) emulate it, but don't allow it to perform
>> any writes.
> 
> Purely from a technical perspective this patch (and hence now this
> series) looks fine to me, with one nit:

That's great news! Thanks for the review!

>> --- a/xen/include/public/mem_event.h
>> +++ b/xen/include/public/mem_event.h
>> @@ -31,11 +31,13 @@
>>  #include "io/ring.h"
>>  
>>  /* Memory event flags */
>> -#define MEM_EVENT_FLAG_VCPU_PAUSED  (1 << 0)
>> -#define MEM_EVENT_FLAG_DROP_PAGE    (1 << 1)
>> -#define MEM_EVENT_FLAG_EVICT_FAIL   (1 << 2)
>> -#define MEM_EVENT_FLAG_FOREIGN      (1 << 3)
>> -#define MEM_EVENT_FLAG_DUMMY        (1 << 4)
>> +#define MEM_EVENT_FLAG_VCPU_PAUSED     (1 << 0)
>> +#define MEM_EVENT_FLAG_DROP_PAGE       (1 << 1)
>> +#define MEM_EVENT_FLAG_EVICT_FAIL      (1 << 2)
>> +#define MEM_EVENT_FLAG_FOREIGN         (1 << 3)
>> +#define MEM_EVENT_FLAG_DUMMY           (1 << 4)
>> +#define MEM_EVENT_FLAG_EMULATE         (1 << 5)
>> +#define MEM_EVENT_FLAG_EMULATE_NOWRITE (1 << 6)
> 
> While I think that most pre-existing types here are sufficiently
> self-explaining, I don't think the new type is, and hence it
> warrants a comment. Of course the final say on this will be with
> Tim (being the maintainer).

Of course, I'll prepare a comment while waiting for Tim's reply.

> I also think that with the series having got reduced, there's no
> longer a process problem, but I'd nevertheless like to point out two
> things for you going forward (in the hope that this won't make you
> drop your Xen efforts): With the larger pieces of code additions
> you have pending on top of this series, we would really like to see
> at least PoC in-tree users of any such addition, perhaps even going
> as far as integrating them with osstest. This is (among other
> aspects like helping understanding the purpose) so that the code
> you add (and that's - at least initially - used only by you) won't
> become stale sooner or later.
> 
> The second aspect is that to help acceptance of the addition of
> changes that are large and/or very special purpose it would be
> beneficial if we would see previous smaller scale contributions by
> the exact same people (e.g. bug fixes, code reviews). This is in
> the spirit of, as is being said in the governance document, the
> project being run as a meritocracy, not a democracy.
> 
> And of course - as with any new functionality being added - it
> always helps if from the very beginning you make clear why
> existing functionality doesn't fit your needs.

Noted, thank you for your help!


Thanks,
Razvan Cojocaru

  reply	other threads:[~2014-09-15 11:37 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-15  6:24 [PATCH V8 for-4.5 0/4] Basic guest memory introspection support Razvan Cojocaru
2014-09-15  6:24 ` [PATCH V8 for-4.5 1/4] xen: Emulate with no writes Razvan Cojocaru
2014-09-15  6:24 ` [PATCH V8 for-4.5 2/4] xen: Optimize introspection access to guest state Razvan Cojocaru
2014-09-15  6:24 ` [PATCH V8 for-4.5 3/4] xen, libxc: Force-enable relevant MSR events Razvan Cojocaru
2014-09-15  6:24 ` [PATCH V8 for-4.5 4/4] xen: Handle resumed instruction based on previous mem_event reply Razvan Cojocaru
2014-09-15 10:31   ` Jan Beulich
2014-09-15 11:37     ` Razvan Cojocaru [this message]
2014-09-15 12:23     ` Konrad Rzeszutek Wilk
2014-09-15 12:51       ` Razvan Cojocaru

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=5416CF90.4090500@bitdefender.com \
    --to=rcojocaru@bitdefender.com \
    --cc=JBeulich@suse.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=eddie.dong@intel.com \
    --cc=ian.campbell@citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=jun.nakajima@intel.com \
    --cc=keir@xen.org \
    --cc=kevin.tian@intel.com \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=tim@xen.org \
    --cc=xen-devel@lists.xenproject.org \
    /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.