mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-08-24 00:41:16 +00:00
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:
parent
0e7d5d2761
commit
9ba06ce5f5
@ -1270,6 +1270,10 @@ impl MemoryManager {
|
|||||||
size: usize,
|
size: usize,
|
||||||
) -> Result<FileOffset, Error> {
|
) -> Result<FileOffset, Error> {
|
||||||
if backing_file.is_dir() {
|
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.
|
// Override file offset as it does not apply in this case.
|
||||||
info!(
|
info!(
|
||||||
"Ignoring file offset since the backing file is a \
|
"Ignoring file offset since the backing file is a \
|
||||||
|
Loading…
Reference in New Issue
Block a user