vmm: memory_manager: Deprecate directory backing for memory

This functionality has been obsoleted by our native support for
hugepages and shared memory.

See: #5082

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford 2023-01-10 10:34:50 +00:00
parent 0e7d5d2761
commit 9ba06ce5f5

View File

@ -1270,6 +1270,10 @@ impl MemoryManager {
size: usize,
) -> Result<FileOffset, Error> {
if backing_file.is_dir() {
warn!(
"Using a directory as a backing file for memory is deprecated \
and will be removed in a future release. (See #5082)"
);
// Override file offset as it does not apply in this case.
info!(
"Ignoring file offset since the backing file is a \