Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
528 changes: 528 additions & 0 deletions api/next.pb.txt

Large diffs are not rendered by default.

127 changes: 92 additions & 35 deletions api/services/system/v1/info.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions api/services/system/v1/info.proto
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,21 @@ service System {
// and commit flows can rely on a quiesced writable layer.
rpc PrepareShutdown(google.protobuf.Empty) returns (google.protobuf.Empty);

// FreezeFilesystems freezes the container's writable filesystem(s) via the
// FIFREEZE ioctl. This flushes dirty page cache to the block device and
// quiesces the on-disk filesystem so the backing rwlayer image can be read
// consistently while the VM keeps running. The host calls this from Pause
// (before suspending vCPUs); each frozen mount must later be thawed.
//
// Returns:
// - INTERNAL: an FIFREEZE ioctl failed (already-frozen mounts are skipped)
rpc FreezeFilesystems(google.protobuf.Empty) returns (FreezeFilesystemsResponse);

// ThawFilesystems thaws filesystems previously frozen by FreezeFilesystems.
// It is best-effort and idempotent: thawing a filesystem that is not frozen
// is not an error. The host calls this from Resume (after restarting vCPUs).
rpc ThawFilesystems(google.protobuf.Empty) returns (google.protobuf.Empty);

// OfflineCPU takes a CPU offline via sysfs before hot-unplug.
// The CPU must have been previously onlined and cannot be CPU 0 (boot CPU).
//
Expand Down Expand Up @@ -66,6 +81,11 @@ message InfoResponse {
string kernel_version = 2;
}

message FreezeFilesystemsResponse {
// frozen lists the mount points that were frozen by this call.
repeated string frozen = 1;
}

message OfflineCPURequest {
// cpu_id is the logical CPU ID to offline (zero-indexed, e.g., 0, 1, 2).
// This corresponds to /sys/devices/system/cpu/cpu{N}.
Expand Down
32 changes: 32 additions & 0 deletions api/services/system/v1/info_ttrpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions hack/install-proto-tools
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ set -eu -o pipefail
# install `protobuild` and other commands
go install github.com/containerd/protobuild@v0.3.0
go install github.com/containerd/protobuild/cmd/go-fix-acronym@v0.3.0
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.28.1
go install github.com/containerd/ttrpc/cmd/protoc-gen-go-ttrpc@v1.2.5
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.36.11
go install github.com/containerd/ttrpc/cmd/protoc-gen-go-ttrpc@v1.2.7
Loading