Skip to content

Commit 008e5f3

Browse files
committed
feat: add vsocket
Signed-off-by: Kevin Klopfenstein <[email protected]>
1 parent 5e0499f commit 008e5f3

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

pkg/machine/qemu/command/command.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ func (q *QemuCmd) SetDisplay(display string) {
102102

103103
func (q *QemuCmd) SetVsocket(vsocket int32) {
104104
// must be greater than 2 in default mode
105+
fmt.Println(vsocket)
106+
fmt.Println(vsocket <= 2)
105107
if vsocket <= 2 {
106108
vsocket = 3
107109
}

pkg/machine/vmconfigs/config.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,6 @@ type MachineConfig struct {
4141
QEMUHypervisor *QEMUConfig `json:",omitempty"`
4242
WSLHypervisor *WSLConfig `json:",omitempty"`
4343

44-
// VSocketCid ID for VSocket communication
45-
VSocketCid int32
46-
4744
lock *lockfile.LockFile
4845

4946
// configPath can be used for reading, writing, removing

pkg/machine/vmconfigs/config_common.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ type QEMUConfig struct {
1414
QMPMonitor command.Monitor
1515
// QEMUPidPath is where to write the PID for QEMU when running
1616
QEMUPidPath *define.VMFile
17+
// VSocketCid ID for VSocket communication
18+
VSocketCid int32
1719
}
1820

1921
// Stubs

pkg/machine/vmconfigs/config_windows.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ type QEMUConfig struct {
2424
QMPMonitor command.Monitor
2525
// QEMUPidPath is where to write the PID for QEMU when running
2626
QEMUPidPath *define.VMFile
27+
// VSocketCid ID for VSocket communication
28+
VSocketCid int32
2729
}
2830

2931
// Stubs

0 commit comments

Comments
 (0)