mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: Report enabled features from the '/vmm.ping' endpoint
Fixes: #5817 Signed-off-by: Bo Chen <chen.bo@intel.com>
This commit is contained in:
@@ -293,6 +293,29 @@ impl Serialize for PciDeviceInfo {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn feature_list() -> Vec<String> {
|
||||
vec![
|
||||
#[cfg(feature = "dbus_api")]
|
||||
"dbus_api".to_string(),
|
||||
#[cfg(feature = "dhat-heap")]
|
||||
"dhat-heap".to_string(),
|
||||
#[cfg(feature = "guest_debug")]
|
||||
"guest_debug".to_string(),
|
||||
#[cfg(feature = "io_uring")]
|
||||
"io_uring".to_string(),
|
||||
#[cfg(feature = "kvm")]
|
||||
"kvm".to_string(),
|
||||
#[cfg(feature = "mshv")]
|
||||
"mshv".to_string(),
|
||||
#[cfg(feature = "sev_snp")]
|
||||
"sev_snp".to_string(),
|
||||
#[cfg(feature = "tdx")]
|
||||
"tdx".to_string(),
|
||||
#[cfg(feature = "tracing")]
|
||||
"tracing".to_string(),
|
||||
]
|
||||
}
|
||||
|
||||
pub fn start_event_monitor_thread(
|
||||
mut monitor: event_monitor::Monitor,
|
||||
seccomp_action: &SeccompAction,
|
||||
@@ -931,6 +954,7 @@ impl Vmm {
|
||||
build_version,
|
||||
version,
|
||||
pid: std::process::id() as i64,
|
||||
features: feature_list(),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user