Skip to content

Commit

Permalink
virtme-ng: enable amd64 architecture support on non-x86 platforms
Browse files Browse the repository at this point in the history
As mentioned in issue #223, there is no reason to forbid the use of
x86_64 as a non-native architecture, so add the proper definition to
support x86_64 (building kernel and starting instances) on non-x86
machines.

For consistency with Debian/Ubuntu naming conventions used for other
architectures, use amd64 to identify x86_64.

Link: https://lore.kernel.org/all/[email protected]/
Suggested-by: Catalin Marinas <[email protected]>
Signed-off-by: Andrea Righi <[email protected]>
  • Loading branch information
arighi committed Jan 29, 2025
1 parent 89ea3b1 commit 8420a9c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions virtme_ng/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,13 @@ def arg_fail(message, show_usage=True):


ARCH_MAPPING = {
"amd64": {
"qemu_name": "x86_64",
"linux_name": "x86_64",
"cross_compile": "x86_64-linux-gnu-",
"kernel_target": "bzImage",
"kernel_image": "bzImage",
},
"arm64": {
"qemu_name": "aarch64",
"linux_name": "arm64",
Expand Down

0 comments on commit 8420a9c

Please sign in to comment.