Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
10.72k
stars
6.55k
forks
source link
[Backport v3.5] drivers: virtualization: Crash when using ivshmem-v2 #65894
Closed
gramsay0 closed 10 months ago
Note: The fix has been already been merged, adding a ticket to allow a backport to the 3.5-branch. Below is my original comment for reference
Hi, my Jailhouse hypervisor ivshmem stopped working, I bisected to this commit https://github.com/zephyrproject-rtos/zephyr/commit/c9b534c4ebca8c3d02bc7d783c79771f1409d096.
It crashes here
dc_ops("ivac", start_addr);
ivshmem_configure
->z_phys_map
->arch_mem_map
->inv_dcache_after_map_helper
->arm64_dcache_range
->dc_ops("ivac", start_addr);
.addr
0xa0000000
, size1044480
, mapped/virt0xfc5ef000
Maybe something to do with part of this memory being read-only and DC IVAC requiring write access?
https://developer.arm.com/documentation/den0024/a/Caches/Cache-maintenance
Although I get the same crash even without
K_MEM_PERM_RW
Any thoughts/ideas on this?