What I said above is stupid, I will check for the presence of the VM flag and if it's present I will transfer control to the VM86 monitor, no need for the crazy manual task switching.