/* Checks if cpl <= required_cpl; if true, return true. Otherwise queue a #GP and return false.  */
bool kvm_require_cpl(struct kvm_vcpu *vcpu, int required_cpl)
/* Checks if cpl <= required_cpl; if true, return true. Otherwise queue a #GP and return false.  */
bool kvm_require_cpl(struct kvm_vcpu *vcpu, int required_cpl)
{
	if (kvm_x86_ops->get_cpl(vcpu) <= required_cpl)
		return true;
	kvm_queue_exception_e(vcpu, GP_VECTOR, 0);
	return false;
}