Skip to content

Commit 184daee

Browse files
committed
fix: drop cfg(target_arch) from create_guest_memfd
The KVM docs do not list this ioctls as restricted to any specific architecture. It is instead discoverable via capabilities, and can theoretically work on any architecture (provided the architecture has a VM type that support guest private memory). Signed-off-by: Patrick Roy <roypat@amazon.co.uk>
1 parent 551911a commit 184daee

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/ioctls/vm.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1474,7 +1474,6 @@ impl VmFd {
14741474
///
14751475
/// let guest_memfd = vm.create_guest_memfd(gmem).unwrap();
14761476
/// ```
1477-
#[cfg(any(target_arch = "x86_64", target_arch = "aarch64"))]
14781477
pub fn create_guest_memfd(&self, gmem: kvm_create_guest_memfd) -> Result<RawFd> {
14791478
// SAFETY: Safe because we know that our file is a VM fd, we know the kernel will only
14801479
// read the correct amount of memory from our pointer, and we verify the return result.

0 commit comments

Comments
 (0)