As noted in commit3c83843("[rng] Check for several functioning RTC interrupts"), experimentation shows that Hyper-V cannot be trusted to reliably generate RTC interrupts. (As noted in commitf3ba0fb("[hyperv] Provide timer based on the 10MHz time reference count MSR"), Hyper-V appears to suffer from a general problem in reliably generating any legacy interrupts.) An alternative entropy source is therefore required for an image that may be used in a Hyper-V Gen1 virtual machine. The x86 RDRAND instruction provides a suitable alternative entropy source, but may not be supported by all CPUs. We must therefore allow for multiple entropy sources to be compiled in, with the single active entropy source selected only at runtime. Restructure the internal entropy API to allow a working entropy source to be detected and chosen at runtime. Enable the RDRAND entropy source for all x86 builds, since it is likely to be substantially faster than any other source. Signed-off-by: Michael Brown <mcb30@ipxe.org>
59 lines
1.5 KiB
C
59 lines
1.5 KiB
C
#ifndef CONFIG_DEFAULTS_PCBIOS_H
|
|
#define CONFIG_DEFAULTS_PCBIOS_H
|
|
|
|
/** @file
|
|
*
|
|
* Configuration defaults for PCBIOS
|
|
*
|
|
*/
|
|
|
|
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
|
|
|
|
#define UACCESS_LIBRM
|
|
#define IOAPI_X86
|
|
#define PCIAPI_PCBIOS
|
|
#define DMAAPI_FLAT
|
|
#define TIMER_PCBIOS
|
|
#define CONSOLE_PCBIOS
|
|
#define NAP_PCBIOS
|
|
#define UMALLOC_MEMTOP
|
|
#define SMBIOS_PCBIOS
|
|
#define SANBOOT_PCBIOS
|
|
#define ENTROPY_RTC
|
|
#define ENTROPY_RDRAND
|
|
#define TIME_RTC
|
|
#define REBOOT_PCBIOS
|
|
#define ACPI_RSDP
|
|
|
|
#ifdef __x86_64__
|
|
#define IOMAP_PAGES
|
|
#else
|
|
#define IOMAP_VIRT
|
|
#endif
|
|
|
|
#define IMAGE_ELF /* ELF image support */
|
|
#define IMAGE_MULTIBOOT /* MultiBoot image support */
|
|
#define IMAGE_PXE /* PXE image support */
|
|
#define IMAGE_SCRIPT /* iPXE script image support */
|
|
#define IMAGE_BZIMAGE /* Linux bzImage image support */
|
|
|
|
#define PXE_STACK /* PXE stack in iPXE - required for PXELINUX */
|
|
#define PXE_MENU /* PXE menu booting */
|
|
|
|
#define SANBOOT_PROTO_ISCSI /* iSCSI protocol */
|
|
#define SANBOOT_PROTO_AOE /* AoE protocol */
|
|
#define SANBOOT_PROTO_IB_SRP /* Infiniband SCSI RDMA protocol */
|
|
#define SANBOOT_PROTO_FCP /* Fibre Channel protocol */
|
|
#define SANBOOT_PROTO_HTTP /* HTTP SAN protocol */
|
|
|
|
#define USB_HCD_XHCI /* xHCI USB host controller */
|
|
#define USB_HCD_EHCI /* EHCI USB host controller */
|
|
#define USB_HCD_UHCI /* UHCI USB host controller */
|
|
#define USB_KEYBOARD /* USB keyboards */
|
|
#define USB_BLOCK /* USB block devices */
|
|
|
|
#define REBOOT_CMD /* Reboot command */
|
|
#define CPUID_CMD /* x86 CPU feature detection command */
|
|
|
|
#endif /* CONFIG_DEFAULTS_PCBIOS_H */
|