mirror of https://github.com/acidanthera/audk.git
OvmfPkg: Introduce PcdXenGrantFrames
Introduce PcdXenGrantFrames to replace a define in XenBusDxe and allow the same value to be used in a different module. The reason for the number of page to be 4 doesn't exist anymore, so simply remove the comment. Signed-off-by: Anthony PERARD <anthony.perard@citrix.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com> Message-Id: <20190813113119.14804-33-anthony.perard@citrix.com>
This commit is contained in:
parent
05480e2fd4
commit
8f39d79d65
|
@ -225,6 +225,9 @@
|
||||||
gUefiOvmfPkgTokenSpaceGuid.PcdXenPvhStartOfDayStructPtr|0x0|UINT32|0x17
|
gUefiOvmfPkgTokenSpaceGuid.PcdXenPvhStartOfDayStructPtr|0x0|UINT32|0x17
|
||||||
gUefiOvmfPkgTokenSpaceGuid.PcdXenPvhStartOfDayStructPtrSize|0x0|UINT32|0x32
|
gUefiOvmfPkgTokenSpaceGuid.PcdXenPvhStartOfDayStructPtrSize|0x0|UINT32|0x32
|
||||||
|
|
||||||
|
## Number of page frames to use for storing grant table entries.
|
||||||
|
gUefiOvmfPkgTokenSpaceGuid.PcdXenGrantFrames|4|UINT32|0x33
|
||||||
|
|
||||||
[PcdsDynamic, PcdsDynamicEx]
|
[PcdsDynamic, PcdsDynamicEx]
|
||||||
gUefiOvmfPkgTokenSpaceGuid.PcdEmuVariableEvent|0|UINT64|2
|
gUefiOvmfPkgTokenSpaceGuid.PcdEmuVariableEvent|0|UINT64|2
|
||||||
gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashVariablesEnable|FALSE|BOOLEAN|0x10
|
gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashVariablesEnable|FALSE|BOOLEAN|0x10
|
||||||
|
|
|
@ -22,8 +22,7 @@
|
||||||
|
|
||||||
#define NR_RESERVED_ENTRIES 8
|
#define NR_RESERVED_ENTRIES 8
|
||||||
|
|
||||||
/* NR_GRANT_FRAMES must be less than or equal to that configured in Xen */
|
#define NR_GRANT_FRAMES (FixedPcdGet32 (PcdXenGrantFrames))
|
||||||
#define NR_GRANT_FRAMES 4
|
|
||||||
#define NR_GRANT_ENTRIES (NR_GRANT_FRAMES * EFI_PAGE_SIZE / sizeof(grant_entry_v1_t))
|
#define NR_GRANT_ENTRIES (NR_GRANT_FRAMES * EFI_PAGE_SIZE / sizeof(grant_entry_v1_t))
|
||||||
|
|
||||||
STATIC grant_entry_v1_t *GrantTable = NULL;
|
STATIC grant_entry_v1_t *GrantTable = NULL;
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
#include <Library/UefiLib.h>
|
#include <Library/UefiLib.h>
|
||||||
#include <Library/DevicePathLib.h>
|
#include <Library/DevicePathLib.h>
|
||||||
#include <Library/DebugLib.h>
|
#include <Library/DebugLib.h>
|
||||||
|
#include <Library/PcdLib.h>
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
|
@ -51,6 +51,7 @@
|
||||||
XenHypercallLib
|
XenHypercallLib
|
||||||
SynchronizationLib
|
SynchronizationLib
|
||||||
PrintLib
|
PrintLib
|
||||||
|
PcdLib
|
||||||
|
|
||||||
[Protocols]
|
[Protocols]
|
||||||
gEfiDriverBindingProtocolGuid
|
gEfiDriverBindingProtocolGuid
|
||||||
|
@ -59,3 +60,5 @@
|
||||||
gXenBusProtocolGuid
|
gXenBusProtocolGuid
|
||||||
gXenIoProtocolGuid
|
gXenIoProtocolGuid
|
||||||
|
|
||||||
|
[FixedPcd]
|
||||||
|
gUefiOvmfPkgTokenSpaceGuid.PcdXenGrantFrames
|
||||||
|
|
Loading…
Reference in New Issue