All of lore.kernel.org
 help / color / mirror / Atom feed
* [BUG]The latest qemu crashed when I tested cxl
@ 2022-12-29  3:53 Song Dom
  0 siblings, 0 replies; only message in thread
From: Song Dom @ 2022-12-29  3:53 UTC (permalink / raw)
  To: qemu-devel; +Cc: Jonathan.Cameron

[-- Attachment #1: Type: text/plain, Size: 917 bytes --]

I test cxl with the patch:[v11,0/2] arm/virt: CXL support via pxb_cxl.
https://patchwork.kernel.org/project/cxl/cover/20220616141950.23374-1-Jonathan.Cameron@huawei.com/

But the qemu crashed,and showing an error:
qemu-system-aarch64: ../hw/arm/virt.c:1735: virt_get_high_memmap_enabled: Assertion `ARRAY_SIZE(extended_memmap) - VIRT_LOWMEMMAP_LAST == ARRAY_SIZE(enabled_array)' failed.

Then I modify the patch to fix the bug:
diff --git a/hw/arm/virt.c b/hw/arm/virt.c
index ea2413a0ba..3d4cee3491 100644
--- a/hw/arm/virt.c
+++ b/hw/arm/virt.c
@@ -1710,6 +1730,7 @@ static inline bool *virt_get_high_memmap_enabled(VirtMachineState *vms,
         &vms->highmem_redists,
         &vms->highmem_ecam,
         &vms->highmem_mmio,
+ &vms->cxl_devices_state.is_enabled,
     };
Now qemu works good.

Could you tell me when the patch(arm/virt: CXL support via pxb_cxl) will be merged into upstream?

[-- Attachment #2: Type: text/html, Size: 4261 bytes --]

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-12-29  3:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-29  3:53 [BUG]The latest qemu crashed when I tested cxl Song Dom

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.