lib: fix profile override to not require the custom deserialization fields

This commit is contained in:
Matt Bilker
2022-05-08 06:47:09 +00:00
parent cf56585fbb
commit 4db1644c09

View File

@@ -196,11 +196,11 @@ struct VgpuProfileOverride<'a> {
multi_vgpu_supported: Option<u32>,
pci_id: Option<u64>,
pci_device_id: Option<u64>,
#[serde(with = "human_number")]
#[serde(default, with = "human_number")]
framebuffer: Option<u64>,
#[serde(with = "human_number")]
#[serde(default, with = "human_number")]
mappable_video_size: Option<u64>,
#[serde(with = "human_number")]
#[serde(default, with = "human_number")]
framebuffer_reservation: Option<u64>,
encoder_capacity: Option<u64>,
bar1_length: Option<u64>,