From: Isaku Yamahata yamahata@valinux.co.jp
enable SERR of normal device for AER.
Reviewed-by: Paolo Bonzini pbonzini@redhat.com Signed-off-by: Isaku Yamahata yamahata@valinux.co.jp Signed-off-by: Jason Baron jbaron@redhat.com --- src/pciinit.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/pciinit.c b/src/pciinit.c index d5d01d2..565a0e4 100644 --- a/src/pciinit.c +++ b/src/pciinit.c @@ -215,7 +215,8 @@ static void pci_bios_init_device(struct pci_device *pci) pci_init_device(pci_device_tbl, pci, NULL);
/* enable memory mappings */ - pci_config_maskw(bdf, PCI_COMMAND, 0, PCI_COMMAND_IO | PCI_COMMAND_MEMORY); + pci_config_maskw(bdf, PCI_COMMAND, 0, + PCI_COMMAND_IO | PCI_COMMAND_MEMORY | PCI_COMMAND_SERR); }
static void pci_bios_init_devices(void)