diff options
author | Isaku Yamahata <yamahata@valinux.co.jp> | 2010-12-24 12:14:14 +0900 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2010-12-24 10:35:34 +0200 |
commit | 2ae63bda50ec864a3e61d375b53c8e453ad50140 (patch) | |
tree | 53a8829d9a0a6512f96c42ecd1967456c7963fad /hw/pci-stub.c | |
parent | f3006dd1e60af3765c501a082d621f947d6e5974 (diff) | |
download | qemu-2ae63bda50ec864a3e61d375b53c8e453ad50140.zip qemu-2ae63bda50ec864a3e61d375b53c8e453ad50140.tar.gz qemu-2ae63bda50ec864a3e61d375b53c8e453ad50140.tar.bz2 |
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 674591d..c5a0aa8 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); +} |