]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf5291ab006c42d1dfe57a9905c511e2544ed39e9
treeed2b2534e664f7f98a433f7eaaf657fadcfd8582
parent2f53ceb69f24c2bcd389fbcfa136a369d8f7505c
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