Re: [PATCH] x86/cpuid: gate the hypervisor PV-only leaf on is_pv_domain()
Roger Pau Monné <[email protected]>
| Newsgroups | gmane.comp.emulators.xen.devel |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Aug 26, 2026 at 03:25:26PM +0800, Jiaqing Zhao wrote: > Hypervisor leaf 5 is PV-specific, but is gated with !is_hvm_domain(), I would maybe write "..., but is gated using 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]> Acked-by: Roger Pau Monné <[email protected]> Thanks, Roger.