Skip to content

Commit 6954c85

Browse files
roypatShadowCurse
authored andcommitted
Support guest_memfd related capabilities
Add KVM_CAP_{GUEST_MEMFD, USER_MEMORY2, MEMORY_ATTRIBUTES} to the `Cap` enum, so they can be used with `VmFd::check_extension`. Signed-off-by: Patrick Roy <[email protected]>
1 parent 789db44 commit 6954c85

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
## Upcoming Release
44

5+
### Added
6+
7+
- [[#288](https://github.com/rust-vmm/kvm-ioctls/pull/288)]: Introduce `Cap::GuestMemfd`, `Cap::MemoryAttributes` and
8+
`Cap::UserMemory2` capabilities enum variants for use with `VmFd::check_extension`.
9+
510
## v0.19.0
611

712
### Added

src/cap.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,4 +160,7 @@ pub enum Cap {
160160
ExitHypercall = KVM_CAP_EXIT_HYPERCALL,
161161
#[cfg(target_arch = "x86_64")]
162162
MemoryFaultInfo = KVM_CAP_MEMORY_FAULT_INFO,
163+
UserMemory2 = KVM_CAP_USER_MEMORY2,
164+
GuestMemfd = KVM_CAP_GUEST_MEMFD,
165+
MemoryAttributes = KVM_CAP_MEMORY_ATTRIBUTES,
163166
}

0 commit comments

Comments
 (0)