aboutsummaryrefslogtreecommitdiff
path: root/io_uring/napi.c
diff options
context:
space:
mode:
authorBibo Mao <[email protected]>2024-06-13 20:28:03 +0800
committerPaolo Bonzini <[email protected]>2024-06-20 17:20:11 -0400
commit676f819c3e982db3695a371f336a05086585ea4f (patch)
tree0fbc0e6cfed74402610d4507c92f3f0429728bba /io_uring/napi.c
parentc31745d2c508796a0996c88bf2e55f552d513f65 (diff)
KVM: Discard zero mask with function kvm_dirty_ring_reset
Function kvm_reset_dirty_gfn may be called with parameters cur_slot / cur_offset / mask are all zero, it does not represent real dirty page. It is not necessary to clear dirty page in this condition. Also return value of macro __fls() is undefined if mask is zero which is called in funciton kvm_reset_dirty_gfn(). Here just return. Signed-off-by: Bibo Mao <[email protected]> Message-ID: <[email protected]> [Move the conditional inside kvm_reset_dirty_gfn; suggested by Sean Christopherson. - Paolo] Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'io_uring/napi.c')
0 files changed, 0 insertions, 0 deletions