A data processing system supports a virtualization enabled (VE) operating
mode. An operating system (OS) is launched during a boot process.
However, a trap agent is launched before the OS is launched. The trap
agent may intercept an attempt to transition the data processing system
to virtual machine (VM) operating mode. In response to intercepting the
attempt to transition the data processing system to VM operating mode,
the trap agent may automatically determine whether the program that
requested the transition is an authorized program. If the program is not
authorized, the trap agent may prevent the program from transitioning the
data processing system to VM operating mode. In one embodiment, the trap
agent is launched before the data processing system selects a boot
device. In another embodiment, the trap agent is launched before
executing any code from any third-party option ROMs. Other embodiments
are described and claimed.