KVM: x86 emulator: use correct type for memory address in operands
authorAvi Kivity <avi@redhat.com>
Sun, 1 Aug 2010 09:35:10 +0000 (12:35 +0300)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:50:33 +0000 (10:50 +0200)
commit1a6440aef6d63252e6c80aff651147b5f8c737e9
treeed2b2534e664f7f98a433f7eaaf657fadcfd8582
parent09ee57cdae3156aa3b74f378a0c57ef657c90f38
KVM: x86 emulator: use correct type for memory address in operands

Currently we use a void pointer for memory addresses.  That's wrong since
these are guest virtual addresses which are not directly dereferencable by
the host.

Use the correct type, unsigned long.

Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/include/asm/kvm_emulate.h
arch/x86/kvm/emulate.c