devices: vfio: remove unnecessary MemSlot casts

The values that were cast in these expressions were already MemSlot, so
there is no need to cast back and forth between MemSlot and u32.

BUG=None
TEST=tools/presubmit

Change-Id: I8a215bc50d10a93b21f6d2fe7e4ed7267242a50b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3508320
Reviewed-by: Alexandre Courbot <acourbot@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
1 file changed
tree: d8f69a234276416ffa572e309031625d880b7cf9
  1. .cargo/
  2. .devcontainer/
  3. .github/
  4. aarch64/
  5. acpi_tables/
  6. arch/
  7. base/
  8. bin/
  9. bit_field/
  10. ci/
  11. common/
  12. cros_async/
  13. crosvm-fuzz/
  14. crosvm_control/
  15. crosvm_plugin/
  16. devices/
  17. disk/
  18. docs/
  19. fuse/
  20. gpu_display/
  21. hypervisor/
  22. infra/
  23. integration_tests/
  24. io_uring/
  25. kernel_cmdline/
  26. kernel_loader/
  27. kvm/
  28. kvm_sys/
  29. libcras_stub/
  30. libvda/
  31. linux_input_sys/
  32. logo/
  33. net_sys/
  34. net_util/
  35. power_monitor/
  36. protos/
  37. qcow_utils/
  38. resources/
  39. rutabaga_gfx/
  40. seccomp/
  41. src/
  42. system_api_stub/
  43. tests/
  44. third_party/
  45. tools/
  46. tpm2/
  47. tpm2-sys/
  48. usb_sys/
  49. usb_util/
  50. vfio_sys/
  51. vhost/
  52. virtio_sys/
  53. vm_control/
  54. vm_memory/
  55. win_util/
  56. x86_64/
  57. .dockerignore
  58. .gitignore
  59. .gitmodules
  60. .rustfmt.toml
  61. ARCHITECTURE.md
  62. Cargo.toml
  63. CONTRIBUTING.md
  64. LICENSE
  65. navbar.md
  66. OWNERS
  67. README.chromeos.md
  68. README.md
  69. run_tests
  70. rust-toolchain
  71. setup_cros_cargo.sh
  72. test_all
  73. unblocked_terms.txt
README.md

crosvm - The Chrome OS Virtual Machine Monitor

crosvm is a virtual machine monitor (VMM) based on Linux’s KVM hypervisor, with a focus on simplicity, security, and speed. crosvm is intended to run Linux guests, originally as a security boundary for running native applications on the Chrome OS platform. Compared to QEMU, crosvm doesn’t emulate architectures or real hardware, instead concentrating on paravirtualized devices, such as the virtio standard.

crosvm is currently used to run Linux/Android guests on Chrome OS devices.

Logo