qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

pcie: Set the "link active" in the link status register

Some firmwares can test that and assume the device hasn't come
up if that bit isn't set

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>

authored by

Benjamin Herrenschmidt and committed by
Michael S. Tsirkin
b2101eae 412a8245

+1 -1
+1 -1
hw/pci/pcie.c
··· 78 78 PCI_EXP_LNK_LS_25); 79 79 80 80 pci_set_word(exp_cap + PCI_EXP_LNKSTA, 81 - PCI_EXP_LNK_MLW_1 | PCI_EXP_LNK_LS_25); 81 + PCI_EXP_LNK_MLW_1 | PCI_EXP_LNK_LS_25 |PCI_EXP_LNKSTA_DLLLA); 82 82 83 83 pci_set_long(exp_cap + PCI_EXP_DEVCAP2, 84 84 PCI_EXP_DEVCAP2_EFF | PCI_EXP_DEVCAP2_EETLPP);