Make KVMSlot a real structure
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Wed, 19 Nov 2008 17:41:58 +0000 (17:41 +0000)
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Wed, 19 Nov 2008 17:41:58 +0000 (17:41 +0000)
commit34fc643fd3ff76dac6990cd2fa4a136111eb383a
tree9c44b39bc7c80fc7d850f0bfc90572c132c36ae5
parentaf12906f77f37a3dd7da158d5b42d90a59d6fc7a
Make KVMSlot a real structure

struct kvm_userspace_memory_region does not use QEMU friendly types to
define memory slots.  This results in lots of ugly casting with warnings
on 32-bit platforms.

This patch introduces a proper KVMSlot structure that uses QEMU types to
describe memory slots.  This eliminates many of the casts and isolates
the type conversions to one spot.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5755 c046a42c-6fe2-441c-8c8c-71466251a162
kvm-all.c