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] access: check SMEP on prefetch pte

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

2011-07-04 Thread Xiao Guangrong
-tests v2] access: check SMEP on prefetch pte path 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

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) { +