Skip to content

Commit 960c91d

Browse files
committed
Add initial support for DragonFly BSD
DragonFly BSD also supports nvmm acceleration and lima builds out of the box. Signed-off-by: Antonio Huete Jimenez <[email protected]>
1 parent 5bf5320 commit 960c91d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

pkg/limayaml/defaults.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1222,7 +1222,7 @@ func ResolveArch(s *string) Arch {
12221222

12231223
func IsAccelOS() bool {
12241224
switch runtime.GOOS {
1225-
case "darwin", "linux", "netbsd", "windows":
1225+
case "darwin", "linux", "netbsd", "windows", "dragonfly":
12261226
// Accelerator
12271227
return true
12281228
}

pkg/qemu/qemu.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1120,6 +1120,8 @@ func Accel(arch limayaml.Arch) string {
11201120
return "kvm"
11211121
case "netbsd":
11221122
return "nvmm"
1123+
case "dragonfly":
1124+
return "nvmm"
11231125
case "windows":
11241126
return "whpx"
11251127
}

0 commit comments

Comments
 (0)