summaryrefslogtreecommitdiffstats
path: root/hmp-commands.hx
diff options
context:
space:
mode:
authorIsaku Yamahata2010-12-24 04:14:14 +0100
committerMichael S. Tsirkin2010-12-24 09:35:34 +0100
commit2ae63bda50ec864a3e61d375b53c8e453ad50140 (patch)
tree53a8829d9a0a6512f96c42ecd1967456c7963fad /hmp-commands.hx
parentpci: introduce a helper function to convert qdev id to PCIDevice (diff)
downloadqemu-2ae63bda50ec864a3e61d375b53c8e453ad50140.tar.gz
qemu-2ae63bda50ec864a3e61d375b53c8e453ad50140.tar.xz
qemu-2ae63bda50ec864a3e61d375b53c8e453ad50140.zip
pcie/aer: glue aer error injection into qemu monitor
introduce pcie_aer_inject_error command. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hmp-commands.hx')
-rw-r--r--hmp-commands.hx25
1 files changed, 25 insertions, 0 deletions
diff --git a/hmp-commands.hx b/hmp-commands.hx
index dd3db36108..8d84ddc62a 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 "
+ "<error_status> [<tlp header> [<tlp header prefix>]]",
+ .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"
+ "<id> = qdev device id\n\t\t\t"
+ "<error_status> = error string or 32bit\n\t\t\t"
+ "<tlb header> = 32bit x 4\n\t\t\t"
+ "<tlb header prefix> = 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]",