HomeFreeBSD

Hyper_V: add a boot parameter to tlb flush hypercall

Description

Hyper_V: add a boot parameter to tlb flush hypercall

Add boot parameter hw.vmbus.tlb_hcall for tlb flush hypercall.
By default it is set to 1 to allow hyercall tlb flush. It can be
set to 0 in loader.conf to turn off hypercall and use system
provided tlb flush routine.

The change also changes flag in the per cpu contiguous memory
allocation to no wait to avoid panic happened some cases which there
are no enough contiguous memery available at boot time.

Reported by: gbe
Tested by: whu
MFC after: 1 week
Fixes: 2b887687edc25bb4553f0d8a1183f454a85d413d
Sponsored by: Microsoft

(cherry picked from commit e02d20ddff7f9f9509b28095459327bc183dab8a)

Details

Provenance
whuAuthored on Jun 11 2024, 10:05 AM
Parents
rG3c1f330088e7: Hyper-V: remove unused alloc_pcpu_ptr()
Branches
Unknown
Tags
Unknown