Merge pull request #16500 from p-linnane/add-virtualized-check
hardware/cpu: add `virtualized?` check
This commit is contained in:
commit
0ef5c28833
@ -89,6 +89,10 @@ module Hardware
|
||||
sysctl_bool("hw.optional.arm64")
|
||||
end
|
||||
|
||||
def virtualized?
|
||||
sysctl_bool("kern.hv_vmm_present")
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def arm_family
|
||||
|
||||
@ -156,6 +156,10 @@ module Hardware
|
||||
[1].pack("I") == [1].pack("N")
|
||||
end
|
||||
|
||||
def virtualized?
|
||||
false
|
||||
end
|
||||
|
||||
def features
|
||||
[]
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user