From 2ae63bda50ec864a3e61d375b53c8e453ad50140 Mon Sep 17 00:00:00 2001 From: Isaku Yamahata Date: Fri, 24 Dec 2010 12:14:14 +0900 Subject: pcie/aer: glue aer error injection into qemu monitor introduce pcie_aer_inject_error command. Signed-off-by: Isaku Yamahata Signed-off-by: Michael S. Tsirkin --- hmp-commands.hx | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'hmp-commands.hx') diff --git a/hmp-commands.hx b/hmp-commands.hx index dd3db36..8d84ddc 100644 --- a/hmp-commands.hx +++ b/hmp-commands.hx @@ -873,6 +873,31 @@ Hot remove PCI device. ETEXI { + .name = "pcie_aer_inject_error", + .args_type = "advisory_non_fatal:-a,correctable:-c," + "id:s,error_status:s," + "header0:i?,header1:i?,header2:i?,header3:i?," + "prefix0:i?,prefix1:i?,prefix2:i?,prefix3:i?", + .params = "[-a] [-c] id " + " [ []]", + .help = "inject pcie aer error\n\t\t\t" + " -a for advisory non fatal error\n\t\t\t" + " -c for correctable error\n\t\t\t" + " = qdev device id\n\t\t\t" + " = error string or 32bit\n\t\t\t" + " = 32bit x 4\n\t\t\t" + " = 32bit x 4", + .user_print = pcie_aer_inject_error_print, + .mhandler.cmd_new = do_pcie_aer_inejct_error, + }, + +STEXI +@item pcie_aer_inject_error +@findex pcie_aer_inject_error +Inject PCIe AER error +ETEXI + + { .name = "host_net_add", .args_type = "device:s,opts:s?", .params = "tap|user|socket|vde|dump [options]", -- cgit v1.1