]> git.proxmox.com Git - mirror_qemu.git/commit
igb: Add Function Level Reset to PF and VF
authorCédric Le Goater <clg@redhat.com>
Mon, 23 Oct 2023 15:45:07 +0000 (17:45 +0200)
committerJason Wang <jasowang@redhat.com>
Mon, 13 Nov 2023 07:33:37 +0000 (15:33 +0800)
commitd90014fc337ab77f37285b1a30fd4f545056be0a
tree4e157b53dfa73bbe25b9922e592dd7729789c73e
parentfe73674af1e80ad7375e627563042395a1a746b6
igb: Add Function Level Reset to PF and VF

The Intel 82576EB GbE Controller say that the Physical and Virtual
Functions support Function Level Reset. Add the capability to the PF
device model using device property "x-pcie-flr-init" which is "on" by
default and "off" for machines <= 8.1 to preserve compatibility.

The FLR capability of the VF model is defined according to the FLR
property of the PF, this to avoid adding an extra compatibility
property.

Cc: Sriram Yagnaraman <sriram.yagnaraman@est.tech>
Fixes: 3a977deebe6b ("Intrdocue igb device emulation")
Reviewed-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Tested-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Signed-off-by: Cédric Le Goater <clg@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
hw/core/machine.c
hw/net/igb.c
hw/net/igbvf.c