All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Andrew Cooper <andrew.cooper3@citrix.com>
Cc: Keir Fraser <keir@xen.org>, Jan Beulich <JBeulich@suse.com>,
	Xen-devel <xen-devel@lists.xen.org>
Subject: Re: [PATCH v2] xen/x86: Identify which vcpu's CR4 is being badly modified
Date: Wed, 26 Mar 2014 14:22:07 +0000	[thread overview]
Message-ID: <5332E28F.9040101@citrix.com> (raw)
In-Reply-To: <1395842453-10305-1-git-send-email-andrew.cooper3@citrix.com>

Please ignore this - I appear to have gained the new patch message with
the old patch.  I shall try to correct.

~Andrew

On 26/03/14 14:00, Andrew Cooper wrote:
> When the toolstack is setting vcpu state on behalf of a migrating guest, the
> domain/vcpu reference from gdprintk() identifies the toolstack, not the
> affected domain.
>
> After this change, the error looks more like:
>
>   (XEN) d0 attempted to change d6v0's CR4 flags 00002660 -> 01876000
>
> Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
> CC: Keir Fraser <keir@xen.org>
> CC: Jan Beulich <JBeulich@suse.com>
>
> ---
> v2: gdprintk -> printk, drop current's vcpu reference.
> ---
>  xen/arch/x86/domain.c |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/xen/arch/x86/domain.c b/xen/arch/x86/domain.c
> index b48f2dc..59e2729 100644
> --- a/xen/arch/x86/domain.c
> +++ b/xen/arch/x86/domain.c
> @@ -652,8 +652,8 @@ unsigned long pv_guest_cr4_fixup(const struct vcpu *v, unsigned long guest_cr4)
>  
>      if ( (guest_cr4 & hv_cr4_mask) != (hv_cr4 & hv_cr4_mask) )
>          gdprintk(XENLOG_WARNING,
> -                 "Attempt to change CR4 flags %08lx -> %08lx\n",
> -                 hv_cr4, guest_cr4);
> +                 "Attempt to change %pv's CR4 flags %08lx -> %08lx\n",
> +                 v, hv_cr4, guest_cr4);
>  
>      return (hv_cr4 & hv_cr4_mask) | (guest_cr4 & ~hv_cr4_mask);
>  }

  reply	other threads:[~2014-03-26 14:22 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-25 19:40 [PATCH] xen/x86: Identify which vcpu's CR4 is being badly modified Andrew Cooper
2014-03-26 13:17 ` Jan Beulich
2014-03-26 13:30   ` Andrew Cooper
2014-03-26 13:38     ` Jan Beulich
2014-03-26 14:00       ` [PATCH v2] " Andrew Cooper
2014-03-26 14:22         ` Andrew Cooper [this message]
2014-03-26 14:25         ` Jan Beulich
2014-03-26 14:24       ` [PATCH v3] " Andrew Cooper

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=5332E28F.9040101@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=JBeulich@suse.com \
    --cc=keir@xen.org \
    --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.