freebsd-skq/sys/amd64/vmm/intel
Peter Grehan 608f97c359 Add support for running as a nested hypervisor under VMWare Fusion, on
systems with VT-x/EPT (e.g. Sandybridge Macbooks). This will most
likely work on VMWare Workstation8/Player4 as well. See the VMWare app
note at:

  http://communities.vmware.com/docs/DOC-8970

Fusion doesn't propagate the PAT MSR auto save-restore entry/exit
control bits. Deal with this by noting that fact and setting up the
PAT MSR to essentially be a no-op - it is init'd to power-on default,
and a software shadow copy maintained.

Since it is treated as a no-op, o/s settings are essentially ignored.
This may not give correct results, but since the hypervisor is running
nested, a number of bets are already off.

On a quad-core/HT-enabled 'MacBook8,2', nested VMs with 1/2/4 vCPUs were
fired up. The more nested vCPUs the worse the performance, unless the VMs
were started up in multiplexed mode where things worked perfectly up to
the limit of 8 vCPUs.

Reviewed by:	neel
2011-12-24 19:39:02 +00:00
..
ept.c
ept.h
vmcs.c Add a 'show vmcs' DDB command to dump state about the current CPU's 2011-06-02 13:49:19 +00:00
vmcs.h Add a 'show vmcs' DDB command to dump state about the current CPU's 2011-06-02 13:49:19 +00:00
vmx_controls.h
vmx_cpufunc.h
vmx_genassym.c Fix a long standing bug in VMXCTX_GUEST_RESTORE(). 2011-05-20 03:23:09 +00:00
vmx_msr.c
vmx_msr.h
vmx_support.S Fix a long standing bug in VMXCTX_GUEST_RESTORE(). 2011-05-20 03:23:09 +00:00
vmx.c Add support for running as a nested hypervisor under VMWare Fusion, on 2011-12-24 19:39:02 +00:00
vmx.h Fix a long standing bug in VMXCTX_GUEST_RESTORE(). 2011-05-20 03:23:09 +00:00
vtd.c