aboutsummaryrefslogtreecommitdiff
path: root/scripts/xml-preprocess.py
diff options
context:
space:
mode:
authorMarcelo Tosatti <mtosatti@redhat.com>2023-06-18 23:24:40 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2023-06-26 10:23:01 +0200
commit3b6f485275ae95a81eec589d2773b86ca9ddec4d (patch)
tree1af7fa4f2f23bd605d516c5bb05b0d937b6fd559 /scripts/xml-preprocess.py
parent3d9981cde964ea80f9c58072ddbb4df8b5a7183a (diff)
downloadqemu-3b6f485275ae95a81eec589d2773b86ca9ddec4d.zip
qemu-3b6f485275ae95a81eec589d2773b86ca9ddec4d.tar.gz
qemu-3b6f485275ae95a81eec589d2773b86ca9ddec4d.tar.bz2
kvm: reuse per-vcpu stats fd to avoid vcpu interruption
A regression has been detected in latency testing of KVM guests. More specifically, it was observed that the cyclictest numbers inside of an isolated vcpu (running on isolated pcpu) are: Where a maximum of 50us is acceptable. The implementation of KVM_GET_STATS_FD uses run_on_cpu to query per vcpu statistics, which interrupts the vcpu (and is unnecessary). To fix this, open the per vcpu stats fd on vcpu initialization, and read from that fd from QEMU's main thread. Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts/xml-preprocess.py')
0 files changed, 0 insertions, 0 deletions