You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
112 lines
3.5 KiB
112 lines
3.5 KiB
From a29e30928c9892e9a550af0b8d4df398606fc013 Mon Sep 17 00:00:00 2001
|
|
Message-ID: <a29e30928c9892e9a550af0b8d4df398606fc013.1787144196.git.jdenemar@redhat.com>
|
|
From: Peter Krempa <pkrempa@redhat.com>
|
|
Date: Mon, 20 Jul 2026 13:31:39 +0200
|
|
Subject: [PATCH] qemu: monitor: Remove support for 'watchdog-set-action'
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
We now use 'set-action' instead.
|
|
|
|
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
|
|
Reviewed-by: Ján Tomko <jtomko@redhat.com>
|
|
(cherry picked from commit 8365c6679fa65b66b85da2773547515a40ae1a8f)
|
|
|
|
https://redhat.atlassian.net/browse/RHEL-242545
|
|
---
|
|
src/qemu/qemu_monitor.c | 12 ------------
|
|
src/qemu/qemu_monitor.h | 4 ----
|
|
src/qemu/qemu_monitor_json.c | 22 ----------------------
|
|
src/qemu/qemu_monitor_json.h | 5 -----
|
|
4 files changed, 43 deletions(-)
|
|
|
|
diff --git a/src/qemu/qemu_monitor.c b/src/qemu/qemu_monitor.c
|
|
index baa78dd6fe..85e97562ad 100644
|
|
--- a/src/qemu/qemu_monitor.c
|
|
+++ b/src/qemu/qemu_monitor.c
|
|
@@ -3965,18 +3965,6 @@ qemuMonitorMemoryDeviceSizeChangeFree(qemuMonitorMemoryDeviceSizeChangePtr info)
|
|
}
|
|
|
|
|
|
-int
|
|
-qemuMonitorSetWatchdogAction(qemuMonitor *mon,
|
|
- const char *action)
|
|
-{
|
|
- VIR_DEBUG("watchdogAction=%s", action);
|
|
-
|
|
- QEMU_CHECK_MONITOR(mon);
|
|
-
|
|
- return qemuMonitorJSONSetWatchdogAction(mon, action);
|
|
-}
|
|
-
|
|
-
|
|
/**
|
|
* qemuMonitorBlockdevCreate:
|
|
* @mon: monitor object
|
|
diff --git a/src/qemu/qemu_monitor.h b/src/qemu/qemu_monitor.h
|
|
index c2afb580e4..3298095e9c 100644
|
|
--- a/src/qemu/qemu_monitor.h
|
|
+++ b/src/qemu/qemu_monitor.h
|
|
@@ -1640,10 +1640,6 @@ qemuMonitorSetBlockThreshold(qemuMonitor *mon,
|
|
const char *nodename,
|
|
unsigned long long threshold);
|
|
|
|
-int
|
|
-qemuMonitorSetWatchdogAction(qemuMonitor *mon,
|
|
- const char *action);
|
|
-
|
|
int
|
|
qemuMonitorBlockdevCreate(qemuMonitor *mon,
|
|
const char *jobname,
|
|
diff --git a/src/qemu/qemu_monitor_json.c b/src/qemu/qemu_monitor_json.c
|
|
index 28f7d93834..57e4b91874 100644
|
|
--- a/src/qemu/qemu_monitor_json.c
|
|
+++ b/src/qemu/qemu_monitor_json.c
|
|
@@ -7873,28 +7873,6 @@ qemuMonitorJSONSetBlockThreshold(qemuMonitor *mon,
|
|
}
|
|
|
|
|
|
-int
|
|
-qemuMonitorJSONSetWatchdogAction(qemuMonitor *mon,
|
|
- const char *action)
|
|
-{
|
|
- g_autoptr(virJSONValue) cmd = NULL;
|
|
- g_autoptr(virJSONValue) reply = NULL;
|
|
-
|
|
- if (!(cmd = qemuMonitorJSONMakeCommand("watchdog-set-action",
|
|
- "s:action", action,
|
|
- NULL)))
|
|
- return -1;
|
|
-
|
|
- if (qemuMonitorJSONCommand(mon, cmd, &reply) < 0)
|
|
- return -1;
|
|
-
|
|
- if (qemuMonitorJSONCheckError(cmd, reply) < 0)
|
|
- return -1;
|
|
-
|
|
- return 0;
|
|
-}
|
|
-
|
|
-
|
|
int
|
|
qemuMonitorJSONBlockdevCreate(qemuMonitor *mon,
|
|
const char *jobname,
|
|
diff --git a/src/qemu/qemu_monitor_json.h b/src/qemu/qemu_monitor_json.h
|
|
index f4c093d717..3b7b04a11d 100644
|
|
--- a/src/qemu/qemu_monitor_json.h
|
|
+++ b/src/qemu/qemu_monitor_json.h
|
|
@@ -633,11 +633,6 @@ qemuMonitorJSONSetBlockThreshold(qemuMonitor *mon,
|
|
unsigned long long threshold)
|
|
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2);
|
|
|
|
-int
|
|
-qemuMonitorJSONSetWatchdogAction(qemuMonitor *mon,
|
|
- const char *action)
|
|
- ATTRIBUTE_NONNULL(1);
|
|
-
|
|
int
|
|
qemuMonitorJSONBlockdevCreate(qemuMonitor *mon,
|
|
const char *jobname,
|
|
--
|
|
2.55.0
|
|
|