summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorTing-Yu Wang <anivia@google.com>2020-01-31 09:55:51 -0800
committergVisor bot <gvisor-bot@google.com>2020-01-31 10:07:45 -0800
commit7c118f7e192d403e716807c0f75f3f6d077a31ba (patch)
treeda48d232605a7c0f3da9da564db8ac787d28fe90
parent14959250feb71df74dea13f3cb15dcbe8ce6b3f3 (diff)
KVM platform does not support 32bit.
Fixes: //test/syscalls:32bit_test_runsc_kvm Ref change: 5d569408ef94c753b7aae9392b5e4ebf7e5ea50d PiperOrigin-RevId: 292563926
-rw-r--r--test/util/platform_util.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/util/platform_util.cc b/test/util/platform_util.cc
index 2724e63f3..c9200d381 100644
--- a/test/util/platform_util.cc
+++ b/test/util/platform_util.cc
@@ -20,10 +20,9 @@ namespace gvisor {
namespace testing {
PlatformSupport PlatformSupport32Bit() {
- if (GvisorPlatform() == Platform::kPtrace) {
+ if (GvisorPlatform() == Platform::kPtrace ||
+ GvisorPlatform() == Platform::kKVM) {
return PlatformSupport::NotSupported;
- } else if (GvisorPlatform() == Platform::kKVM) {
- return PlatformSupport::Segfault;
} else {
return PlatformSupport::Allowed;
}