OSDN Git Service

KVM: x86: Zero the IOAPIC scan request dest vCPUs bitmap
authorNitesh Narayan Lal <nitesh@redhat.com>
Wed, 20 Nov 2019 12:12:24 +0000 (07:12 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 20 Nov 2019 13:23:24 +0000 (14:23 +0100)
commit9a2ae9f6b6bbd3ef05d5e5977ace854e9b8f04b5
tree6d9bf9a877ea1f68c20822b74b5dc283df969249
parentfe289ebb65eee604f08fd1f8ab33ded3e955a7df
KVM: x86: Zero the IOAPIC scan request dest vCPUs bitmap

Not zeroing the bitmap used for identifying the destination vCPUs for an
IOAPIC scan request in fixed delivery mode could lead to waking up unwanted
vCPUs. This patch zeroes the vCPU bitmap before passing it to
kvm_bitmap_or_dest_vcpus(), which is responsible for setting the bitmap
with the bits corresponding to the destination vCPUs.

Fixes: 7ee30bc132c6("KVM: x86: deliver KVM IOAPIC scan request to target vCPUs")
Signed-off-by: Nitesh Narayan Lal <nitesh@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/ioapic.c