aboutsummaryrefslogtreecommitdiff
path: root/scripts/qapi/source.py
diff options
context:
space:
mode:
authorPeter Xu <peterx@redhat.com>2025-06-13 10:12:13 -0400
committerFabiano Rosas <farosas@suse.de>2025-07-11 10:37:38 -0300
commit28a185204ee9a4dd1b0da38c92f2d9326ca590d5 (patch)
tree50253014cc2ed3d9b0d8e64b1f2e39ca0164a112 /scripts/qapi/source.py
parentf07f2a3092b70d407a009dae28b44ecc8fbcffb7 (diff)
downloadqemu-28a185204ee9a4dd1b0da38c92f2d9326ca590d5.zip
qemu-28a185204ee9a4dd1b0da38c92f2d9326ca590d5.tar.gz
qemu-28a185204ee9a4dd1b0da38c92f2d9326ca590d5.tar.bz2
migration/postcopy: Cache the tid->vcpu mapping for blocktime
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. Reviewed-by: Fabiano Rosas <farosas@suse.de> Link: https://lore.kernel.org/r/20250613141217.474825-11-peterx@redhat.com Signed-off-by: Peter Xu <peterx@redhat.com> Signed-off-by: Fabiano Rosas <farosas@suse.de>
Diffstat (limited to 'scripts/qapi/source.py')
0 files changed, 0 insertions, 0 deletions