-
Notifications
You must be signed in to change notification settings - Fork 159
RFC: Does libkrun support LoongArch64 Linux/KVM? #601
Description
Hello,
I've been developing a LoongArch64 port of libkrun, targeting native LoongArch64 Linux/KVM hosts. I'd like to first understand if upstream support for this architecture is warranted before investing more time in refining this project.
From an ecosystem perspective, LoongArch is now much easier to upstream support than it was a few years ago:
-
Linux already supports the upstream LoongArch architecture and provides dedicated KVM documentation.
-
Rust provides host tools for
loongarch64-unknown-linux-gnuas a Tier 2 target library. -
QEMU provides support documentation for
qemu-system-loongarch64and LoongArch KVM. -
Debian officially announced
loong64as the official architecture on December 20, 2025.
Regarding libkrun, I've created an initial startup branch covering the core architectural foundations of Linux/KVM on LoongArch64, including memory layout, interrupt chip settings, FDT generation, serial/legacy device handling, virtual CPU settings, and kernel boot path. This work is still in the validation phase, so I'm not considering it for merging yet; at this stage, I mainly want to confirm whether this direction is suitable for the project.
I have the following questions:
-
Is libkrun willing to merge LoongArch64 Linux/KVM support upstream?
-
If so, what do you think the initial release should at least include?
-
Is the main consideration long-term maintenance/continuous integration coverage, or are there architectural reasons why libkrun is unsuitable for adding another KVM architecture?
If the project is open to this direction, I'm willing to assist with the subsequent maintenance of the port, including preparing and rebuilding patch sets, fixing regression issues on LoongArch64, and assisting with validation/continuous integration.
Thank you.