Documentation Archive Developer
Search

Hypervisor Changes for Swift

Hypervisor

Removed hv_vmx_capability_t.value
Removed hv_x86_reg_t.value
Added hv_vmx_capability_t.init(rawValue: UInt32)
Added hv_vmx_capability_t.rawValue
Added hv_x86_reg_t.init(rawValue: UInt32)
Added hv_x86_reg_t.rawValue
DeclarationProtocols
From
struct hv_vmx_capability_t {
    init(_ value: UInt32)
    var value: UInt32
}
--
To
struct hv_vmx_capability_t : RawRepresentable {
    init(_ rawValue: UInt32)
    init(rawValue rawValue: UInt32)
    var rawValue: UInt32
}
RawRepresentable

DeclarationProtocols
From
struct hv_x86_reg_t {
    init(_ value: UInt32)
    var value: UInt32
}
--
To
struct hv_x86_reg_t : RawRepresentable {
    init(_ rawValue: UInt32)
    init(rawValue rawValue: UInt32)
    var rawValue: UInt32
}
RawRepresentable