xen/efi: make Xen PV EFI clock optional

The present implementation is only for x86.  Other architectures need
adjustments for querying presence of EFI.

Xen's EFI support is also quite troublesome on non-x86.  This is being
slowly remedied, but until in better shape the EFI clock functionality
should be disabled.

Reviewed by: royger
Differential Revision: https://reviews.freebsd.org/D31065
This commit is contained in:
Elliott Mitchell 2021-02-18 20:19:20 -08:00 committed by Roger Pau Monné
parent 28a78d860e
commit b2c50bb934
4 changed files with 4 additions and 1 deletions

View File

@ -383,6 +383,7 @@ device hyperv # HyperV drivers
# NOTE: XENHVM depends on xenpci and xentimer.
# They must be added or removed together.
options XENHVM # Xen HVM kernel infrastructure
device xenefi # Xen EFI timer device
device xenpci # Xen HVM Hypervisor services driver
device xentimer # Xen x86 PV timer device

View File

@ -147,6 +147,7 @@ device kvm_clock # KVM paravirtual clock driver
# NOTE: XENHVM depends on xenpci and xentimer.
# They must be added or removed together.
options XENHVM # Xen HVM kernel infrastructure
device xenefi # Xen EFI timer device
device xenpci # Xen HVM Hypervisor services driver
device xentimer # Xen x86 PV timer device

View File

@ -505,6 +505,7 @@ device hvhid # HyperV HID device
# Xen HVM Guest Optimizations
options XENHVM # Xen HVM kernel infrastructure
device xenefi # Xen EFI timer device
device xenpci # Xen HVM Hypervisor services driver
device xentimer # Xen x86 PV timer device

View File

@ -3486,7 +3486,7 @@ dev/xen/bus/xenpv.c optional xenhvm
dev/xen/console/xen_console.c optional xenhvm
dev/xen/control/control.c optional xenhvm
dev/xen/cpu/xen_acpi_cpu.c optional xenhvm
dev/xen/efi/pvefi.c optional xenhvm efirt
dev/xen/efi/pvefi.c optional xenhvm xenefi efirt
dev/xen/grant_table/grant_table.c optional xenhvm
dev/xen/netback/netback.c optional xenhvm
dev/xen/netfront/netfront.c optional xenhvm