On 13/02/17 02:29, Boris Ostrovsky wrote: > vpmu_count should be decremented even if VPMU_CONTEXT_ALLOCATED > is not set because on Intel processors the context is allocated > lazily and, in fact, might never happen. > > Signed-off-by: Boris Ostrovsky <boris.ostrov...@oracle.com>
The code in vpmu_initialise() already subtracts 1 from the vpmu_count in the Intel case. Won't this now cause an underflow when shutting down a VM which didn't enable vpmu to start with? ~Andrew _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel