I would like to spoof as much information about my host (Windows 10 x64) on my guest (Windows 10 x64) as possible in VirtualBox. I'm already spoofing the CPU brand string using this. However, applying the same strategy to spoofing CPU frequency (cpuid with 0x16 in EAX) does not seem to do the trick.
I've written a small test program in MSVC++ to print the frequency cpuid reports:
int freq[3];
__asm {
mov eax, 0x16
cpuid
mov freq[0], eax
mov freq[1], ebx
mov freq[2], ecx
}
for (int i : { 0, 1, 2 }) {
std::cout << freq[i] << std::endl;
}
This works as expected and gets spoofed correctly, however, the guest still shows the correct information pretty much everywhere you look, suggesting there is an alternative source for it. Is it possible to identify and potentially spoof this source?
cpuidsetalso seems to be doing exactly what I'm doing, just via a different (more modern?) command parameter. – Salvage Jul 15 '22 at 00:11