KVM: PPC: Teach MMIO Signedness
authorAlexander Graf <agraf@suse.de>
Fri, 19 Feb 2010 10:00:30 +0000 (11:00 +0100)
committerAvi Kivity <avi@redhat.com>
Sun, 25 Apr 2010 09:34:44 +0000 (12:34 +0300)
commit3587d5348ced089666c51411bd9d771fb0b072cf
tree245573252a8e40342bc777893f9bff5c5beac264
parentb104d06632d08957f384ff7403f609fb5dfb9cbd
KVM: PPC: Teach MMIO Signedness

The guest I was trying to get to run uses the LHA and LHAU instructions.
Those instructions basically do a load, but also sign extend the result.

Since we need to fill our registers by hand when doing MMIO, we also need
to sign extend manually.

This patch implements sign extended MMIO and the LHA(U) instructions.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/powerpc/include/asm/kvm_host.h
arch/powerpc/include/asm/kvm_ppc.h
arch/powerpc/kvm/emulate.c
arch/powerpc/kvm/powerpc.c