You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
verification: add NonNull<T> specification for Verus
Recent changes introduced NonNull<T> usage in SlabPage and VirtAddr,
which caused Verus verification to fail because NonNull is not
supported by default in Verus.
Add external type specification for core::ptr::NonNull<T> following
the vstd pattern used for similar types like ManuallyDrop. The spec
uses accept_recursive_types to allow self-referential structures like
SlabPage, and provides an assume_specification for as_ptr with a
non-null guarantee.
Also mark From<NonNull<T>> for VirtAddr as external_body and fix the
allocate_slab_page spec to reference the const generic N instead of
the undefined variable item_size.
Closescoconut-svsm#938
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
0 commit comments