about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorYang Liu <liuyang22@iscas.ac.cn>2025-06-12 16:07:28 +0800
committerGitHub <noreply@github.com>2025-06-12 10:07:28 +0200
commit3f757df0288d122cce8fedd885a989d429566a44 (patch)
tree2fda2cbbffb9a3ddf35a882dbe4bb40e7c3a0d94 /src
parente0ef3284022679da09c4e1163ad8d12647a2a367 (diff)
downloadbox64-3f757df0288d122cce8fedd885a989d429566a44.tar.gz
box64-3f757df0288d122cce8fedd885a989d429566a44.zip
[CPUID] Do not warn on the Hypervisor interface query (#2732)
Diffstat (limited to 'src')
-rw-r--r--src/os/my_cpuid_common.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/os/my_cpuid_common.c b/src/os/my_cpuid_common.c
index 74111e1d..3df5aa03 100644
--- a/src/os/my_cpuid_common.c
+++ b/src/os/my_cpuid_common.c
@@ -323,7 +323,13 @@ void my_cpuid(x64emu_t* emu, uint32_t tmp32u)
                 R_EDX = 0;
             }
             break;
-
+        case 0x40000000 ... 0x400000FF:
+            // the Hypervisor interface, yeah we don't do this, see also the 31bit of ECX in leaf 0x1.
+            R_EAX = 0;
+            R_EBX = 0;
+            R_ECX = 0;
+            R_EDX = 0;
+            break;
         case 0x80000000:        // max extended
             if(BOX64ENV(cputype)) {
                 R_EAX = 0x8000001a;