diff options
author | Isaku Yamahata | 2010-12-24 04:14:14 +0100 |
---|---|---|
committer | Michael S. Tsirkin | 2010-12-24 09:35:34 +0100 |
commit | 2ae63bda50ec864a3e61d375b53c8e453ad50140 (patch) | |
tree | 53a8829d9a0a6512f96c42ecd1967456c7963fad /hw/pci-stub.c | |
parent | pci: introduce a helper function to convert qdev id to PCIDevice (diff) | |
download | qemu-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 'hw/pci-stub.c')
-rw-r--r-- | hw/pci-stub.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/hw/pci-stub.c b/hw/pci-stub.c index 674591d913..c5a0aa8979 100644 --- a/hw/pci-stub.c +++ b/hw/pci-stub.c @@ -18,6 +18,7 @@ * with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include "sysemu.h" #include "monitor.h" #include "pci.h" @@ -35,3 +36,15 @@ void do_pci_info_print(Monitor *mon, const QObject *data) { pci_error_message(mon); } + +int do_pcie_aer_inejct_error(Monitor *mon, + const QDict *qdict, QObject **ret_data) +{ + pci_error_message(mon); + return -ENOSYS; +} + +void pcie_aer_inject_error_print(Monitor *mon, const QObject *data) +{ + pci_error_message(mon); +} |