From: Xiao Guangrong <guangrong.xiao@linux.intel.com>
To: Paolo Bonzini <pbonzini@redhat.com>, kvm@vger.kernel.org
Subject: Re: [PATCH kvm-unit-tests] x86: access: check for PKU even for non-writable pages
Date: Wed, 6 Apr 2016 23:11:18 +0800 [thread overview]
Message-ID: <57052716.7070305@linux.intel.com> (raw)
In-Reply-To: <1459930768-26035-1-git-send-email-pbonzini@redhat.com>
On 04/06/2016 04:19 PM, Paolo Bonzini wrote:
> Xiao Guangrong ran kvm-unit-tests on an actual machine with PKU and
> found that it fails:
>
> test pte.p pte.user pde.p pde.user pde.a pde.pse pkru.wd pkey=1 user write efer.nx cr4.pke: FAIL: error code 27 expected 7
> Dump mapping: address: 0x123400000000
> ------L4: 2ebe007
> ------L3: 2ebf007
> ------L2: 8000000020000a5
>
> So PFEC.PKEY is set even if the ordinary check failed (which it did
> because pde.w is zero). Adjust ac_test_permissions to match behavior
> of silicon.
It works.
Reviewed-by: Xiao Guangrong <guangrong.xiao@linux.intel.com>
prev parent reply other threads:[~2016-04-06 15:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-06 8:19 [PATCH kvm-unit-tests] x86: access: check for PKU even for non-writable pages Paolo Bonzini
2016-04-06 15:11 ` Xiao Guangrong [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=57052716.7070305@linux.intel.com \
--to=guangrong.xiao@linux.intel.com \
--cc=kvm@vger.kernel.org \
--cc=pbonzini@redhat.com \
/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.