mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-04 23:24:56 +00:00
hv: add max payload to vrp
It seems important that passthru device's max payload settings match the settings on the native device otherwise passthru device may not work. So we have to set vrp's max payload capacity as native root port otherwise we may accidentally change passthru device's max payload since during guest OS's pci device enumeration, pass-thru device will renegotiate its max payload's setting with vrp. Tracked-On: #5915 Signed-off-by: Rong Liu <rong.l.liu@intel.com> Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com>
This commit is contained in:
@@ -185,6 +185,7 @@
|
||||
#define PCIY_PCIE 0x10U
|
||||
#define PCIR_PCIE_DEVCAP 0x04U
|
||||
#define PCIR_PCIE_DEVCTRL 0x08U
|
||||
#define PCIM_PCIE_DEV_CTRL_MAX_PAYLOAD 0x00E0U
|
||||
#define PCIM_PCIE_FLRCAP (0x1U << 28U)
|
||||
#define PCIM_PCIE_FLR (0x1U << 15U)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user