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 <[email protected]>
  • Loading branch information
mikhail-sakhnov committed Dec 10, 2024
1 parent f99c09e commit e03dc76
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 @@ -1245,8 +1245,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 e03dc76

Please sign in to comment.