mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-04-09 05:23:43 +00:00
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:
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user