diff options
author | 2022-04-06 19:25:02 +0800 | |
---|---|---|
committer | 2022-05-12 09:51:40 -0400 | |
commit | 91ab933f7514fc0fb42b77dc6d128c450baeae0b (patch) | |
tree | aad485cbd1d8089495bdb48365285b4575ca0fbe /scripts/gdb/linux/utils.py | |
parent | KVM: x86: fix typo in __try_cmpxchg_user causing non-atomicness (diff) | |
download | linux-dev-91ab933f7514fc0fb42b77dc6d128c450baeae0b.tar.xz linux-dev-91ab933f7514fc0fb42b77dc6d128c450baeae0b.zip |
KVM: VMX: clean up pi_wakeup_handler
Passing per_cpu() to list_for_each_entry() causes the macro to be
evaluated N+1 times for N sleeping vCPUs. This is a very small
inefficiency, and the code is cleaner if the address of the per-CPU
variable is loaded earlier. Do this for both the list and the spinlock.
Signed-off-by: Li RongQing <lirongqing@baidu.com>
Message-Id: <1649244302-6777-1-git-send-email-lirongqing@baidu.com>
Reviewed-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions