mirror of https://gitee.com/openkylin/qemu.git
pcie_aer: adjust do_pcie_aer_inejct_error -> do_pcie_aer_inject_error
This function name is a bit wrong. Although it doesn't impact function, it is a bit necessary that we should fixup it. Signed-off-by: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
This commit is contained in:
parent
66a0a2cb81
commit
1f3392b7b3
|
@ -923,7 +923,7 @@ ETEXI
|
||||||
"<tlb header> = 32bit x 4\n\t\t\t"
|
"<tlb header> = 32bit x 4\n\t\t\t"
|
||||||
"<tlb header prefix> = 32bit x 4",
|
"<tlb header prefix> = 32bit x 4",
|
||||||
.user_print = pcie_aer_inject_error_print,
|
.user_print = pcie_aer_inject_error_print,
|
||||||
.mhandler.cmd_new = do_pcie_aer_inejct_error,
|
.mhandler.cmd_new = do_pcie_aer_inject_error,
|
||||||
},
|
},
|
||||||
|
|
||||||
STEXI
|
STEXI
|
||||||
|
|
|
@ -34,7 +34,7 @@ static void pci_error_message(Monitor *mon)
|
||||||
monitor_printf(mon, "PCI devices not supported\n");
|
monitor_printf(mon, "PCI devices not supported\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
int do_pcie_aer_inejct_error(Monitor *mon,
|
int do_pcie_aer_inject_error(Monitor *mon,
|
||||||
const QDict *qdict, QObject **ret_data)
|
const QDict *qdict, QObject **ret_data)
|
||||||
{
|
{
|
||||||
pci_error_message(mon);
|
pci_error_message(mon);
|
||||||
|
|
|
@ -951,7 +951,7 @@ static int pcie_aer_parse_error_string(const char *error_name,
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
int do_pcie_aer_inejct_error(Monitor *mon,
|
int do_pcie_aer_inject_error(Monitor *mon,
|
||||||
const QDict *qdict, QObject **ret_data)
|
const QDict *qdict, QObject **ret_data)
|
||||||
{
|
{
|
||||||
const char *id = qdict_get_str(qdict, "id");
|
const char *id = qdict_get_str(qdict, "id");
|
||||||
|
|
2
sysemu.h
2
sysemu.h
|
@ -148,7 +148,7 @@ void do_pci_device_hot_remove(Monitor *mon, const QDict *qdict);
|
||||||
|
|
||||||
/* pcie aer error injection */
|
/* pcie aer error injection */
|
||||||
void pcie_aer_inject_error_print(Monitor *mon, const QObject *data);
|
void pcie_aer_inject_error_print(Monitor *mon, const QObject *data);
|
||||||
int do_pcie_aer_inejct_error(Monitor *mon,
|
int do_pcie_aer_inject_error(Monitor *mon,
|
||||||
const QDict *qdict, QObject **ret_data);
|
const QDict *qdict, QObject **ret_data);
|
||||||
|
|
||||||
/* serial ports */
|
/* serial ports */
|
||||||
|
|
Loading…
Reference in New Issue