Adapt the OpenBSD hvt tender to the new vmm(4)#600
Merged
dinosaure merged 3 commits intoSolo5:masterfrom Sep 23, 2025
Merged
Conversation
- VM memory allocation is now handled by vmm(4) - VMM_IOC_MPROTECT_EPT has been dropped some time ago, vmm(4) handles this now This commit breaks releases of OpenBSD (7.7 and before)
Contributor
|
I wonder if there's anything we can have the conditional on, e.g. if we're <= 7.7 retain the current code, otherwise use this new code? |
Collaborator
I will agree with that. |
Contributor
|
See omegametabroccolo#1 (which should work since openbsd/src@ca6cf18) EDIT: please note I didn't compile that commit, please check if it works :) |
Collaborator
|
Thanks, if @omegametabroccolo is happy, I can cherry-pick the commit and merge it. |
Contributor
Author
|
Yes that works, thanks! |
939db7d to
9355484
Compare
9355484 to
8e6deda
Compare
Collaborator
|
Thanks both! |
dinosaure
added a commit
to dinosaure/opam-repository
that referenced
this pull request
Sep 23, 2025
- Fix `test_ssp` on OpenBSD (@omegametabroccolo, Solo5/solo5#599) - Fix build of hvt on aarch64 (Solo5/solo5#601, @cmainas) - Adapt OpenBSD hvt tender with the new `vmm(4)` (@omegametabroccolo, @hannesm, Solo5/solo5#600)
dinosaure
added a commit
to dinosaure/opam-repository
that referenced
this pull request
Sep 23, 2025
- Fix `test_ssp` on OpenBSD (@omegametabroccolo, Solo5/solo5#599) - Fix build of hvt on aarch64 (Solo5/solo5#601, @cmainas) - Adapt OpenBSD hvt tender with the new `vmm(4)` (@omegametabroccolo, @hannesm, Solo5/solo5#600)
Merged
dinosaure
added a commit
to dinosaure/opam-repository
that referenced
this pull request
Oct 27, 2025
- Fix compilation on OpenBSD about `#ifdef` (@omegametabroccolo, @hannesm, @reynir, Solo5/solo5#614, related with Solo5/solo5#600) - Add GitHub actions to test Solo5 on different platforms (@hannesm, Solo5/solo5#616, Solo5/solo5#617 & Solo5/solo5#540) - Do not use `-Wstringopt-overflow` when we use `clang` for `test_ssp` (@hannesm, Solo5/solo5#607) - Show errors and exit instead of `assert false` (@shym, @edwintorok, @hannesm, @reynir, Solo5/solo5#613 & Solo5/solo5#612) - Define `.note.GNU-stack` when it's needed (@shym, @Kensan, @hannesm, @palainp, @dinosaure, Solo5/solo5#619, Solo5/solo5#570 & Solo5/solo5#562) - Detect MTU on TAP interface for hvt, spt and virtio (@reynir, @hannesm, @dinosaure, Solo5/solo5#605 & Solo5/solo5#606)
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.
For now, this PR only works on -current and breaks released versions of OpenBSD. AFAICT there is no way to know at compile time if we're on -current or not, but we can check the latest released version with the
OpenBSDmacro from<sys/param.h>. We could wait until OpenBSD 7.8 is released to add some#if OpenBSD >= [7.8 version number]and support both 7.8 and earlier releases, as suggested in #598.