File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -1406,9 +1406,7 @@ impl VmFd {
1406
1406
/// use kvm_ioctls::Cap;
1407
1407
///
1408
1408
/// let kvm = Kvm::new().unwrap();
1409
- /// assert!(
1410
- /// (kvm.check_extension_int(Cap::MemoryAttributes) as u32 & KVM_MEMORY_ATTRIBUTE_PRIVATE) == 0
1411
- /// );
1409
+ /// assert!(kvm.check_extension_int(Cap::MaxVcpus) > 0);
1412
1410
/// ```
1413
1411
pub fn check_extension_int ( & self , c : Cap ) -> i32 {
1414
1412
self . check_extension_raw ( c as c_ulong )
@@ -1431,7 +1429,7 @@ impl VmFd {
1431
1429
/// use kvm_ioctls::Cap;
1432
1430
///
1433
1431
/// let kvm = Kvm::new().unwrap();
1434
- /// assert!(kvm.check_extension_raw(Cap::GuestMemfd as c_ulong) > 0);
1432
+ /// assert!(kvm.check_extension_raw(Cap::MaxVcpus as c_ulong) > 0);
1435
1433
/// ```
1436
1434
pub fn check_extension_raw ( & self , c : c_ulong ) -> i32 {
1437
1435
// SAFETY: Safe because we know that our file is a KVM fd.
You can’t perform that action at this time.
0 commit comments