mirror of https://github.com/acidanthera/audk.git
OvmfPkg/OvmfXen: make "PcdPciDisableBusEnumeration" Fixed-at-Build
The OvmfXen platform specifies the dynamic access method for "PcdPciDisableBusEnumeration" needlessly. After the DSC file sets the PCD to TRUE by default, the InitializeXen() function in XenPlatformPei superfluously sets the PCD to TRUE again. There are no other writes to the PCD in the platform. Make the PCD Fixed-At-Build, and remove the access (in fact, the whole InitializeXen() function) from XenPlatformPei. Cc: Anthony Perard <anthony.perard@citrix.com> Cc: Ard Biesheuvel <ardb+tianocore@kernel.org> Cc: Jordan Justen <jordan.l.justen@intel.com> Cc: Julien Grall <julien@xen.org> Cc: Philippe Mathieu-Daudé <philmd@redhat.com> Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2122 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Message-Id: <20210526201446.12554-20-lersek@redhat.com> Reviewed-by: Ard Biesheuvel <ardb@kernel.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
This commit is contained in:
parent
d491c88a0c
commit
e7641171b6
|
@ -360,6 +360,7 @@
|
|||
!endif
|
||||
|
||||
[PcdsFixedAtBuild]
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|TRUE
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
|
||||
gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10
|
||||
|
@ -461,7 +462,6 @@
|
|||
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|TRUE
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|800
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|600
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable|FALSE
|
||||
|
|
|
@ -447,7 +447,6 @@ InitializeXenPlatform (
|
|||
|
||||
InitializeRamRegions ();
|
||||
|
||||
InitializeXen ();
|
||||
CalibrateLapicTimer ();
|
||||
|
||||
if (mBootMode != BOOT_ON_S3_RESUME) {
|
||||
|
|
|
@ -91,11 +91,6 @@ XenConnect (
|
|||
VOID
|
||||
);
|
||||
|
||||
EFI_STATUS
|
||||
InitializeXen (
|
||||
VOID
|
||||
);
|
||||
|
||||
BOOLEAN
|
||||
XenDetect (
|
||||
VOID
|
||||
|
|
|
@ -372,26 +372,6 @@ XenPublishRamRegions (
|
|||
}
|
||||
|
||||
|
||||
/**
|
||||
Perform Xen PEI initialization.
|
||||
|
||||
@return EFI_SUCCESS Xen initialized successfully
|
||||
@return EFI_NOT_FOUND Not running under Xen
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
InitializeXen (
|
||||
VOID
|
||||
)
|
||||
{
|
||||
RETURN_STATUS PcdStatus;
|
||||
|
||||
PcdStatus = PcdSetBoolS (PcdPciDisableBusEnumeration, TRUE);
|
||||
ASSERT_RETURN_ERROR (PcdStatus);
|
||||
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
|
||||
EFI_STATUS
|
||||
PhysicalAddressIdentityMapping (
|
||||
IN EFI_PHYSICAL_ADDRESS AddressToMap
|
||||
|
|
|
@ -81,7 +81,6 @@
|
|||
gUefiOvmfPkgTokenSpaceGuid.PcdQ35TsegMbytes
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdUse1GPageTable
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdPteMemoryEncryptionAddressOrMask
|
||||
|
|
Loading…
Reference in New Issue