[Public] Hi,
Sorry for the late reply. Just come back from national holiday. > -----Original Message----- > From: Jan Beulich <[email protected]> > Sent: Thursday, September 11, 2025 9:03 PM > To: Penny, Zheng <[email protected]> > Cc: Huang, Ray <[email protected]>; Andrew Cooper > <[email protected]>; Anthony PERARD <[email protected]>; > Orzel, Michal <[email protected]>; Julien Grall <[email protected]>; Roger > Pau Monné <[email protected]>; Stefano Stabellini <[email protected]>; > Bertrand Marquis <[email protected]>; Volodymyr Babchuk > <[email protected]>; Tamas K Lengyel <[email protected]>; > Daniel P. Smith <[email protected]>; xen- > [email protected] > Subject: Re: [PATCH v2 24/26] xen/domctl: wrap arch-specific domctl-op with > CONFIG_MGMT_HYPERCALLS > > > --- a/xen/lib/x86/Makefile > > +++ b/xen/lib/x86/Makefile > > @@ -1,3 +1,3 @@ > > obj-y += cpuid.o > > obj-y += msr.o > > -obj-y += policy.o > > +obj-$(CONFIG_MGMT_HYPERCALLS) += policy.o > > Fair parts of cpuid.c also become unreachable. And all of msr.c afaics. > I just found that the functions defined here, as helpers/libraries, are used in tools/libs/guest/xg_cpuid_x86.c too. Emmm, to make compiler happy, I still need to provide stubs for them when MGMT_HYPERCALLS=n. Or any better suggestion? > Jan
