summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/kernel/kernel.go
diff options
context:
space:
mode:
authorFabricio Voznika <fvoznika@google.com>2020-02-25 13:42:34 -0800
committergVisor bot <gvisor-bot@google.com>2020-02-25 13:44:18 -0800
commit72e3f3a3eef3a1dc02db0ff71f98a5d7fe89a6e3 (patch)
tree54d520df721a706fdffabda9e6c560b197cdee86 /pkg/sentry/kernel/kernel.go
parent430992a67abe30dc6cb4e00822517c0aed388088 (diff)
Add option to skip stuck tasks waiting for address space
PiperOrigin-RevId: 297192390
Diffstat (limited to 'pkg/sentry/kernel/kernel.go')
-rw-r--r--pkg/sentry/kernel/kernel.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/sentry/kernel/kernel.go b/pkg/sentry/kernel/kernel.go
index c62fd6eb1..8b76750e9 100644
--- a/pkg/sentry/kernel/kernel.go
+++ b/pkg/sentry/kernel/kernel.go
@@ -247,6 +247,10 @@ type Kernel struct {
// VFS keeps the filesystem state used across the kernel.
vfs vfs.VirtualFilesystem
+
+ // If set to true, report address space activation waits as if the task is in
+ // external wait so that the watchdog doesn't report the task stuck.
+ SleepForAddressSpaceActivation bool
}
// InitKernelArgs holds arguments to Init.