No longer need SPRR and probe it runtime

This commit is contained in:
2024-12-07 23:33:34 +08:00
parent b7199261b5
commit 958ed09153
4 changed files with 74 additions and 24 deletions

7
qemu/configure vendored
View File

@@ -2155,11 +2155,17 @@ int main() {
// In Apple Hypervisor, this value is not accessbile and
// pthread_jit_write_protect_np essentially is a no-op
/*
if (!commpage_sprr) {
return 1;
} else {
return 0;
}
*/
// Now it is accessible but always zero, let's probe it runtime.
return 0;
}
EOF
if ! compile_prog ""; then
@@ -2171,7 +2177,6 @@ EOF
have_sprr='yes'
else
have_sprr='no'
have_pthread_jit_protect='no'
fi
fi
fi