kvm: libkvm: check for slot overlap using 64-bit arithmetickvm-81
commit18b8d7e31fda064559e5ddb06e6dd3a2ff21cca0
authorAvi Kivity <avi@redhat.com>
Sun, 14 Dec 2008 13:16:27 +0000 (14 15:16 +0200)
committerAvi Kivity <avi@redhat.com>
Sun, 14 Dec 2008 13:16:27 +0000 (14 15:16 +0200)
treee8ed62d259a4609ded16abcb019c0c81094df997
parent6cf70385031a734ffc75358c288c186f679bbf24
kvm: libkvm: check for slot overlap using 64-bit arithmetic

otherwise, a slot that ends on the 4GB boundary wraps around, resulting
in a false positive, and leading to an early failure when attempting to get
the bios slot's dirty log (which doesn't have dirty logging enabled).

fixed broken display on 32-bit userspace.

Signed-off-by: Avi Kivity <avi@redhat.com>
libkvm/libkvm.c