diff options
author | Andrei Vagin <avagin@google.com> | 2020-12-15 16:49:39 -0800 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-12-15 16:51:35 -0800 |
commit | 97406b20a1551ddc8d1884d11d81b958b829afae (patch) | |
tree | 061e93d8472adb1235df88dec2ce2c70ba2de6bf /pkg/cpuid/cpuid.go | |
parent | 50c658a9f6df85998a08f51f680302366c2df240 (diff) |
Internal change.
PiperOrigin-RevId: 347720083
Diffstat (limited to 'pkg/cpuid/cpuid.go')
-rw-r--r-- | pkg/cpuid/cpuid.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/pkg/cpuid/cpuid.go b/pkg/cpuid/cpuid.go index f7f9dbf86..69eeb7528 100644 --- a/pkg/cpuid/cpuid.go +++ b/pkg/cpuid/cpuid.go @@ -36,3 +36,14 @@ package cpuid // On arm64, features are numbered according to the ELF HWCAP definition. // arch/arm64/include/uapi/asm/hwcap.h type Feature int + +// ErrIncompatible is returned by FeatureSet.HostCompatible if fs is not a +// subset of the host feature set. +type ErrIncompatible struct { + message string +} + +// Error implements error. +func (e ErrIncompatible) Error() string { + return e.message +} |