diff options
author | Isaku Yamahata <yamahata@valinux.co.jp> | 2009-10-30 21:21:19 +0900 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-11-09 08:43:09 -0600 |
commit | f49db805a978015936f40ad5ba859181def8acbe (patch) | |
tree | 422c283fa6e076f8e24a3a0d5c242bb00855566f /kvm-all.c | |
parent | a9f49946113262f9449890ed918ab99ef73dace8 (diff) |
pci: add helper functions to check ranges overlap.
add helper function to check ranges overlap suggested by
Michael S. Tsirkin <mst@redhat.com>.
His original suggestion was to use [first, last], however I chosen
to use offset, length pair, i.e. [offset, offset + length)
because pci configuration space related functions all uses offset and length
pair, so it helps to avoid to type constant twice.
Cc: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'kvm-all.c')
0 files changed, 0 insertions, 0 deletions