blob: 026f26f6fd6a9ebda3700ac1ce70a305f98de656 [file] [log] [blame]
// Copyright 2023 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
use schemars::JsonSchema;
use serde::{Deserialize, Serialize};
use crate::common::FeatureControl;
fn default_allowed() -> FeatureControl {
FeatureControl::Allowed
}
/// Platform configuration options for paravirtualization.
#[derive(Debug, Default, Deserialize, Serialize, PartialEq, JsonSchema)]
#[serde(deny_unknown_fields)]
pub struct PlatformParavirtualizationConfig {
#[serde(default = "default_allowed")]
pub enabled: FeatureControl,
}