Skip to content

Commit

Permalink
neonvm-runner: add code comments
Browse files Browse the repository at this point in the history
Signed-off-by: Mikhail Sakhnov <mikhail@skhnv.me>
  • Loading branch information
mikhail-sakhnov committed Dec 4, 2024
1 parent f3780cf commit 487d6a4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions neonvm-runner/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -1153,8 +1153,10 @@ func getQemuBinaryName(architecture string) string {
func getMachineType(architecture string) string {
switch architecture {
case architectureArm64:
// virt is the most up to date and generic ARM machine architecture
return "virt"
case architectureAmd64:
// q35 is the most up to date and generic x86_64 machine architecture
return "q35"
default:
panic(fmt.Errorf("unknown architecture %s", architecture))
Expand Down

0 comments on commit 487d6a4

Please sign in to comment.