All of lore.kernel.org
 help / color / mirror / Atom feed
From: Razvan Cojocaru <rcojocaru@bitdefender.com>
To: xen-devel@lists.xen.org
Cc: kevin.tian@intel.com, wei.liu2@citrix.com,
	ian.campbell@citrix.com, stefano.stabellini@eu.citrix.com,
	jun.nakajima@intel.com, ian.jackson@eu.citrix.com, tim@xen.org,
	eddie.dong@intel.com, jbeulich@suse.com,
	andrew.cooper3@citrix.com, keir@xen.org
Subject: Re: [PATCH V3] xen/vm_event: Clean up control-register-write vm_events
Date: Tue, 19 May 2015 11:35:57 +0300	[thread overview]
Message-ID: <555AF5ED.2050303@bitdefender.com> (raw)
In-Reply-To: <1432024319-3452-1-git-send-email-rcojocaru@bitdefender.com>

On 05/19/2015 11:31 AM, Razvan Cojocaru wrote:
> As suggested by Andrew Cooper, this patch attempts to remove
> some redundancy and allow for an easier time when adding vm_events
> for new control registers in the future, by having a single
> VM_EVENT_REASON_WRITE_CTRLREG vm_event type, meant to serve CR0,
> CR3, CR4 and (newly introduced) XCR0. The actual control register
> will be deduced by the new .index field in vm_event_write_ctrlreg
> (renamed from vm_event_mov_to_cr). The CR0, CR3 and CR4 events are
> now pre-write vm_events. The patch has also modified the
> xen-access.c test - it is now able to log CR3 events.
> 
> Signed-off-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
> 
> ---
> Changes since V2:
>  - The CR0, CR3 and CR4 events are now pre-write vm_events.
>  - Struct monitor's .write_ctrlreg_enabled, .write_ctrlreg_sync
>    and .write_ctrlreg_onchangeonly are now 4 bits wide instead
>    of 8 (previously wider than necessary to reserve them for
>    future events).
>  - Consistent use of "curr" in hvm_handle_xsetbv().

I've intentionally lost "Reviewed-by: Tim Deegan <tim@xen.org>" as I
thought moving the CR0, CR3 and CR3 events to be pre-write is a serious
enough change to warrant a new review. Hopefully it wasn't the wrong
thing to do.


Thanks,
Razvan

  reply	other threads:[~2015-05-19  8:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-19  8:31 [PATCH V3] xen/vm_event: Clean up control-register-write vm_events Razvan Cojocaru
2015-05-19  8:35 ` Razvan Cojocaru [this message]
2015-05-20 14:53 ` Jan Beulich
2015-05-20 15:24   ` Razvan Cojocaru
2015-05-20 15:48     ` Jan Beulich
2015-05-20 16:05       ` Razvan Cojocaru
2015-05-20 16:33         ` Jan Beulich
2015-05-20 15:52     ` 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=555AF5ED.2050303@bitdefender.com \
    --to=rcojocaru@bitdefender.com \
    --cc=andrew.cooper3@citrix.com \
    --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=stefano.stabellini@eu.citrix.com \
    --cc=tim@xen.org \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xen.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.