{
cpumask_clear_cpu(cpu, ept->invalidate);
if ( nestedhvm_enabled(curr->domain) )
- __invept(INVEPT_ALL_CONTEXT, 0, 0);
+ __invept(INVEPT_ALL_CONTEXT, 0);
else
- __invept(INVEPT_SINGLE_CONTEXT, ept->eptp, 0);
+ __invept(INVEPT_SINGLE_CONTEXT, ept->eptp);
}
}
}
case INVEPT_ALL_CONTEXT:
p2m_flush_nestedp2m(current->domain);
- __invept(INVEPT_ALL_CONTEXT, 0, 0);
+ __invept(INVEPT_ALL_CONTEXT, 0);
break;
default:
vmfail_invalid(regs);
return ret;
}
-static always_inline void __invept(unsigned long type, u64 eptp, u64 gpa)
+static always_inline void __invept(unsigned long type, uint64_t eptp)
{
struct {
- u64 eptp, gpa;
- } operand = {eptp, gpa};
+ uint64_t eptp, rsvd;
+ } operand = { eptp };
/*
* If single context invalidation is not supported, we escalate to
static inline void ept_sync_all(void)
{
- __invept(INVEPT_ALL_CONTEXT, 0, 0);
+ __invept(INVEPT_ALL_CONTEXT, 0);
}
void ept_sync_domain(struct p2m_domain *p2m);