Skip to content

Conversation

omegametabroccolo
Copy link
Contributor

@omegametabroccolo omegametabroccolo commented Jul 27, 2025

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 OpenBSD macro 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.

- 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)
@hannesm
Copy link
Contributor

hannesm commented Sep 23, 2025

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?

@dinosaure
Copy link
Collaborator

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?

I will agree with that.

@hannesm
Copy link
Contributor

hannesm commented Sep 23, 2025

See omegametabroccolo#1 (which should work since openbsd/src@ca6cf18)

EDIT: please note I didn't compile that commit, please check if it works :)

@dinosaure
Copy link
Collaborator

Thanks, if @omegametabroccolo is happy, I can cherry-pick the commit and merge it.

@omegametabroccolo
Copy link
Contributor Author

Yes that works, thanks!

@dinosaure
Copy link
Collaborator

Thanks both!

@dinosaure dinosaure merged commit a4df083 into Solo5:master Sep 23, 2025
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)
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

Successfully merging this pull request may close these issues.

3 participants