vbox6: enable RDRAND hardware instruction support

Issue #5314
This commit is contained in:
Josef Söntgen 2024-10-08 15:11:19 +02:00 committed by Christian Helmuth
parent be70fddbb8
commit 4084df6360
3 changed files with 22 additions and 1 deletions

View File

@ -1 +1 @@
a58000c856a6a838d0da22df8c144a60211b4572
969705fd5573cd8f85c9023e06a61bf2cb3cc37c

View File

@ -0,0 +1,20 @@
--- a/src/virtualbox6/src/VBox/VMM/VMMR3/CPUMR3CpuId.cpp
+++ b/src/virtualbox6/src/VBox/VMM/VMMR3/CPUMR3CpuId.cpp
@@ -4358,7 +4358,7 @@
* the default is to only do this for VMs with nested paging and AMD-V or
* unrestricted guest mode.
*/
- rc = cpumR3CpuIdReadIsaExtCfg(pVM, pIsaExts, "RDRAND", &pConfig->enmRdRand, fNestedPagingAndFullGuestExec);
+ rc = cpumR3CpuIdReadIsaExtCfg(pVM, pIsaExts, "RDRAND", &pConfig->enmRdRand, fEnforceHWusage);
AssertLogRelRCReturn(rc, rc);
/** @cfgm{/CPUM/IsaExts/RDSEED, isaextcfg, depends}
@@ -4366,7 +4366,7 @@
* the default is to only do this for VMs with nested paging and AMD-V or
* unrestricted guest mode.
*/
- rc = cpumR3CpuIdReadIsaExtCfg(pVM, pIsaExts, "RDSEED", &pConfig->enmRdSeed, fNestedPagingAndFullGuestExec);
+ rc = cpumR3CpuIdReadIsaExtCfg(pVM, pIsaExts, "RDSEED", &pConfig->enmRdSeed, fEnforceHWusage);
AssertLogRelRCReturn(rc, rc);
/** @cfgm{/CPUM/IsaExts/CLFLUSHOPT, isaextcfg, depends}

View File

@ -15,3 +15,4 @@ sup_ioctl_query_func_size.patch
disk_geometry.patch
stack_size.patch
avx.patch
rdrand.patch