Hypervisor macOS 10.15.6 to 11.0 API Differences

hv_arch_vmx.h
hv_error.h
Added HV_DENIED
hv_types.h
hv_vmx.h
Declaration
Fromhv_return_t hv_vmx_vcpu_read_vmcs(hv_vcpuid_t vcpu, uint32_t field, uint64_t *value)
Tohv_return_t hv_vmx_vcpu_read_vmcs(hv_vcpuid_t vcpu, uint32_t field, uint64_t *value)

Declaration
Fromhv_return_t hv_vmx_vcpu_read_shadow_vmcs(hv_vcpuid_t vcpu, uint32_t field, uint64_t *value)
Tohv_return_t hv_vmx_vcpu_read_shadow_vmcs(hv_vcpuid_t vcpu, uint32_t field, uint64_t *value)

Declaration
Fromhv_return_t hv_vmx_read_capability(hv_vmx_capability_t field, uint64_t *value)
Tohv_return_t hv_vmx_read_capability(hv_vmx_capability_t field, uint64_t *value)

hv.h
Declaration
Fromhv_return_t hv_capability(hv_capability_t capability, uint64_t *value)
Tohv_return_t hv_capability(hv_capability_t capability, uint64_t *value)

Declaration
Fromhv_return_t hv_vm_space_create(hv_vm_space_t *asid)
Tohv_return_t hv_vm_space_create(hv_vm_space_t *asid)

Modified hv_vm_map()
Declaration
Fromhv_return_t hv_vm_map(hv_uvaddr_t uva, hv_gpaddr_t gpa, size_t size, hv_memory_flags_t flags)
Tohv_return_t hv_vm_map(hv_uvaddr_t uva, hv_gpaddr_t gpa, size_t size, hv_memory_flags_t flags)

Declaration
Fromhv_return_t hv_vm_map_space(hv_vm_space_t asid, hv_uvaddr_t uva, hv_gpaddr_t gpa, size_t size, hv_memory_flags_t flags)
Tohv_return_t hv_vm_map_space(hv_vm_space_t asid, hv_uvaddr_t uva, hv_gpaddr_t gpa, size_t size, hv_memory_flags_t flags)

Declaration
Fromhv_return_t hv_vcpu_create(hv_vcpuid_t *vcpu, hv_vcpu_options_t flags)
Tohv_return_t hv_vcpu_create(hv_vcpuid_t *vcpu, hv_vcpu_options_t flags)

Declaration
Fromhv_return_t hv_vcpu_read_register(hv_vcpuid_t vcpu, hv_x86_reg_t reg, uint64_t *value)
Tohv_return_t hv_vcpu_read_register(hv_vcpuid_t vcpu, hv_x86_reg_t reg, uint64_t *value)

Declaration
Fromhv_return_t hv_vcpu_read_fpstate(hv_vcpuid_t vcpu, void *buffer, size_t size)
Tohv_return_t hv_vcpu_read_fpstate(hv_vcpuid_t vcpu, void *buffer, size_t size)

Declaration
Fromhv_return_t hv_vcpu_write_fpstate(hv_vcpuid_t vcpu, void *buffer, size_t size)
Tohv_return_t hv_vcpu_write_fpstate(hv_vcpuid_t vcpu, void *buffer, size_t size)

Declaration
Fromhv_return_t hv_vcpu_read_msr(hv_vcpuid_t vcpu, uint32_t msr, uint64_t *value)
Tohv_return_t hv_vcpu_read_msr(hv_vcpuid_t vcpu, uint32_t msr, uint64_t *value)

Declaration
Fromhv_return_t hv_vcpu_interrupt(hv_vcpuid_t *vcpus, unsigned int vcpu_count)
Tohv_return_t hv_vcpu_interrupt(hv_vcpuid_t *vcpus, unsigned int vcpu_count)

Declaration
Fromhv_return_t hv_vcpu_get_exec_time(hv_vcpuid_t vcpu, uint64_t *time)
Tohv_return_t hv_vcpu_get_exec_time(hv_vcpuid_t vcpu, uint64_t *time)