mirror of
https://github.com/hanzoai/visor.git
synced 2026-09-24 17:04:14 +00:00
Aside from improving checkpointing performance by using AIO to better utilize disk bandwidth, this makes it possible to parallelize writing pages with scanning for zero pages (in a following CL). As part of this, update and document ownership semantics for the state file, pages metadata file, and pages file, with the following goals: - Since io.WriteCloser.Close() may flush buffers, it must return a nil error before write success is reported - The pages metadata file is closed while async page saving is in progress (to hide the latency of the former) PiperOrigin-RevId: 814315485
28 lines
614 B
Python
28 lines
614 B
Python
load("//tools:defs.bzl", "go_library")
|
|
|
|
package(
|
|
default_applicable_licenses = ["//:license"],
|
|
licenses = ["notice"],
|
|
)
|
|
|
|
go_library(
|
|
name = "state",
|
|
srcs = [
|
|
"state.go",
|
|
"state_metadata.go",
|
|
"state_unsafe.go",
|
|
],
|
|
visibility = ["//pkg/sentry:internal"],
|
|
deps = [
|
|
"//pkg/abi/linux",
|
|
"//pkg/context",
|
|
"//pkg/log",
|
|
"//pkg/sentry/kernel",
|
|
"//pkg/sentry/state/stateio",
|
|
"//pkg/sentry/time",
|
|
"//pkg/sentry/watchdog",
|
|
"//pkg/state/statefile",
|
|
"@org_golang_x_sys//unix:go_default_library",
|
|
],
|
|
)
|