Skip to content

Commit 2311767

Browse files
committed
UPF sock pass back to orch
Signed-off-by: Plamen Petrov <[email protected]>
1 parent 886b20a commit 2311767

File tree

5 files changed

+142
-4
lines changed

5 files changed

+142
-4
lines changed

firecracker-control/local.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ func (s *local) CreateSnapshot(ctx context.Context, req *proto.CreateSnapshotReq
652652
}
653653

654654
// LoadSnapshot Loads a snapshot of a VM
655-
func (s *local) LoadSnapshot(ctx context.Context, req *proto.LoadSnapshotRequest) (*empty.Empty, error) {
655+
func (s *local) LoadSnapshot(ctx context.Context, req *proto.LoadSnapshotRequest) (*proto.LoadSnapshotResponse, error) {
656656
client, err := s.shimFirecrackerClient(ctx, req.VMID)
657657
if err != nil {
658658
return nil, err

firecracker-control/service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ func (s *service) UpdateBalloonStats(ctx context.Context, req *proto.UpdateBallo
127127
return s.local.UpdateBalloonStats(ctx, req)
128128
}
129129

130-
func (s *service) LoadSnapshot(ctx context.Context, req *proto.LoadSnapshotRequest) (*empty.Empty, error) {
130+
func (s *service) LoadSnapshot(ctx context.Context, req *proto.LoadSnapshotRequest) (*proto.LoadSnapshotResponse, error) {
131131
log.G(ctx).Debugf("load snapshot request: %+v", req)
132132
return s.local.LoadSnapshot(ctx, req)
133133
}

proto/firecracker.pb.go

Lines changed: 99 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

proto/firecracker.proto

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ message LoadSnapshotRequest {
116116
bool EnableUserPF = 4;
117117
}
118118

119+
message LoadSnapshotResponse {
120+
string SendSockPath = 1;
121+
}
122+
119123
message OffloadRequest {
120124
string VMID = 1;
121125
}

proto/service/fccontrol/ttrpc/fccontrol.pb.go

Lines changed: 37 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)