All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Razvan Cojocaru <rcojocaru@bitdefender.com>,
	xen-devel@lists.xenproject.org
Cc: george.dunlap@eu.citrix.com, tamas@tklengyel.com, keir@xen.org,
	jbeulich@suse.com
Subject: Re: [PATCH V2] xen/x86: Clean up vm_event-related code in asm-x86/domain.h
Date: Tue, 25 Aug 2015 22:47:56 +0100	[thread overview]
Message-ID: <55DCE28C.2070009@citrix.com> (raw)
In-Reply-To: <1439619810-27333-1-git-send-email-rcojocaru@bitdefender.com>

On 15/08/15 07:23, Razvan Cojocaru wrote:
> As suggested by Jan Beulich, moved struct monitor_write_data from
> struct arch_domain to struct arch_vcpu, as well as moving all
> vm_event-related data from asm-x86/domain.h to struct vm_event,
> and allocating it dynamically only when needed.
>
> Signed-off-by: Razvan Cojocaru <rcojocaru@bitdefender.com>

Apologies - this fell off my radar while travelling.

Looks fine, and also looks like a candidate for 4.6 as well?

Just one comment.

> diff --git a/xen/include/asm-x86/vm_event.h b/xen/include/asm-x86/vm_event.h
> index 0ae5952..17ba4eb 100644
> --- a/xen/include/asm-x86/vm_event.h
> +++ b/xen/include/asm-x86/vm_event.h
> @@ -22,6 +22,18 @@
>  #include <xen/sched.h>
>  #include <xen/vm_event.h>
>  
> +/*
> + * Should we emulate the next matching instruction on VCPU resume
> + * after a vm_event?
> + */
> +struct vm_event {

This should be named arch_vm_event as it is an architecture specific
header file, and lives in arch_vcpu.

Otherwise, Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>

> +    uint32_t emulate_flags;
> +    unsigned long gpa;
> +    unsigned long eip;
> +    struct vm_event_emul_read_data emul_read_data;
> +    struct monitor_write_data write_data;
> +};
> +
>  int vm_event_init_domain(struct domain *d);
>  
>  void vm_event_cleanup_domain(struct domain *d);

  parent reply	other threads:[~2015-08-25 21:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-15  6:23 [PATCH V2] xen/x86: Clean up vm_event-related code in asm-x86/domain.h Razvan Cojocaru
2015-08-25 21:38 ` Tamas K Lengyel
2015-08-25 21:47 ` Andrew Cooper [this message]
2015-08-26  7:10   ` Jan Beulich

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=55DCE28C.2070009@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=george.dunlap@eu.citrix.com \
    --cc=jbeulich@suse.com \
    --cc=keir@xen.org \
    --cc=rcojocaru@bitdefender.com \
    --cc=tamas@tklengyel.com \
    --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.