An attempt to run such instructions in user-mode will generate an exception. VMWare uses IN instruction in a special port (VX) as an interface between VMM. So, such operation will not generate an exception if executed in user-mode inside a VMWare virtual machine.

Additional Resources

Subscribe to our Newsletter and don't miss important updates