diff options
| author | Peter Xu <peterx@redhat.com> | 2025-06-13 10:12:13 -0400 |
|---|---|---|
| committer | Fabiano Rosas <farosas@suse.de> | 2025-07-11 10:37:38 -0300 |
| commit | 28a185204ee9a4dd1b0da38c92f2d9326ca590d5 (patch) | |
| tree | 50253014cc2ed3d9b0d8e64b1f2e39ca0164a112 /include/hw/qdev-properties.h | |
| parent | f07f2a3092b70d407a009dae28b44ecc8fbcffb7 (diff) | |
| download | focaccia-qemu-28a185204ee9a4dd1b0da38c92f2d9326ca590d5.tar.gz focaccia-qemu-28a185204ee9a4dd1b0da38c92f2d9326ca590d5.zip | |
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 'include/hw/qdev-properties.h')
0 files changed, 0 insertions, 0 deletions