]> git.proxmox.com Git - mirror_edk2.git/commit
OvmfPkg: Introduce XenPlatformPei
authorAnthony PERARD <anthony.perard@citrix.com>
Tue, 13 Aug 2019 11:30:48 +0000 (12:30 +0100)
committerLaszlo Ersek <lersek@redhat.com>
Wed, 21 Aug 2019 16:03:49 +0000 (18:03 +0200)
commit3b96221f77f4181524657e145b51fa423f3faebe
tree88f145ad14fd7253f93c9ea99d41a6b4887447cb
parentc05de360ec614f71716a201760b91ee055a5ff28
OvmfPkg: Introduce XenPlatformPei

Introduce XenPlatformPei, a copy of OvmfPkg/PlatformPei without some
of QEMU specific initialization, Xen does not support QemuFwCfg.

This new module will be adjusted to accommodate Xen PVH.

fw_cfg dependents that have been removed, which are dynamically skipped
when running PlatformPei on Xen:
- GetFirstNonAddress(): controlling the 64-bit PCI MMIO aperture via the
(experimental) "opt/ovmf/X-PciMmio64Mb" file
- GetFirstNonAddress(): honoring the hotplug DIMM area
("etc/reserved-memory-end") in the placement of the 64-bit PCI MMIO
aperture
- NoexecDxeInitialization() is removed, so PcdPropertiesTableEnable and
PcdSetNxForStack are left constant FALSE (not set dynamically from
fw_cfg "opt/ovmf/PcdXxxx")
- MaxCpuCountInitialization(), PublishPeiMemory(): the max CPU count is
not taken from the QemuFwCfgItemSmpCpuCount fw_cfg key;
PcdCpuMaxLogicalProcessorNumber is used intact and
PcdCpuApInitTimeOutInMicroSeconds is never changed or used.
- InitializeXenPlatform(), S3Verification(): S3 is assumed disabled (not
consulting "etc/system-states" via QemuFwCfgS3Enabled()).
- InstallFeatureControlCallback(): the feature control MSR is not set
from "etc/msr_feature_control"
(also removed FeatureControl.c as there is nothing been executed)

Also removed:
- SMRAM/TSEG-related low mem size adjusting (PcdSmmSmramRequire is
assumed FALSE) in PublishPeiMemory(),
- QemuInitializeRam() entirely,

Xen related changes:
- Have removed the module variable mXen, as it should be always true.
- Have the platform PEI initialization fails if Xen has not been
  detected.

Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=1689
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Message-Id: <20190813113119.14804-5-anthony.perard@citrix.com>
14 files changed:
Maintainers.txt
OvmfPkg/OvmfXen.dsc
OvmfPkg/OvmfXen.fdf
OvmfPkg/XenPlatformPei/AmdSev.c [new file with mode: 0644]
OvmfPkg/XenPlatformPei/ClearCache.c [new file with mode: 0644]
OvmfPkg/XenPlatformPei/Cmos.c [new file with mode: 0644]
OvmfPkg/XenPlatformPei/Cmos.h [new file with mode: 0644]
OvmfPkg/XenPlatformPei/Fv.c [new file with mode: 0644]
OvmfPkg/XenPlatformPei/MemDetect.c [new file with mode: 0644]
OvmfPkg/XenPlatformPei/Platform.c [new file with mode: 0644]
OvmfPkg/XenPlatformPei/Platform.h [new file with mode: 0644]
OvmfPkg/XenPlatformPei/Xen.c [new file with mode: 0644]
OvmfPkg/XenPlatformPei/Xen.h [new file with mode: 0644]
OvmfPkg/XenPlatformPei/XenPlatformPei.inf [new file with mode: 0644]