mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-15 22:08:47 +00:00
libs: Add AddSwapPath to service AgentService
AddSwap send the pci path to guest kernel to let it add swap device. But some mmio device doesn't have pci path. To support it add AddSwapPath send virt_path to guest kernel as swap device. Fixes: #10988 Signed-off-by: Hui Zhu <teawater@antgroup.com>
This commit is contained in:
@@ -74,6 +74,7 @@ service AgentService {
|
||||
rpc CopyFile(CopyFileRequest) returns (google.protobuf.Empty);
|
||||
rpc GetOOMEvent(GetOOMEventRequest) returns (OOMEvent);
|
||||
rpc AddSwap(AddSwapRequest) returns (google.protobuf.Empty);
|
||||
rpc AddSwapPath(AddSwapPathRequest) returns (google.protobuf.Empty);
|
||||
rpc GetVolumeStats(VolumeStatsRequest) returns (VolumeStatsResponse);
|
||||
rpc ResizeVolume(ResizeVolumeRequest) returns (google.protobuf.Empty);
|
||||
rpc SetPolicy(SetPolicyRequest) returns (google.protobuf.Empty);
|
||||
@@ -595,6 +596,10 @@ message AddSwapRequest {
|
||||
repeated uint32 PCIPath = 1;
|
||||
}
|
||||
|
||||
message AddSwapPathRequest {
|
||||
string path = 1;
|
||||
}
|
||||
|
||||
message GetMetricsRequest {}
|
||||
|
||||
message Metrics {
|
||||
|
Reference in New Issue
Block a user