Closed alyssais closed 1 year ago
Updated to:
Debug
and PartialEq
for virtio_net_hdr_v1
. (bindgen still generates the Default
impl, it's just not derived any more.)@alyssais the build is failing because of some problems with how we were specifying dependencies. Once we merge #202 that shouldn't be a problem anymore.
Should be all sorted and ready for review. :)
AFAICT, CI failed because it timed out updating the crates.io index? And also for the same reason as #206, i.e. https://github.com/bheisler/criterion.rs/issues/629.
AFAICT, CI failed because it timed out updating the crates.io index? And also for the same reason as #206, i.e. bheisler/criterion.rs#629.
Yes, we need to ignore it as we already did here: https://github.com/rust-vmm/linux-loader/commit/2580d45f741988468e9b086adbcadae7cc7433a5.
And we need to fix and merge the rust-vmm-ci bump, the timeout problem you mentioned is (temporarily) fixed here. I will try to fix this asap, but don't quite have bandwidth today.
And we need to fix and merge the rust-vmm-ci bump, the timeout problem you mentioned is (temporarily) fixed here. I will try to fix this asap, but don't quite have bandwidth today.
I did the fix, you can just rebase on top of the main branch and there should be no more failures.
Summary of the PR
Here I've regenerated the bindings with modern versions of bindgen, Glibc, and Linux. I put each tool update into its own commit to make it easy to see which upgrade caused which changes.
Something that worries me a little bit is that as part of the update to the kernel headers, some structs have gained members, and virtio_net_hdr_v1 has lost its Debug, Default, and PartialEq implementations due to the addition of a union member. Both of these are technically breaking changes in the Rust sense, even if they're not considered so by the kernel. But they're also minor, so I'm not sure if it makes sense to worry about them? cc @sboeuf
Requirements
Before submitting your PR, please make sure you addressed the following requirements:
git commit -s
), and the commit message has max 60 characters for the summary and max 75 characters for each description line.unsafe
code is properly documented.