rust-vmm / kvm-ioctls

Apache License 2.0
255 stars 103 forks source link

ioctls/vm: Change kvm_create_device to immutable reference #253

Closed tylerfanelli closed 5 months ago

tylerfanelli commented 5 months ago

Summary of the PR

The device argument to VmFd.create_device() is not modified. With this, the argument does not need to be a mutable reference. This PR changes the device argument to an immutable reference and updates the tests + docs to reflect this change.

Although this is public facing, I wasn't sure if this required an entry in CHANGELOG.md. If this is approved and someone feels that it should be an entry, please let me know.