mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43: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
|
@ -74,6 +74,7 @@ enum {
|
|||
VIRTIO_PCI_FLAG_PAGE_PER_VQ_BIT,
|
||||
VIRTIO_PCI_FLAG_ATS_BIT,
|
||||
VIRTIO_PCI_FLAG_INIT_DEVERR_BIT,
|
||||
VIRTIO_PCI_FLAG_INIT_LNKCTL_BIT,
|
||||
};
|
||||
|
||||
/* Need to activate work-arounds for buggy guests at vmstate load. */
|
||||
|
@ -104,6 +105,9 @@ enum {
|
|||
/* Init error enabling flags */
|
||||
#define VIRTIO_PCI_FLAG_INIT_DEVERR (1 << VIRTIO_PCI_FLAG_INIT_DEVERR_BIT)
|
||||
|
||||
/* Init Link Control register */
|
||||
#define VIRTIO_PCI_FLAG_INIT_LNKCTL (1 << VIRTIO_PCI_FLAG_INIT_LNKCTL_BIT)
|
||||
|
||||
typedef struct {
|
||||
MSIMessage msg;
|
||||
int virq;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue