Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shared Memory on CVMs? #68

Open
Teofil98 opened this issue Jul 4, 2024 · 0 comments
Open

Shared Memory on CVMs? #68

Teofil98 opened this issue Jul 4, 2024 · 0 comments

Comments

@Teofil98
Copy link

Teofil98 commented Jul 4, 2024

Creating a shared memory region with qemu in the CVM case doesn't fail:

-device ivshmem-plain,memdev=hostmem -object memory-backend-file,size=1M,share=on,mem-path=</path/to/file/data.dat>,id=hostmem 

The shared memory shows up as usual on the CVM like in the case of a normal vm

lspci

00:06.0 RAM memory: Red Hat, Inc. Inter-VM shared memory (rev 01)

lspci -vn

00:06.0 0500: 1af4:1110 (rev 01)
        Subsystem: 1af4:1100
        Flags: fast devsel
        Memory at c1002000 (32-bit, non-prefetchable) [size=256]
        Memory at 700000000000 (64-bit, prefetchable) [size=1M]

However, the user-space process hangs when trying to read/write using the shared memory region.
Would be interesting to see if we can get it to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant