hv_vcpu_get_trap_debug_reg_accesses(_:_:)
Gets whether debug-register accesses exit the guest.
Declaration
func hv_vcpu_get_trap_debug_reg_accesses(_ vcpu: hv_vcpu_t, _ value: UnsafeMutablePointer<Bool>) -> hv_return_tParameters
- vcpu:
The instance of the vCPU.
- value:
Indicates whether debug-register accesses in the guest trap to the host on output.
Return Value
HV_SUCCESS if the operation was successful, otherwise an error code specified in hv_return_t.
Discussion
This includes the registers DBGBCR<n>_EL1, DBGBVR<n>_EL1, DBGWCR<n>_EL1, DBGWVR<n>_EL1 and MDSCR_EL1.
The equivalent system register is MDCR_EL2.TDA.