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 V9 for-4.5 4/4] xen: Handle resumed instruction based on previous mem_event reply
Date: Wed, 17 Sep 2014 13:54:43 +0300 [thread overview]
Message-ID: <54196873.1000908@bitdefender.com> (raw)
In-Reply-To: <541983320200007800035A1A@mail.emea.novell.com>
On 09/17/14 13:48, Jan Beulich wrote:
>>>> On 17.09.14 at 10:29, <rcojocaru@bitdefender.com> wrote:
>> --- a/xen/include/public/mem_event.h
>> +++ b/xen/include/public/mem_event.h
>> @@ -31,11 +31,19 @@
>> #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)
>> +/*
>> + * Emulate the fault-causing instruction (if set in the event response flags).
>> + * This will allow the guest to continue execution without lifting the page
>> + * access restrictions.
>> + */
>> +#define MEM_EVENT_FLAG_EMULATE (1 << 5)
>> +/* Same as MEM_EVENT_FLAG_EMULATE, but with write operations disabled. */
>
> As we've gone through this incrementally suppressing more and more
> operations, I think you should be very explicit here and say "...
> with write operations or operations potentially having side effects
> (like memory mapped or port I/O) disabled".
Of course, thanks for the comment! Will do.
Thanks,
Razvan Cojocaru
prev parent reply other threads:[~2014-09-17 10:54 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-17 8:29 [PATCH V9 for-4.5 0/4] Basic guest memory introspection support Razvan Cojocaru
2014-09-17 8:29 ` [PATCH V9 for-4.5 1/4] xen: Emulate with no writes Razvan Cojocaru
2014-09-17 8:29 ` [PATCH V9 for-4.5 2/4] xen: Optimize introspection access to guest state Razvan Cojocaru
2014-09-17 8:29 ` [PATCH V9 for-4.5 3/4] xen, libxc: Force-enable relevant MSR events Razvan Cojocaru
2014-09-17 8:29 ` [PATCH V9 for-4.5 4/4] xen: Handle resumed instruction based on previous mem_event reply Razvan Cojocaru
2014-09-17 10:48 ` Jan Beulich
2014-09-17 10:54 ` Razvan Cojocaru [this message]
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=54196873.1000908@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.