diff options
author | vboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f> | 2019-09-10 15:19:39 +0000 |
---|---|---|
committer | vboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f> | 2019-09-10 15:19:39 +0000 |
commit | 89c6c61950d900773bf3f103ecc75f7849837022 (patch) | |
tree | 08b1ae6309a8e3bca76a69acb71d79c19061e861 /src/VBox/VMM/VMMR3/PDMDevice.cpp | |
parent | 6a57d190f37cc949ed470f3e8992e966f77f2a09 (diff) | |
download | VirtualBox-svn-89c6c61950d900773bf3f103ecc75f7849837022.tar.gz |
PDM,Devices: Changed PDM_DEVREG_FLAGS_MSI_X into a registration field giving the max MSI-X vector count config for the device (typically VBOX_MSIX_MAX_ENTRIES). bugref:9218
git-svn-id: https://www.virtualbox.org/svn/vbox/trunk@80704 cfe28804-0f27-0410-a406-dd0f0b0b656f
Diffstat (limited to 'src/VBox/VMM/VMMR3/PDMDevice.cpp')
-rw-r--r-- | src/VBox/VMM/VMMR3/PDMDevice.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/VBox/VMM/VMMR3/PDMDevice.cpp b/src/VBox/VMM/VMMR3/PDMDevice.cpp index 17009665f85..7ba4c9a30f7 100644 --- a/src/VBox/VMM/VMMR3/PDMDevice.cpp +++ b/src/VBox/VMM/VMMR3/PDMDevice.cpp @@ -38,6 +38,7 @@ #include <VBox/version.h> #include <VBox/log.h> +#include <VBox/msi.h> #include <VBox/err.h> #include <iprt/alloc.h> #include <iprt/alloca.h> @@ -761,6 +762,9 @@ static DECLCALLBACK(int) pdmR3DevReg_Register(PPDMDEVREGCB pCallbacks, PCPDMDEVR pReg->u32VersionEnd, PDM_DEVREG_VERSION, pReg->szName)); AssertLogRelMsgReturn(pReg->cMaxPciDevices <= 8, ("%#x (szName=%s)\n", pReg->cMaxPciDevices, pReg->szName), VERR_PDM_INVALID_DEVICE_REGISTRATION); + AssertLogRelMsgReturn(pReg->cMaxMsixVectors <= VBOX_MSIX_MAX_ENTRIES, + ("%#x (szName=%s)\n", pReg->cMaxMsixVectors, pReg->szName), + VERR_PDM_INVALID_DEVICE_REGISTRATION); /* * Check for duplicate and find FIFO entry at the same time. |