cloud-hypervisor/hypervisor/src/mshv
Jinank Jain a64ba04e78 pci: Fix clippy warning while comparing raw pointers
Use the builtin function instead of using `==` operator.

Warning from the beta compiler:

error: use `std::ptr::eq` when comparing raw pointers
--> pci/src/vfio.rs:1616:24

if host_addr == libc::MAP_FAILED {
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    help: try: `std::ptr::eq(host_addr, libc::MAP_FAILED)`

 = help: for further information visit
 = https://rust-lang.github.io/rust-clippy/master/index.html#ptr_eq
 = note: `-D clippy::ptr-eq` implied by `-D warnings`
 = help: to override `-D warnings` add `#[allow(clippy::ptr_eq)]`

Signed-off-by: Jinank Jain <jinankjain@microsoft.com>
2025-04-03 13:11:49 +00:00
..
aarch64 hypervisor: Add a basic implementation of MshvVcpuState for aarch64 2025-03-06 11:14:16 +00:00
x86_64 hypervisor: mshv: handle cross-page access in emulator 2025-03-17 21:40:24 +00:00
mod.rs pci: Fix clippy warning while comparing raw pointers 2025-04-03 13:11:49 +00:00
snp_constants.rs hypervisor: mshv: modify GuestRequest handling for CVM 2024-12-11 21:06:06 +00:00