Trap to KVM on guest user->kernel transition

How can one force a VM exit and trap to KVM when the guest performs a guest user mode to guest kernel mode transition (and vice versa). Thank you!