My professor's notes on system virtualization refer a lot to the term "trap", but don't seem to explicitly define it. I can't seem to find any definition on Google either, other than a small article on "trap-and-emulate". From context I sort of understand that trapping is 'catching' any operations that the virtual OS performs which it no longer has the privilege for (as it is now operating in restricted mode), and forwarding them to the hypervisor to be handled.
However could someone who has a more solid understanding of this give me a better definition?
(also I apologize for poor tagging, as there doesn't seem to be a relevant tag for virtual systems)