Laszlo Ersek 
							
						 
					 
					
						
						
							
						
						3357ac7380 
					 
					
						
						
							
							OvmfPkg/XenAcpiPlatformDxe: remove delayed ACPI table installation  
						
						... 
						
						
						
						Because "PcdPciDisableBusEnumeration" is always TRUE in the OvmfXen
platform, we can remove the delayed ACPI table installation from
XenAcpiPlatformDxe. A number of dependencies become useless this way;
remove them too.
(Note that, conversely, in the QemuFwCfgAcpiPlatformDxe driver, we
*cannot* assume that "PcdPciDisableBusEnumeration" is always FALSE,
regardless of Xen: in the ArmVirtQemu platform, the PCD may carry either
FALSE or TRUE, dependent on whether or not the QEMU "virt" machine
configuration includes a PCIe host controller, respectively.)
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-21-lersek@redhat.com >
Reviewed-by: Ard Biesheuvel <ardb@kernel.org >
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com > 
						
						
					 
					
						2021-06-04 16:01:50 +00:00 
						 
				 
			
				
					
						
							
							
								Laszlo Ersek 
							
						 
					 
					
						
						
							
						
						8f8d3d90c5 
					 
					
						
						
							
							OvmfPkg/XenAcpiPlatformDxe: remove OVMF's built-in ACPI tables  
						
						... 
						
						
						
						Xen is an advanced hypervisor; no Xen guest can function correctly without
the hypervisor's dynamically provided ACPI tables. Remove the built-in
(fallback) tables from XenAcpiPlatformDxe -- and the OvmfXen platform.
Remove any dependencies from XenAcpiPlatformDxe that are no longer needed.
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-17-lersek@redhat.com >
Reviewed-by: Ard Biesheuvel <ardb@kernel.org >
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com > 
						
						
					 
					
						2021-06-04 16:01:50 +00:00 
						 
				 
			
				
					
						
							
							
								Laszlo Ersek 
							
						 
					 
					
						
						
							
						
						3f975ee570 
					 
					
						
						
							
							OvmfPkg/XenAcpiPlatformDxe: remove the InstallAcpiTable() helper function  
						
						... 
						
						
						
						The InstallAcpiTable() helper function buys us nothing. Reduce code
complexity by removing the function.
This patch is best viewed with "git show -b".
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-16-lersek@redhat.com >
Reviewed-by: Ard Biesheuvel <ardb@kernel.org >
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com > 
						
						
					 
					
						2021-06-04 16:01:50 +00:00 
						 
				 
			
				
					
						
							
							
								Laszlo Ersek 
							
						 
					 
					
						
						
							
						
						d6ba8aa6ef 
					 
					
						
						
							
							OvmfPkg/XenAcpiPlatformDxe: remove QEMU fw_cfg dependency  
						
						... 
						
						
						
						The QemuDetected() function wraps QemuFwCfgIsAvailable(); it always fails
on Xen. Because of that, we can eliminate the QemuDetected() call itself
from the Xen ACPI platform driver, and then the rest of "Qemu.c" becomes
useless -- the workhorse function of that source file is
QemuInstallAcpiTable(), which we no longer call.
Remove any dependencies that are no longer needed by the
XenAcpiPlatformDxe driver.
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-15-lersek@redhat.com >
Reviewed-by: Ard Biesheuvel <ardb@kernel.org >
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com > 
						
						
					 
					
						2021-06-04 16:01:50 +00:00 
						 
				 
			
				
					
						
							
							
								Laszlo Ersek 
							
						 
					 
					
						
						
							
						
						4115840c28 
					 
					
						
						
							
							OvmfPkg/XenAcpiPlatformDxe: remove the QEMU ACPI linker/loader client  
						
						... 
						
						
						
						The root of the QEMU ACPI linker/loader client in XenAcpiPlatformDxe is
the InstallQemuFwCfgTables() function. This function always fails on Xen,
due to its top-most QemuFwCfgFindFile() call.
Remove the InstallQemuFwCfgTables() function call from XenAcpiPlatformDxe,
along with all dependencies that now become unused.
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-14-lersek@redhat.com >
Reviewed-by: Ard Biesheuvel <ardb@kernel.org >
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com > 
						
						
					 
					
						2021-06-04 16:01:50 +00:00 
						 
				 
			
				
					
						
							
							
								Laszlo Ersek 
							
						 
					 
					
						
						
							
						
						c9bba52fc7 
					 
					
						
						
							
							OvmfPkg/XenAcpiPlatformDxe: create from AcpiPlatformDxe  
						
						... 
						
						
						
						Create an almost verbatim copy of the
"OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf" driver for the OvmfXen
platform. We're going to trim the driver in subsequent patches.
Ultimately, the XenAcpiPlatformDxe driver will duplicate a negligible
amount of code that is currently present in the QemuFwCfgAcpiPlatformDxe
driver.
List the new driver in "Maintainers.txt", in the "OvmfPkg: Xen-related
modules" section.
Switch the OvmfXen platform to the new driver at once.
This patch should be reviewed with "git show --find-copies-harder".
Cc: Andrew Fish <afish@apple.com >
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: Leif Lindholm <leif@nuviainc.com >
Cc: Michael D Kinney <michael.d.kinney@intel.com >
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-12-lersek@redhat.com >
Reviewed-by: Ard Biesheuvel <ardb@kernel.org >
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com >
Reviewed-by: Leif Lindholm <leif@nuviainc.com > 
						
						
					 
					
						2021-06-04 16:01:50 +00:00