Skip to content

Commit b1c4e32

Browse files
authored
Merge pull request #594 from Kern--/vsock-path
Add VSockPath to GetVmInfoResponse
2 parents 321527e + b28e6dc commit b1c4e32

File tree

4 files changed

+78
-66
lines changed

4 files changed

+78
-66
lines changed

proto/firecracker.pb.go

Lines changed: 75 additions & 66 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

proto/firecracker.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ message GetVMInfoResponse {
7474
string LogFifoPath = 3;
7575
string MetricsFifoPath = 4;
7676
string CgroupPath = 5;
77+
string VSockPath = 6;
7778
}
7879

7980
message SetVMMetadataRequest {

runtime/service.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -711,6 +711,7 @@ func (s *service) GetVMInfo(requestCtx context.Context, request *proto.GetVMInfo
711711
LogFifoPath: s.machineConfig.LogPath,
712712
MetricsFifoPath: s.machineConfig.MetricsPath,
713713
CgroupPath: cgroupPath,
714+
VSockPath: s.shimDir.FirecrackerVSockPath(),
714715
}, nil
715716
}
716717

runtime/service_integ_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,7 @@ func TestMultipleVMs_Isolated(t *testing.T) {
409409
return err
410410
}
411411
if vmInfoResp.SocketPath != filepath.Join(cfg.ShimBaseDir, nspVMid, "firecracker.sock") ||
412+
vmInfoResp.VSockPath != filepath.Join(cfg.ShimBaseDir, nspVMid, "firecracker.vsock") ||
412413
vmInfoResp.LogFifoPath != filepath.Join(cfg.ShimBaseDir, nspVMid, "fc-logs.fifo") ||
413414
vmInfoResp.MetricsFifoPath != filepath.Join(cfg.ShimBaseDir, nspVMid, "fc-metrics.fifo") ||
414415
resp.CgroupPath != vmInfoResp.CgroupPath {

0 commit comments

Comments
 (0)