runtime-rs: s/dbg_monitor_socket/extra_monitor_socket/g

Let's align this with what's been already used for the go runtime.

Signed-off-by: Fabiano Fidêncio <ffidencio@nvidia.com>
This commit is contained in:
Fabiano Fidêncio
2026-04-07 10:13:38 +02:00
parent b32c5234f4
commit a6e891e733
6 changed files with 9 additions and 9 deletions

View File

@@ -708,10 +708,10 @@ pub struct DebugInfo {
///
/// Example usage in configuration:
/// ```toml
/// dbg_monitor_socket = "hmp"
/// extra_monitor_socket = "hmp"
/// ```
#[serde(default)]
pub dbg_monitor_socket: String,
#[serde(default, alias = "dbg_monitor_socket")]
pub extra_monitor_socket: String,
}
impl DebugInfo {

View File

@@ -339,7 +339,7 @@ enable_debug = false
#
# If set to the empty string "", no extra monitor socket is added. This is
# the default.
dbg_monitor_socket = ""
extra_monitor_socket = ""
# Disable the customizations done in the runtime when it detects
# that it is running on top a VMM. This will result in the runtime

View File

@@ -335,7 +335,7 @@ enable_debug = false
#
# If set to the empty string "", no extra monitor socket is added. This is
# the default.
dbg_monitor_socket = ""
extra_monitor_socket = ""
# Disable the customizations done in the runtime when it detects
# that it is running on top a VMM. This will result in the runtime

View File

@@ -392,7 +392,7 @@ disable_vhost_net = false
#
# If set to the empty string "", no extra monitor socket is added. This is
# the default.
#dbg_monitor_socket = "hmp"
extra_monitor_socket = ""
#
# Default entropy source.

View File

@@ -349,7 +349,7 @@ enable_debug = false
#
# If set to the empty string "", no extra monitor socket is added. This is
# the default.
dbg_monitor_socket = ""
extra_monitor_socket = ""
# Disable the customizations done in the runtime when it detects
# that it is running on top a VMM. This will result in the runtime

View File

@@ -2248,8 +2248,8 @@ impl<'a> QemuCmdLine<'a> {
qemu_cmd_line.add_iommu();
}
if config.debug_info.enable_debug && !config.debug_info.dbg_monitor_socket.is_empty() {
qemu_cmd_line.add_monitor(&config.debug_info.dbg_monitor_socket)?;
if config.debug_info.enable_debug && !config.debug_info.extra_monitor_socket.is_empty() {
qemu_cmd_line.add_monitor(&config.debug_info.extra_monitor_socket)?;
}
qemu_cmd_line.add_rtc();