Re: [PATCH] x86/cpuid: gate the hypervisor PV-only leaf on is_pv_domain()
Jan Beulich <[email protected]>
| Newsgroups | gmane.comp.emulators.xen.devel |
|---|---|
| Message-ID | <[email protected]> |
On 26.08.2026 09:25, Jiaqing Zhao wrote: > Hypervisor leaf 5 is PV-specific, but is gated with !is_hvm_domain(), > which stays a runtime test in a build without PV support. Test for a > PV domain directly so the compiler can discard the leaf when > CONFIG_PV is disabled. > > Suggested-by: Roger Pau Monné <[email protected]> > Signed-off-by: Jiaqing Zhao <[email protected]> Reviewed-by: Jan Beulich <[email protected]>