vmm: Deprecate MemoryZoneConfig::file

Remove from the documentation and API definition but continue support
using the field (with a deprecation warning.)

See: #4837

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford
2022-12-12 13:57:00 +00:00
parent 51307dd509
commit 9fb0274479
4 changed files with 6 additions and 29 deletions
@@ -668,8 +668,6 @@ components:
type: integer
format: int64
default: 512 MB
file:
type: string
mergeable:
type: boolean
default: false
+4
View File
@@ -2015,6 +2015,10 @@ impl VmConfig {
if let Some(zones) = &self.memory.zones {
for zone in zones.iter() {
if zone.file.is_some() {
warn!("MemoryZoneConfig::file is deprecated and will be removed in future release (#4837)");
}
let id = zone.id.clone();
Self::validate_identifier(&mut id_list, &Some(id))?;
}