Re: [PATCH kvm-unit-tests v2] access: check SMEP on prefetch pte path

2011-07-04 Thread Xiao Guangrong
at.com; kvm@vger.kernel.org >> Subject: Re: [PATCH kvm-unit-tests v2] access: check SMEP on prefetch pte >> path >> >> On 06/29/2011 06:24 PM, Yang, Wei wrote: >> >>> + >>> + /* >>> +* Here we write th

RE: [PATCH kvm-unit-tests v2] access: check SMEP on prefetch pte path

2011-07-04 Thread Yang, Wei Y
> -Original Message- > From: kvm-ow...@vger.kernel.org [mailto:kvm-ow...@vger.kernel.org] On > Behalf Of Xiao Guangrong > Sent: Friday, July 01, 2011 4:06 PM > To: Yang, Wei Y > Cc: a...@redhat.com; kvm@vger.kernel.org > Subject: Re: [PATCH kvm-unit-tests v2]

Re: [PATCH kvm-unit-tests v2] access: check SMEP on prefetch pte path

2011-07-01 Thread Xiao Guangrong
On 06/29/2011 06:24 PM, Yang, Wei wrote: > + > + /* > + * Here we write the ro user page when > + * cr0.wp=0, then we execute it and SMEP > + * fault should happen. > + */ > + err_prepare_notwp = ac_test_do_access(&at1); > + if (!err_prepare_notwp) { > +

[PATCH kvm-unit-tests v2] access: check SMEP on prefetch pte path

2011-06-29 Thread Yang, Wei
This patch adds SMEP to all test cases and checks SMEP on prefetch pte path when cr0.wp=0. changes since v1: Add SMEP to all test cases and verify it before setting cr4 Signed-off-by: Yang, Wei Signed-off-by: Shan, Haitao Signed-off-by: Li, Xin --- x86/access.c | 108 +