Fixed an issue where qxl devices could not be displayed in bios and grub stages due to a loongarch architecture string comparison error. Signed-off-by: lixianglai <lixianglai@loongson.cn> (cherry picked from commit 3ec9f99b9e3286a298053975ed837c7a81f8bbe2)
31 lines
933 B
Diff
31 lines
933 B
Diff
From 8b57ac24787afc0a94f3ba8e065f9524c986fa7f Mon Sep 17 00:00:00 2001
|
|
From: lixianglai <lixianglai@loongson.cn>
|
|
Date: Tue, 12 Sep 2023 02:08:31 -0400
|
|
Subject: [PATCH] Fixed loongarch qxl device not displaying during startup
|
|
phase
|
|
|
|
Fixed an issue where qxl devices could not be displayed in bios and grub
|
|
stages due to a loongarch architecture string comparison error.
|
|
|
|
Signed-off-by: lixianglai <lixianglai@loongson.cn>
|
|
---
|
|
src/qemu/qemu_domain.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c
|
|
index fbc665aff3..5933039f5c 100644
|
|
--- a/src/qemu/qemu_domain.c
|
|
+++ b/src/qemu/qemu_domain.c
|
|
@@ -12998,7 +12998,7 @@ qemuDomainMachineIsLoongson(const char *machine,
|
|
return false;
|
|
|
|
if (STREQ(machine, "loongson7a") ||
|
|
- STRPREFIX(machine, "loongson7a-")) {
|
|
+ STRPREFIX(machine, "loongson7a")) {
|
|
return true;
|
|
}
|
|
|
|
--
|
|
2.27.0
|
|
|