File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -532,3 +532,14 @@ message OciRegistryAuthentication {
532532 string registry_token = 4 ;
533533 }
534534}
535+
536+ message PciDevice {
537+ PciDeviceState state = 1 ;
538+ }
539+
540+ enum PciDeviceState {
541+ CLEAN = 0 ;
542+ DIRTY = 1 ;
543+ SCRUB = 2 ;
544+ BUSY = 3 ;
545+ }
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ service ControlService {
5555 rpc SetHostPowerManagementPolicy (SetHostPowerManagementPolicyRequest ) returns (SetHostPowerManagementPolicyReply );
5656
5757 rpc DialNetworkSocket (stream DialNetworkSocketRequest ) returns (stream DialNetworkSocketReply );
58+ rpc DeviceStateUpdate (DeviceStateRequest ) returns (DeviceStateReply );
5859}
5960
6061message GetHostStatusRequest {}
@@ -68,6 +69,13 @@ message GetHostStatusReply {
6869 string host_mac = 6 ;
6970}
7071
72+ message DeviceStateRequest {
73+ string name = 1 ;
74+ protect.common.v1.PciDevice state = 2 ;
75+ }
76+
77+ message DeviceStateReply {}
78+
7179message CreateZoneRequest {
7280 ZoneSpec spec = 1 ;
7381}
@@ -393,6 +401,7 @@ message WatchEventsReply {
393401 oneof event {
394402 ZoneChangedEvent zone_changed = 1 ;
395403 WorkloadChangedEvent workload_changed = 2 ;
404+ DeviceChangedEvent device_changed = 3 ;
396405 }
397406}
398407
@@ -404,6 +413,10 @@ message WorkloadChangedEvent {
404413 Workload workload = 1 ;
405414}
406415
416+ message DeviceChangedEvent {
417+ protect.common.v1.DeviceReferenceSpec device = 1 ;
418+ }
419+
407420message ReadZoneMetricsRequest {
408421 string zone_id = 1 ;
409422}
You can’t perform that action at this time.
0 commit comments