On 06/25/2011 10:44 AM, Yang, Wei Y wrote:
+void set_cr4_smep(int smep)
+{
+unsigned long cr4 = read_cr4();
+
+cr4 = ~CR4_SMEP_MASK;
+if (smep)
+ cr4 |= CR4_SMEP_MASK;
+write_cr4(cr4);
+}
+
It can work if the box does not support SMEP?
It will report unhandled
On 06/24/2011 03:16 PM, Yang, Wei wrote:
+void set_cr4_smep(int smep)
+{
+unsigned long cr4 = read_cr4();
+
+cr4 = ~CR4_SMEP_MASK;
+if (smep)
+ cr4 |= CR4_SMEP_MASK;
+write_cr4(cr4);
+}
+
It can work if the box does not support SMEP?
void set_efer_nx(int nx)
{
+void set_cr4_smep(int smep)
+{
+unsigned long cr4 = read_cr4();
+
+cr4 = ~CR4_SMEP_MASK;
+if (smep)
+ cr4 |= CR4_SMEP_MASK;
+write_cr4(cr4);
+}
+
It can work if the box does not support SMEP?
It will report unhandled exception 13 in access.out which
we