diff --git a/Library/Homebrew/extend/os/mac/hardware/cpu.rb b/Library/Homebrew/extend/os/mac/hardware/cpu.rb index cd8adb0ebb..72df60a253 100644 --- a/Library/Homebrew/extend/os/mac/hardware/cpu.rb +++ b/Library/Homebrew/extend/os/mac/hardware/cpu.rb @@ -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 diff --git a/Library/Homebrew/hardware.rb b/Library/Homebrew/hardware.rb index 182d8e0077..1e49ea61bf 100644 --- a/Library/Homebrew/hardware.rb +++ b/Library/Homebrew/hardware.rb @@ -156,6 +156,10 @@ module Hardware [1].pack("I") == [1].pack("N") end + def virtualized? + false + end + def features [] end