xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Yu Zhang <yu.c.zhang@linux.intel.com>
To: Andrew Cooper <andrew.cooper3@citrix.com>,
	Wei Liu <wei.liu2@citrix.com>,
	Xen-devel <xen-devel@lists.xenproject.org>
Cc: qian.ouyang@intel.com, Jan Beulich <JBeulich@suse.com>
Subject: Re: [DO NOT APPLY PATCH XTF 0/2] UMIP test case
Date: Thu, 2 Mar 2017 20:30:05 +0800	[thread overview]
Message-ID: <58B8104D.9000908@linux.intel.com> (raw)
In-Reply-To: <7e6b3725-f1e7-5d17-452f-97134fd625bc@citrix.com>

Wah. Thank you,  Andrew & Wei. :-)

On 3/2/2017 5:05 PM, Andrew Cooper wrote:
> On 02/03/2017 08:42, Wei Liu wrote:
>> I wrote this long time ago before UMIP was merged.
>>
>> Yu, since you asked, I might as well post it for your reference on how to
>> do it with XTF.
>>
>> This series is not yet tested in any way.
> Unfortunately, you execute all of the sensitive instructions in kernel
> mode, where they wouldn't fault even with UMIP active.
>
> For full testing of a feature like this, the test should include a check
> that the ability to modify CR4.UMIP depends strictly on the visibility
> of the feature, that uses in the kernel still continue to work, even
> when active, and that behaviour returns back to normal after the feature
> has been deactivated.

So, before cr4 is written, a cpuid is needed first in the test code, right?

But besides the emulation of cpuid and cr4, my understanding is that 
hypervisor need to inject a GP fault if an instruction causes a VM exit, 
right? This should be different than the normal GP fault inside a VM, 
and how do we test this code path?

Our QA and I may need to have a study of the XTF, and may probably seek 
for your help in the future. :-)
Anyway, thanks a lot!

Yu

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

  parent reply	other threads:[~2017-03-02 12:30 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-02  2:33 About UMIP unit test Yu Zhang
2017-03-02  8:06 ` Andrew Cooper
2017-03-02  8:42 ` [DO NOT APPLY PATCH XTF 0/2] UMIP test case Wei Liu
2017-03-02  8:42   ` [DO NOT APPLY PATCH XTF 1/2] x86: add UMIP feature bit Wei Liu
2017-03-02  8:42   ` [DO NOT APPLY PATCH XTF 2/2] Add UMIP test Wei Liu
2017-03-02  9:05   ` [DO NOT APPLY PATCH XTF 0/2] UMIP test case Andrew Cooper
2017-03-02 10:53     ` Wei Liu
2017-03-02 12:30     ` Yu Zhang [this message]
2017-03-02 12:39       ` 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=58B8104D.9000908@linux.intel.com \
    --to=yu.c.zhang@linux.intel.com \
    --cc=JBeulich@suse.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=qian.ouyang@intel.com \
    --cc=wei.liu2@citrix.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 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).