kvm: fix MMIO/PIO collision misdetection
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 4 Apr 2013 10:27:21 +0000 (13:27 +0300)
committerGleb Natapov <gleb@redhat.com>
Sun, 7 Apr 2013 11:53:47 +0000 (14:53 +0300)
commit05e07f9bdb0ea3c1c52029e6c4db77c9f7c92a5c
treed84ca956c581c7657c21d495062354d8fb1a349c
parentb8c07d55d010702eff61562cf9a77366833d9da2
kvm: fix MMIO/PIO collision misdetection

PIO and MMIO are separate address spaces, but
ioeventfd registration code mistakenly detected
two eventfds as duplicate if they use the same address,
even if one is PIO and another one MMIO.

Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
virt/kvm/eventfd.c