Changeset 105695 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Aug 15, 2024 4:24:06 PM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/NEMR3Native-darwin-armv8.cpp
r105693 r105695 134 134 #endif 135 135 136 typedef hv_return_t FN_HV_VM_CONFIG_GET_EL2_SUPPORTED(bool *el2_supported); 137 typedef hv_return_t FN_HV_VM_CONFIG_GET_EL2_ENABLED(hv_vm_config_t config, bool *el2_enabled); 138 typedef hv_return_t FN_HV_VM_CONFIG_SET_EL2_ENABLED(hv_vm_config_t config, bool el2_enabled); 136 typedef hv_vm_config_t FN_HV_VM_CONFIG_CREATE(void); 137 typedef hv_return_t FN_HV_VM_CONFIG_GET_EL2_SUPPORTED(bool *el2_supported); 138 typedef hv_return_t FN_HV_VM_CONFIG_GET_EL2_ENABLED(hv_vm_config_t config, bool *el2_enabled); 139 typedef hv_return_t FN_HV_VM_CONFIG_SET_EL2_ENABLED(hv_vm_config_t config, bool el2_enabled); 139 140 140 141 typedef struct hv_gic_config_s *hv_gic_config_t; … … 188 189 /** @name Optional APIs imported from Hypervisor.framework. 189 190 * @{ */ 190 static FN_HV_VM_CONFIG_GET_EL2_SUPPORTED *g_pfnHvVmConfigGetEl2Supported = NULL; /* Since 15.0 */ 191 static FN_HV_VM_CONFIG_GET_EL2_ENABLED *g_pfnHvVmConfigGetEl2Enabled = NULL; /* Since 15.0 */ 192 static FN_HV_VM_CONFIG_SET_EL2_ENABLED *g_pfnHvVmConfigSetEl2Enabled = NULL; /* Since 15.0 */ 191 static FN_HV_VM_CONFIG_CREATE *g_pfnHvVmConfigCreate = NULL; /* Since 13.0 */ 192 static FN_HV_VM_CONFIG_GET_EL2_SUPPORTED *g_pfnHvVmConfigGetEl2Supported = NULL; /* Since 15.0 */ 193 static FN_HV_VM_CONFIG_GET_EL2_ENABLED *g_pfnHvVmConfigGetEl2Enabled = NULL; /* Since 15.0 */ 194 static FN_HV_VM_CONFIG_SET_EL2_ENABLED *g_pfnHvVmConfigSetEl2Enabled = NULL; /* Since 15.0 */ 193 195 194 196 static FN_HV_GIC_CREATE *g_pfnHvGicCreate = NULL; /* Since 15.0 */ … … 240 242 { 241 243 #define NEM_DARWIN_IMPORT(a_Pfn, a_Name) { (void **)&(a_Pfn), #a_Name } 244 NEM_DARWIN_IMPORT(g_pfnHvVmConfigCreate, hv_vm_config_create), 242 245 NEM_DARWIN_IMPORT(g_pfnHvVmConfigGetEl2Supported, hv_vm_config_get_el2_supported), 243 246 NEM_DARWIN_IMPORT(g_pfnHvVmConfigGetEl2Enabled, hv_vm_config_get_el2_enabled), … … 287 290 */ 288 291 #ifndef IN_SLICKEDIT 292 # define hv_vm_config_create g_pfnHvVmConfigCreate 289 293 # define hv_vm_config_get_el2_supported g_pfnHvVmConfigGetEl2Supported 290 294 # define hv_vm_config_get_el2_enabled g_pfnHvVmConfigGetEl2Enabled … … 1247 1251 */ 1248 1252 PCFGMNODE pCfgCpum = CFGMR3GetChild(CFGMR3GetRoot(pVM), "CPUM/"); 1249 hv_vm_config_t hVmCfg = hv_vm_config_create(); 1250 1251 if (hv_vm_config_get_el2_supported) 1252 { 1253 hv_vm_config_t hVmCfg = NULL; 1254 1255 if ( hv_vm_config_create 1256 && hv_vm_config_get_el2_supported) 1257 { 1258 hVmCfg = hv_vm_config_create(); 1259 1253 1260 bool fHvEl2Supported = false; 1254 1261 hv_return_t hrc = hv_vm_config_get_el2_supported(&fHvEl2Supported);
Note:
See TracChangeset
for help on using the changeset viewer.