Skip to content
Open
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
11 changes: 11 additions & 0 deletions protect/control/v1/common.proto
Original file line number Diff line number Diff line change
Expand Up @@ -532,3 +532,14 @@ message OciRegistryAuthentication {
string registry_token = 4;
}
}

message PciDevice {
PciDeviceState state = 1;
}

enum PciDeviceState {
PCI_DEVICE_STATE_CLEAN = 0;
PCI_DEVICE_STATE_DIRTY = 1;
PCI_DEVICE_STATE_SCRUB = 2;
PCI_DEVICE_STATE_BUSY = 3;
}
13 changes: 13 additions & 0 deletions protect/control/v1/control.proto
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ service ControlService {
rpc SetHostPowerManagementPolicy(SetHostPowerManagementPolicyRequest) returns (SetHostPowerManagementPolicyReply);

rpc DialNetworkSocket(stream DialNetworkSocketRequest) returns (stream DialNetworkSocketReply);
rpc DeviceStateUpdate(DeviceStateRequest) returns (DeviceStateReply);
}

message GetHostStatusRequest {}
Expand All @@ -68,6 +69,13 @@ message GetHostStatusReply {
string host_mac = 6;
}

message DeviceStateRequest {
string name = 1;
PciDevice state = 2;
}

message DeviceStateReply {}

message CreateZoneRequest {
ZoneSpec spec = 1;
}
Expand Down Expand Up @@ -393,6 +401,7 @@ message WatchEventsReply {
oneof event {
ZoneChangedEvent zone_changed = 1;
WorkloadChangedEvent workload_changed = 2;
DeviceChangedEvent device_changed = 3;
}
}

Expand All @@ -404,6 +413,10 @@ message WorkloadChangedEvent {
Workload workload = 1;
}

message DeviceChangedEvent {
DeviceReferenceSpec device = 1;
}

message ReadZoneMetricsRequest {
string zone_id = 1;
}
Expand Down