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

Stop forcing -g in mpi3mr module because it breaks non-debug install. #1314

Merged
merged 2 commits into from
Jul 7, 2024

Conversation

ericfreebsd
Copy link

Stop forcing -g in mpi3mr module because it breaks non-debug install.

@ericfreebsd
Copy link
Author

It is probably more correct to pass on whatever debug settings were specified, but this makes my builds work again.

@ericfreebsd
Copy link
Author

When the module is loaded on a system running on qemu/kvm the "modern"
virtio infrastructure is used and virtio_read_device_config() will end
up calling vtpci_modern_read_dev_config(). This function cannot read
values of arbitrary sizes and will panic if the p9fs mount tag size is
not supported by it.

Use virtio_read_device_config_array() instead. It was tested on both
bhyve and qemu/kvm.

PR: 280098
Co-authored-by: Mark Peek <[email protected]>
Reviewed by: imp
Pull Request: freebsd#1320
@freebsd-git freebsd-git merged commit 4c6cf05 into freebsd:main Jul 7, 2024
7 of 9 checks passed
bsdjhb pushed a commit to bsdjhb/cheribsd that referenced this pull request Oct 30, 2024
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.

4 participants