diff options
author | gVisor bot <gvisor-bot@google.com> | 2021-10-25 18:45:30 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-10-25 18:45:30 +0000 |
commit | dcc0a8f024f1a7bbe43c84c499d8f72f779e1428 (patch) | |
tree | 75cb879409dbaf4402bdeca624314bf2d75301e3 | |
parent | eff88efe81e2a2dcc0ee541e90755d4d21374315 (diff) | |
parent | 7c267106d1d7d162d6204e6b0402d3063b1bf468 (diff) |
Merge release-20211019.0-32-g7c267106d (automated)
-rw-r--r-- | pkg/cpuid/cpuid.go | 2 | ||||
-rw-r--r-- | pkg/cpuid/cpuid_arm64.go | 1 | ||||
-rw-r--r-- | pkg/cpuid/cpuid_x86.go | 1 |
3 files changed, 3 insertions, 1 deletions
diff --git a/pkg/cpuid/cpuid.go b/pkg/cpuid/cpuid.go index 4d5e062a8..e1ea9b32c 100644 --- a/pkg/cpuid/cpuid.go +++ b/pkg/cpuid/cpuid.go @@ -43,7 +43,7 @@ func HostFeatureSet() *FeatureSet { return hostFeatureSet } -var hostFeatureSet = getHostFeatureSet() +var hostFeatureSet *FeatureSet // ErrIncompatible is returned by FeatureSet.HostCompatible if fs is not a // subset of the host feature set. diff --git a/pkg/cpuid/cpuid_arm64.go b/pkg/cpuid/cpuid_arm64.go index 04645aed5..446d3db83 100644 --- a/pkg/cpuid/cpuid_arm64.go +++ b/pkg/cpuid/cpuid_arm64.go @@ -491,4 +491,5 @@ func init() { initCPUInfo() initHwCap() initFeaturesFromString() + hostFeatureSet = getHostFeatureSet() } diff --git a/pkg/cpuid/cpuid_x86.go b/pkg/cpuid/cpuid_x86.go index a92d32d74..8cbcc9f61 100644 --- a/pkg/cpuid/cpuid_x86.go +++ b/pkg/cpuid/cpuid_x86.go @@ -1109,4 +1109,5 @@ func initFeaturesFromString() { func init() { initCPUFreq() initFeaturesFromString() + hostFeatureSet = getHostFeatureSet() } |