qemu-options: Enable the -enable-kvm option for loongarch
PATCH 1/1 qemu-options: Enable the -enable-kvm option for loongarch
--- qemu-options.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
qemu-options.hx +1 -1
@@ -5164,7 +5164,7 @@ ERST DEF("enable-kvm", 0, QEMU_OPTION_enable_kvm, \ "-enable-kvm enable KVM full virtualization support\n", QEMU_ARCH_ARM | QEMU_ARCH_I386 | QEMU_ARCH_MIPS | QEMU_ARCH_PPC | - QEMU_ARCH_RISCV | QEMU_ARCH_S390X) + QEMU_ARCH_RISCV | QEMU_ARCH_S390X | QEMU_ARCH_LOONGARCH) SRST ``-enable-kvm`` Enable KVM full virtualization support. This option is only
---
base-commit: 30e8a06b64aa58a3990ba39cb5d09531e7d265e0
change-id: 20260705-add-loong64-kvm-d271ec6d0ebf
Best regards,
Signature · 1 line
Miao Wang <[email protected]>
Hi,
Quoted 12 lines · On 4/7/26 21:50, Miao Wang via B4 Relay wrote:
From: Miao Wang <[email protected]>
Signed-off-by Miao Wang <[email protected]>--- qemu-options.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)qemu-options.hx +0
-0
qemu-options.hx ERST · line 5170
Quoted 8 lines
qemu-options.hx +1
-1@@ -5164,7 +5164,7 @@ ERST DEF("enable-kvm", 0, QEMU_OPTION_enable_kvm, \ "-enable-kvm enable KVM full virtualization support\n", QEMU_ARCH_ARM | QEMU_ARCH_I386 | QEMU_ARCH_MIPS | QEMU_ARCH_PPC | - QEMU_ARCH_RISCV | QEMU_ARCH_S390X) + QEMU_ARCH_RISCV | QEMU_ARCH_S390X | QEMU_ARCH_LOONGARCH) SRST ``-enable-kvm`` Enable KVM full virtualization support. This option is only
Isn't the legacy option for "-accel kvm"? (Apparently since commit 303d4e865b7 which is from September 2010). Maybe we should get rid of the '-enable-kvm' use in examples / scripts...
Hi,
Quoted 19 lines
2026年7月7日 16:57,Philippe Mathieu-Daudé <[email protected]> 写道:
Hi,
Quoted 14 lines · On 4/7/26 21:50, Miao Wang via B4 Relay wrote:
From: Miao Wang <[email protected]>
Signed-off-by Miao Wang <[email protected]>--- qemu-options.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)qemu-options.hx +0
-1@@ -5164,7 +5164,7 @@ ERST DEF("enable-kvm", 0, QEMU_OPTION_enable_kvm, \ "-enable-kvm enable KVM full virtualization support\n", QEMU_ARCH_ARM | QEMU_ARCH_I386 | QEMU_ARCH_MIPS | QEMU_ARCH_PPC | - QEMU_ARCH_RISCV | QEMU_ARCH_S390X)
Quoted 8 lines
qemu-options.hx ERST · line 5170
Quoted 4 lines
qemu-options.hx +1
-0+ QEMU_ARCH_RISCV | QEMU_ARCH_S390X | QEMU_ARCH_LOONGARCH) SRST ``-enable-kvm`` Enable KVM full virtualization support. This option is onlyIsn't the legacy option for "-accel kvm"? (Apparently since commit
303d4e865b7which is from September 2010). Maybe we should get rid of the '-enable-kvm' use in examples / scripts...
Yes, but I noticed that there are still users of it. I believe that either we can fully remove this option or we should enable this option for every architecture for which kvm is actually supported.
Cheers,
Miao Wang
Quoted 31 lines · Miao Wang
Hi,
Quoted 19 lines
2026年7月7日 16:57,Philippe Mathieu-Daudé <[email protected]> 写道:
Hi,
Quoted 14 lines · On 4/7/26 21:50, Miao Wang via B4 Relay wrote:
From: Miao Wang <[email protected]>
Signed-off-by Miao Wang <[email protected]>--- qemu-options.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)qemu-options.hx +0
-1@@ -5164,7 +5164,7 @@ ERST DEF("enable-kvm", 0, QEMU_OPTION_enable_kvm, \ "-enable-kvm enable KVM full virtualization support\n", QEMU_ARCH_ARM | QEMU_ARCH_I386 | QEMU_ARCH_MIPS | QEMU_ARCH_PPC | - QEMU_ARCH_RISCV | QEMU_ARCH_S390X)Quoted 8 lines
qemu-options.hx ERST · line 5170
Quoted 4 lines
qemu-options.hx +1
-0+ QEMU_ARCH_RISCV | QEMU_ARCH_S390X | QEMU_ARCH_LOONGARCH) SRST ``-enable-kvm`` Enable KVM full virtualization support. This option is onlyIsn't the legacy option for "-accel kvm"? (Apparently since commit
303d4e865b7which is from September 2010). Maybe we should get rid of the '-enable-kvm' use in examples / scripts...
Quoted 3 lines
Yes, but I noticed that there are still users of it. I believe that either we can fully remove this option or we should enable this option for every architecture for which kvm is actually supported.
Why do you want to add this legacy option to an architecture which is newer than the new CLI option and don't even need it listed at all in the help message?
Hi,
Quoted 31 lines
2026年7月7日 17:50,Philippe Mathieu-Daudé <[email protected]> 写道:
Quoted 28 lines · Miao Wang
Hi,
Quoted 27 lines
2026年7月7日 16:57,Philippe Mathieu-Daudé <[email protected]> 写道:
Hi,
Quoted 10 lines · On 4/7/26 21:50, Miao Wang via B4 Relay wrote:
From: Miao Wang <[email protected]>
Signed-off-by Miao Wang <[email protected]>--- qemu-options.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)qemu-options.hx +0
-0qemu-options.hx ERST · line 5170
Quoted 8 lines
qemu-options.hx +1
-1@@ -5164,7 +5164,7 @@ ERST DEF("enable-kvm", 0, QEMU_OPTION_enable_kvm, \ "-enable-kvm enable KVM full virtualization support\n", QEMU_ARCH_ARM | QEMU_ARCH_I386 | QEMU_ARCH_MIPS | QEMU_ARCH_PPC | - QEMU_ARCH_RISCV | QEMU_ARCH_S390X) + QEMU_ARCH_RISCV | QEMU_ARCH_S390X | QEMU_ARCH_LOONGARCH) SRST ``-enable-kvm`` Enable KVM full virtualization support. This option is onlyIsn't the legacy option for "-accel kvm"? (Apparently since commit
303d4e865b7which is from September 2010). Maybe we should get rid of the '-enable-kvm' use in examples / scripts...
Quoted 7 lines
Quoted 3 lines
Yes, but I noticed that there are still users of it. I believe that either we can fully remove this option or we should enable this option for every architecture for which kvm is actually supported.
Why do you want to add this legacy option to an architecture which is newer than the new CLI option and don't even need it listed at all in the help message?
That's because utilities and scripts may expect that there should be an unified option to enable kvm acceleration. "-enable-kvm" might be their choice. However, if "-enable-kvm" is considered legacy and new users should switch to "-accel kvm", I can accept it, not moving this patch forward.
Cheers,
Miao Wang
Quoted 41 lines · Miao Wang
Hi,
Quoted 31 lines
2026年7月7日 17:50,Philippe Mathieu-Daudé <[email protected]> 写道:
Quoted 28 lines · Miao Wang
Hi,
Quoted 27 lines
2026年7月7日 16:57,Philippe Mathieu-Daudé <[email protected]> 写道:
Hi,
Quoted 10 lines · On 4/7/26 21:50, Miao Wang via B4 Relay wrote:
From: Miao Wang <[email protected]>
Signed-off-by Miao Wang <[email protected]>--- qemu-options.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)qemu-options.hx +0
-0qemu-options.hx ERST · line 5170
Quoted 8 lines
qemu-options.hx +1
-1@@ -5164,7 +5164,7 @@ ERST DEF("enable-kvm", 0, QEMU_OPTION_enable_kvm, \ "-enable-kvm enable KVM full virtualization support\n", QEMU_ARCH_ARM | QEMU_ARCH_I386 | QEMU_ARCH_MIPS | QEMU_ARCH_PPC | - QEMU_ARCH_RISCV | QEMU_ARCH_S390X) + QEMU_ARCH_RISCV | QEMU_ARCH_S390X | QEMU_ARCH_LOONGARCH) SRST ``-enable-kvm`` Enable KVM full virtualization support. This option is onlyIsn't the legacy option for "-accel kvm"? (Apparently since commit
303d4e865b7which is from September 2010). Maybe we should get rid of the '-enable-kvm' use in examples / scripts...Quoted 7 lines
Quoted 3 lines
Yes, but I noticed that there are still users of it. I believe that either we can fully remove this option or we should enable this option for every architecture for which kvm is actually supported.
Why do you want to add this legacy option to an architecture which is newer than the new CLI option and don't even need it listed at all in the help message?
Quoted 5 lines
That's because utilities and scripts may expect that there should be an unified option to enable kvm acceleration. "-enable-kvm" might be their choice. However, if "-enable-kvm" is considered legacy and new users should switch to "-accel kvm", I can accept it, not moving this patch forward.
When qemu-system-loongarch64 was introduced, "-enable-kvm" was already legacy and "-accel kvm" was already available, and "-enable-kvm" has never been listed for this binary, so I expect the users to use the correct up-to-date syntax. No need to confuse them.
Thanks,
Phil.