aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/proc.py
diff options
context:
space:
mode:
authorRadim Krčmář <[email protected]>2017-04-26 22:32:22 +0200
committerPaolo Bonzini <[email protected]>2017-04-27 14:13:57 +0200
commit930f7fd6da77ed9476a538345513460fd304aaf5 (patch)
tree8d8c53534dc4828e76e3d8daf4aea09a3cc4abe3 /scripts/gdb/linux/proc.py
parent75aaafb79f73516b69d5639ad30a72d72e75c8b4 (diff)
KVM: mark requests that do not need a wakeup
Some operations must ensure that the guest is not running with stale data, but if the guest is halted, then the update can wait until another event happens. kvm_make_all_requests() currently doesn't wake up, so we can mark all requests used with it. First 8 bits were arbitrarily reserved for request numbers. Most uses of requests have the request type as a constant, so a compiler will optimize the '&'. An alternative would be to have an inline function that would return whether the request needs a wake-up or not, but I like this one better even though it might produce worse assembly. Signed-off-by: Radim Krčmář <[email protected]> Reviewed-by: Andrew Jones <[email protected]> Reviewed-by: Cornelia Huck <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions