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") -- 1.7.1 _______________________________________________ Virt-test-devel mailing list [email protected] https://www.redhat.com/mailman/listinfo/virt-test-devel
