VMware Cloud Community
mark0303
Contributor
Contributor

how to enable CPUID 0x80000001h, edx:pdpe1gb to guest?

Dear all,

does anyone know how to enable CPUID 0x80000001h(edx:"pdpe1gb") into guest OS?

i'm using ubuntu 14.04 as guest, and wish to use "HugePagesSize=1G" w/ DPDK for test.

i tried to modify the CPUID mask on ESXI5.5, but it didn't work.

can anyone kindly point me how to make it works?

Thanks

mark

0 Kudos
7 Replies
jrmunday
Commander
Commander

Hi Mark,

This isn't something that I've done myself, but this blog post indicates that this feature is only introduced with hardware version 9;

vSphere VM version impact on available CPU instructions - vReality

Perhaps the first step would be to confirm that both the physical CPU supports this and that your guest VM is HW version 9 or above.

Cheers,

Jon

vExpert 2014 - 2022 | VCP6-DCV | http://www.jonmunday.net | @JonMunday77
0 Kudos
mark0303
Contributor
Contributor

Hi Jon,

i saw this post before, and i'd checked CPU is supported(i install ubuntu 14.04 as host OS, with cat /proc/cpuinfo, i can see PDPE1GB flag) & i use hardware version10 in lab.

it's still not work for me.

i tried to add "monitor_control.enable_fullcpuid = TRUE" in .vmx, but not work ether.....

i also install ubuntu guest in fusion6, it works fine with PDPE1GB flag, any differences?

any suggestions?

or any setting that i can export full cupid to guest OS?

thanks

mark

0 Kudos
admin
Immortal
Immortal

Try the following advanced configuration option:

featMask.vm.cpuid.pdpe1gb = "Val:1"

0 Kudos
iiToby
Enthusiast
Enthusiast

Hi Mark0303,

This might be a simple case of Powering off the VM and then powering it back on. CPU features are only picked up when a VM world object is created, you may have rebooted which wouldn't have caused a new world object to be created.

Cheers

@iiToby

0 Kudos
mark0303
Contributor
Contributor

Hi jmattsonjmattson,

it works, i can see this flag in VM.

thanks for great help~

mark

0 Kudos
hanweisu
Contributor
Contributor

Hi mark0303

Can you explain more details what did you change in the ESXi?

I am getting same issue here, thank you

0 Kudos
tnonas
Contributor
Contributor

Hi. The suggestion to use:

featMask.vm.cpuid.pdpe1gb = "Val:1"

worked for me.

0 Kudos