diff options
| author | Wanpeng Li <wanpengli@tencent.com> | 2020-02-28 11:18:41 +0800 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-03-16 17:57:40 +0100 |
| commit | b34de572a863b5a453dece431eac0da59b5aec0a (patch) | |
| tree | 1b6cc541608c178f2f3c9ca9ad1107c4cea3e288 /tools/perf/scripts/python | |
| parent | KVM: LAPIC: Recalculate apic map in batch (diff) | |
| download | linux-b34de572a863b5a453dece431eac0da59b5aec0a.tar.gz linux-b34de572a863b5a453dece431eac0da59b5aec0a.zip | |
KVM: X86: trigger kvmclock sync request just once on VM creation
In the progress of vCPUs creation, it queues a kvmclock sync worker to the global
workqueue before each vCPU creation completes. The workqueue subsystem guarantees
not to queue the already queued work; however, we can make the logic more clear by
making just one leader to trigger this kvmclock sync request, and also save on
cacheline bouncing caused by test_and_set_bit.
Signed-off-by: Wanpeng Li <wanpengli@tencent.com>
Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
