-
Notifications
You must be signed in to change notification settings - Fork 127
kvm-ioctls: Fix create device wrapper in v0.12.1 and release #356
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
kvm-ioctls: Fix create device wrapper in v0.12.1 and release #356
Conversation
0634729 to
96dbf66
Compare
|
@RuoqingHe LGTM, but I suggest doing backport with |
Noted, for ae039f2, CI was too old to accept the URL (because it exceeded the line length limit in commit body), I will change to use that |
don't worry too much about CI, I think we can just merge this. So if you want to revert also the CI commit, it's fine by me. |
96dbf66 to
9ee48b5
Compare
Use `ioctl_with_mut_ref` instead of `ioctl_with_ref` in the `create_device` method as it needs to write to the `kvm_create_device` struct passed to it. This incorrect usage of `ioctl_with_ref` causes newer versions of Rust compiler (1.82 and above) to treat the `kvm_create_device` struct as read-only and bypass following reads from it. This optimization lead to incorrect value being passed to the `File::from_raw_fd` call. (cherry picked from commit ade910b) Signed-off-by: Egor Lazarchuk <[email protected]> Signed-off-by: Ruoqing He <[email protected]>
9ee48b5 to
74d9b60
Compare
I've updated the commit message and re-cherry-picked ae039f2 now, would you mind taking another look |
|
Could @ShadowCurse take a look on this when convenient 🙂 |
As this patch [1] documents, and pointed out by @roypat, create an in-kernel `irqchip` before invoking any ioctls relate to PIT. [1] https://lore.kernel.org/kvm/CA+i-1C1LOn19FcddyC5kV8idGQq5KDdAjWBo80ANpRGn8DCx3g@mail.gmail.com/T/ (cherry picked from commit ae039f2) Signed-off-by: Ruoqing He <[email protected]>
Signed-off-by: Ruoqing He <[email protected]>
Update rust-vmm-ci to g042b206, and set toolchain to 1.63.0 to workaround cargo audit problem. Signed-off-by: Ruoqing He <[email protected]>
74d9b60 to
d98ffa0
Compare
9ac8507
into
rust-vmm:kvm-ioctls-v0.12.1
Summary of the PR
Backport 01cac5e to v0.12.1 to resolve #355.
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 thesummary and max 75 characters for each description line.
test.
Release" section of CHANGELOG.md (if no such section exists, please create one).
unsafecode is properly documented.