i386: Use DEV_HYPERV to enable HyperV APIC vector

This avoids requiring both 'device hyperv' and 'options HYPERV' for
kernel configs.  Instead, just 'device hyperv' can now be used
matching the kernel configuration used for amd64.

Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D44783
This commit is contained in:
John Baldwin 2024-04-13 19:10:44 -07:00
parent 1f678b6ba2
commit e045163cce
4 changed files with 2 additions and 5 deletions

View file

@ -97,7 +97,7 @@ NPX_DEBUG opt_npx.h
BPF_JITTER opt_bpf.h
# Hyper-V support
HYPERV opt_hyperv.h
DEV_HYPERV opt_hyperv.h
XENHVM opt_global.h

View file

@ -327,8 +327,6 @@ device virtio_balloon # VirtIO Memory Balloon device
device kvm_clock # KVM paravirtual clock driver
# HyperV drivers and enhancement support
# NOTE: HYPERV depends on hyperv. They must be added or removed together.
options HYPERV # Kernel support for HyperV drivers
device hyperv # HyperV drivers
# Xen HVM Guest Optimizations

View file

@ -660,7 +660,6 @@ device kvm_clock # KVM paravirtual clock driver
# Google Virtual NIC
device gve # Google Virtual NIC (gVNIC) driver
options HYPERV
device hyperv # HyperV drivers
device hvhid # HyperV HID device

View file

@ -450,7 +450,7 @@ ENTRY(fork_trampoline)
#include <i386/i386/apic_vector.S>
#endif
#ifdef HYPERV
#ifdef DEV_HYPERV
.data
.p2align 4
.text