feat(itf): add dual-QEMU ivshmem integration-test environment#617
Draft
Rahul-Sutariya wants to merge 3 commits into
Draft
feat(itf): add dual-QEMU ivshmem integration-test environment#617Rahul-Sutariya wants to merge 3 commits into
Rahul-Sutariya wants to merge 3 commits into
Conversation
f56837b to
eedfda4
Compare
Add a `dual_qemu` ITF/pytest plugin that boots two QNX VMs sharing one QEMU ivshmem-plain region, extending the upstream single-VM `qemu` plugin. - plugin: config.py, ivshmem_qemu.py, dual_qemu_process.py, __init__.py (target_a/target_b fixtures; sequential boot to avoid KVM race), BUILD, example config, README, example/run_example_manually.sh. - integration_testing.bzl: dual_qemu_integration_test macro (QNX-only, flaky). - example: offset_list.h + simple_ivshmem.cpp map the ivshmem BAR via pci-server and exchange a self-relative offset-pointer list, proving cross-VM pointer resolution; simple_ivshmem_test.py verifies both VMs.
note: Cross-VM shared memory forces the region onto the ivshmem PCI BAR (device/SHMCTL_PHYS memory), but the production lib-memory ControlBlock puts a process-shared pthread_mutex there and locks it during init. QNX refuses to operate a process-shared mutex on device-mapped BAR memory (returns EINVAL even with write-back caching), so the producer aborts — making the umbrella score::memory::shared unusable over ivshmem, unlike the mutex-free demo.
19dd911 to
de939e0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a
dual_qemuITF/pytest plugin that boots two QNX VMs sharing one QEMU ivshmem-plain region, extending the upstream single-VMqemuplugin.