greegthegeek
Contributor
Contributor

CPU/MMU configuration

Jump to solution

Author : Kristina Bliznashka

URL : http:////docs.vmware.com/en/VMware-vSphere/6.0/com.vmware.vsphere.hostclient.doc/GUID-36E772F7-3512-...

Topic Name : Change CPU/MMU Virtualization Settings in the vSphere Client

Publication Name : vSphere Administration with the vSphere Client

Product/Version : VMware vSphere/6.0

Question :

Hi there, Would you please be more specific on relation between CPU/MMU configuration and the Hardware virtualization: Expose Hardware assisted Virtualization to the guest OS button activation? Thanks!

0 Kudos
1 Solution

Accepted Solutions
greegthegeek
Contributor
Contributor

Hi Amin,

Thnaks for your time.

In understood MMU hardware assisted will avoid the use of guest shadow tables, and roughly, the result is to reduce latency to access to page tables.

But what about the CPU? Why can we activate CPU hardware virtualization here ("CPU/MMU virtualization: Hardware CPU, software MMU") and also on the other parameters ("Hardware virtualization: Expose hardware assisted virutalization to the guest os")?

What are the differences between the two CPU features? Because when i red documentation for "CPU/MMU virtualization: Hardware CPU, software MMU" and "Hardware virtualization: Expose hardware assisted virutalization to the guest os" they are talking together about using VT-X.

So my understanding is the following:

- Do your VM are 64 bits are need to make nested virtualization? Check Expose hardware assisted virutalization to the guest os

     => Guest optimization

- Do you have VT-X/AMD-V instructions? To optimize VMWare VMM mechanisms, select CPU Hardware.

     => Host optimization

- Do you have Intel EPT/AMD NPT instructions? To optimize VMWare VMM mechanisms, select MMU Hardware.

     => Host optimization

AM I correct & do you agree?

Thanks A LOT for your time Smiley Wink

Greg

---------------------------------------------------------------------------------------------------------

Was it helpful? Let us know by completing this short survey here.

View solution in original post

0 Kudos
7 Replies
NathanosBlightc
Commander
Commander

As respect to the physical hardware architecture of Processor/Memory (CPU/MMU) management, also for a VM we should configure how to assign physical resources of the host and grant access to hardware by the VMs. In this section you must set processor and page file access requests by the VM management method. Do you need to set it to choose and handle automatically by server platform or set exactly by the CPU virtualization technologies (AMD-V / Intel VT-x) and MMU (page file allocation) technologies (AMD RVI / Intel EPT)

For more details please see following links:

https://www.vmware.com/pdf/Perf_ESX_Intel-EPT-eval.pdf

Difference between AMD-v/Intel VT-x and AMD-Vi/Intel VT-d

Please mark my comment as the Correct Answer if this solution resolved your problem
0 Kudos
greegthegeek
Contributor
Contributor

Hello Amin,

Yes, I understood the purpose of the policy, but what is the effect to choose one of the third policy without checking "Hardware virtualization: Expose Hardware assisted Virtualization to the guest OS" boxes?

0 Kudos
NathanosBlightc
Commander
Commander

Ass VMware Mention:

software MMU has a higher overhead memory requirement than hardware MMU. So, to support software MMU, maximum overhead supported for virtual machine limit in the VMkernel needs to be increased...

Also to take advantage of all features that virtual hardware version 13 provides, use the default hardware MMU setting.

However all of the CPU-related virtualization features are mainly used for processing enhancement and ability to create and manage virtual resources from physical computing assets includes memory access and moving data across I/O devices. CPU/MMU how to work is about to provide by hardware technologies or software level.

Please mark my comment as the Correct Answer if this solution resolved your problem
0 Kudos
greegthegeek
Contributor
Contributor

Ho!

I think I got it Smiley Happy

Correct me if i'm wrong:

  1. Hardware virtualization: Expose Hardware assisted Virtualization for the guest OS
  2. CPU/MMU Virtualization: Expose Hardware assisted Virtualization for the HOST.

Am I finally right?

0 Kudos
NathanosBlightc
Commander
Commander

Let me explain more accurately: If there is no hardware-assisted MMU then VM guest OS will keep guest virtual memory to guest physical memory address mappings into guest page tables, while ESXi maintains “shadow page tables” that directly map guest virtual memory to host physical memory addresses.    

Please mark my comment as the Correct Answer if this solution resolved your problem
0 Kudos
greegthegeek
Contributor
Contributor

Hi Amin,

Thnaks for your time.

In understood MMU hardware assisted will avoid the use of guest shadow tables, and roughly, the result is to reduce latency to access to page tables.

But what about the CPU? Why can we activate CPU hardware virtualization here ("CPU/MMU virtualization: Hardware CPU, software MMU") and also on the other parameters ("Hardware virtualization: Expose hardware assisted virutalization to the guest os")?

What are the differences between the two CPU features? Because when i red documentation for "CPU/MMU virtualization: Hardware CPU, software MMU" and "Hardware virtualization: Expose hardware assisted virutalization to the guest os" they are talking together about using VT-X.

So my understanding is the following:

- Do your VM are 64 bits are need to make nested virtualization? Check Expose hardware assisted virutalization to the guest os

     => Guest optimization

- Do you have VT-X/AMD-V instructions? To optimize VMWare VMM mechanisms, select CPU Hardware.

     => Host optimization

- Do you have Intel EPT/AMD NPT instructions? To optimize VMWare VMM mechanisms, select MMU Hardware.

     => Host optimization

AM I correct & do you agree?

Thanks A LOT for your time Smiley Wink

Greg

---------------------------------------------------------------------------------------------------------

Was it helpful? Let us know by completing this short survey here.

View solution in original post

0 Kudos
NathanosBlightc
Commander
Commander

Yes I'm agree with you, absolutely it's a great conclusion. thanks for yourself buddy Smiley Wink

Please mark my comment as the Correct Answer if this solution resolved your problem
0 Kudos