[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v2 1/3] x86/vpmu: Add get/put_vpmu() and VPMU_AVAILABLE
>>>> + >>>> +void vpmu_initialise(struct vcpu *v) >>>> +{ >>>> + get_vpmu(v); >>>> + >>>> + /* >>>> + * Guests without LAPIC (i.e. PV) call vpmu_arch_initialise() >>>> + * from pvpmu_init(). >>>> + */ >>> implication is that PV VPMU is not counted then? >> No. get_vpmu() is what does the counting now. Since we do >> vcpu_initialise() -> vpmu_initialise() for all type of VCPUs both PV and >> HVM VPMUs are counted here. But we defer arch-specific intialization >> (which doesn't do the counting) for PV until the hypercall. >> > earlier comment said vpmu_count is to count active VPMUs. > what's the definition of 'active' here? An uninitialized pv VPMU > is also considered active? Yes. Whenever a VCPU with appropriately defined CPUID leaf 0xa is initialized we should assume that it eventually will be used. I can clarify the comment. (In the second patch I claim that "appropriately defined" is version=0 but perhaps there is a better definition.) -boris _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |