mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
hw/virtio: fix Link Control Register for PCI Express virtio devices
Make several Link Control Register flags writable to conform with the PCI Express spec. Signed-off-by: Marcel Apfelbaum <marcel@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
c2cabb3422
commit
d584f1b9ca
5 changed files with 33 additions and 0 deletions
|
@ -26,6 +26,10 @@
|
|||
.driver = "virtio-pci",\
|
||||
.property = "x-pcie-deverr-init",\
|
||||
.value = "off",\
|
||||
},{\
|
||||
.driver = "virtio-pci",\
|
||||
.property = "x-pcie-lnkctl-init",\
|
||||
.value = "off",\
|
||||
},
|
||||
|
||||
#define HW_COMPAT_2_7 \
|
||||
|
|
|
@ -96,6 +96,9 @@ uint8_t pcie_cap_flags_get_vector(PCIDevice *dev);
|
|||
void pcie_cap_deverr_init(PCIDevice *dev);
|
||||
void pcie_cap_deverr_reset(PCIDevice *dev);
|
||||
|
||||
void pcie_cap_lnkctl_init(PCIDevice *dev);
|
||||
void pcie_cap_lnkctl_reset(PCIDevice *dev);
|
||||
|
||||
void pcie_cap_slot_init(PCIDevice *dev, uint16_t slot);
|
||||
void pcie_cap_slot_reset(PCIDevice *dev);
|
||||
void pcie_cap_slot_write_config(PCIDevice *dev,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue