xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: keir@xen.org, xen-devel@lists.xen.org
Subject: Re: [PATCH] x86/xsave: Remove xfeat_mask checking from validate_xstate()
Date: Mon, 2 Jun 2014 13:02:25 +0100	[thread overview]
Message-ID: <538C67D1.9030105@citrix.com> (raw)
In-Reply-To: <538C71810200007800016C44@mail.emea.novell.com>

On 02/06/14 11:43, Jan Beulich wrote:
>>>> On 02.06.14 at 12:07, <andrew.cooper3@citrix.com> wrote:
>> On 02/06/14 07:43, Jan Beulich wrote:
>>>>>> On 30.05.14 at 13:57, <andrew.cooper3@citrix.com> wrote:
>>>> What further sanity checking would be wanted/needed?
>>>>
>>>> The sending Xen must have gotten this correct else it wouldn't have an 
>>>> xsave area to send in the first place.  If the receiving the Xen found 
>>>> parts it didn't like, the local validity checks would fail.
>>>>
>>>> As far as I can see, the only case this might do something unexpected is 
>>>> if the individual xfeature_mask got changed on transit, at which point 
>>>> the receiving Xen would fail the xsave load, despite the xsave area 
>>>> being valid for the current cpu.
>>> Whether the loading would fail really depends on what exactly became
>>> corrupted.
>> The current behaviour is that the load would fail, as validate_xstate()
>> would fail.
> Oh, then we meant different things with "load" (I was assuming you
> meant the actual xrstor).

Ah no.  This is strictly only for loading the vcpu xsave state using
XEN_DOMCTL_setvcpuextstate or XEN_DOMCTL_sethvmcontext

There is no change for guest xsave interaction with Xen.


>
>>> But in the end the question is - are you intending to no longer
>>> communicate this bit of information in the v2 migration stream?
>> Ideally I would like to cease communicating this in the v2 stream.
> Okay, on that basis I'm willing to take the patch; any chance you
> could add a note to this effect to the commit message?
>
> Jan
>

I will reword it.

~Andrew

      reply	other threads:[~2014-06-02 12:02 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-30  8:39 [PATCH] x86/xsave: Remove xfeat_mask checking from validate_xstate() Andrew Cooper
2014-05-30 11:39 ` Jan Beulich
2014-05-30 11:57   ` Andrew Cooper
2014-06-02  6:43     ` Jan Beulich
2014-06-02 10:07       ` Andrew Cooper
2014-06-02 10:43         ` Jan Beulich
2014-06-02 12:02           ` Andrew Cooper [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=538C67D1.9030105@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).