On 07/05/2011 09:24 AM, Yang, Wei Y wrote: > > >> -----Original Message----- >> From: kvm-owner@xxxxxxxxxxxxxxx [mailto:kvm-owner@xxxxxxxxxxxxxxx] On >> Behalf Of Xiao Guangrong >> Sent: Friday, July 01, 2011 4:06 PM >> To: Yang, Wei Y >> Cc: avi@xxxxxxxxxx; kvm@xxxxxxxxxxxxxxx >> 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 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) { >>> + printf("%s: SMEP prepare fail\n", __FUNCTION__); >>> + goto clean_up; >>> + } >>> + >>> + at1.flags[AC_ACCESS_WRITE] = 0; >>> + at1.flags[AC_ACCESS_FETCH] = 1; >>> + ac_set_expected_status(&at1); >>> + err_smep_notwp = ac_test_do_access(&at1); >>> + >> >> The address is accessed in the fist test, it is really "prefetch"-ed >> in the second test? > > What do you mean? Could you please elaborate it? The title and the test case is "prefetch pte", is it really "prefetch" in your test case? :-) -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html