Peter Xu <pet...@redhat.com> writes: > Looking up the vCPU index for each fault can be expensive when there're > hundreds of vCPUs. Provide a cache for tid->vcpu instead with a hash > table, then lookup from there. > > When at it, add another counter to record how many non-vCPU faults it gets. > For example, the main thread can also access a guest page that was missing. > These kind of faults are not accounted by blocktime so far. > > Signed-off-by: Peter Xu <pet...@redhat.com>
Reviewed-by: Fabiano Rosas <faro...@suse.de>