#include <Hypervisor/hv_vcpu_config.h> also included by
<Hypervisor/Hypervisor.h>hv_vcpu_config.h
functionhv_vcpu_config_create
OS_EXPORT API_AVAILABLE(macos(11.0)) OS_OBJECT_RETURNS_RETAINED OS_WARN_RESULT hv_vcpu_config_t hv_vcpu_config_create( void )
@abstract Creates a vcpu configuration object.
@result A new vcpu configuration object. This should be released with os_release when no longer used.
enumhv_feature_reg_t
@abstract ARM feature register.
| HV_FEATURE_REG_ID_AA64DFR0_EL1 | 0 | |
| HV_FEATURE_REG_ID_AA64DFR1_EL1 | 1 | |
| HV_FEATURE_REG_ID_AA64ISAR0_EL1 | 2 | |
| HV_FEATURE_REG_ID_AA64ISAR1_EL1 | 3 | |
| HV_FEATURE_REG_ID_AA64MMFR0_EL1 | 4 | |
| HV_FEATURE_REG_ID_AA64MMFR1_EL1 | 5 | |
| HV_FEATURE_REG_ID_AA64MMFR2_EL1 | 6 | |
| HV_FEATURE_REG_ID_AA64PFR0_EL1 | 7 | |
| HV_FEATURE_REG_ID_AA64PFR1_EL1 | 8 | |
| HV_FEATURE_REG_CTR_EL0 | 9 | |
| HV_FEATURE_REG_CLIDR_EL1 | 10 | |
| HV_FEATURE_REG_DCZID_EL0 | 11 | |
| HV_FEATURE_REG_ID_AA64SMFR0_EL1 | 12 | |
| HV_FEATURE_REG_ID_AA64ZFR0_EL1 | 13 |
typedefhv_feature_reg_t
typedef enum hv_feature_reg_t hv_feature_reg_t;
functionhv_vcpu_config_get_feature_reg
OS_EXPORT API_AVAILABLE(macos(11.0)) hv_return_t hv_vcpu_config_get_feature_reg( hv_vcpu_config_t config, hv_feature_reg_t feature_reg, uint64_t *value )
@abstract For a vcpu configuration, return the given feature register value.
@param config Configuration.
@param feature_reg The feature register.
@param value Pointer to the feature register value.
@result 0 on success or error code.
functionhv_vcpu_config_get_ccsidr_el1_sys_reg_values
OS_EXPORT API_AVAILABLE(macos(11.0)) hv_return_t hv_vcpu_config_get_ccsidr_el1_sys_reg_values( hv_vcpu_config_t config, hv_cache_type_t cache_type, uint64_t values[_Nonnull 8] )
@abstract For a vcpu configuration, return the given CCSIDR_EL1 values for a given cache type
@param config Configuration.
@param cache_type The cache type.
@param values Pointer to the CCSIDR_EL1 register values.
@result 0 on success or error code.