Dne 16.4.2013 06:53, [email protected] napsal(a):
From: Xiaoqing Wei <[email protected]>

both HMP and QMP
Changlog:
use self.cmd() on QMP monitor

Signed-off-by: Xiaoqing Wei <[email protected]>
---
  virttest/qemu_monitor.py |   14 ++++++++++++++
  1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/virttest/qemu_monitor.py b/virttest/qemu_monitor.py
index d58aabf..2cd3ff6 100644
--- a/virttest/qemu_monitor.py
+++ b/virttest/qemu_monitor.py
@@ -697,6 +697,13 @@ class HumanMonitor(Monitor):
          return self.cmd("getfd %s" % name, fd=fd)


+    def nmi(self):
+        """
+        inject a NMI into VM
+        """
+        return self.cmd("nmi")
+
+
  class QMPMonitor(Monitor):
      """
      Wraps QMP monitor commands.
@@ -1335,3 +1342,10 @@ class QMPMonitor(Monitor):
          """
          args = {"fdname": name}
          return self.cmd("getfd", args, fd=fd)
+
+
+    def nmi(self):
+        """
+        inject a NMI into VM
+        """
+        return self.cmd("inject-nmi")

Acked-by: Lukáš Doktor <[email protected]>

_______________________________________________
Virt-test-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/virt-test-devel

Reply via email to