KVM: PPC: Add get_pvinfo interface to query hypercall instructions
authorAlexander Graf <agraf@suse.de>
Thu, 29 Jul 2010 12:48:08 +0000 (14:48 +0200)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:50:57 +0000 (10:50 +0200)
commit15711e9c927bfc08e66791cbf0ca7887c0880768
tree0b44274b4592b298177122178e83927d45919a19
parentd7d3c2ea99c4845611997cf728af88c4c232e908
KVM: PPC: Add get_pvinfo interface to query hypercall instructions

We need to tell the guest the opcodes that make up a hypercall through
interfaces that are controlled by userspace. So we need to add a call
for userspace to allow it to query those opcodes so it can pass them
on.

This is required because the hypercall opcodes can change based on
the hypervisor conditions. If we're running in hardware accelerated
hypervisor mode, a hypercall looks different from when we're running
without hardware acceleration.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
Documentation/kvm/api.txt
arch/powerpc/kvm/powerpc.c
include/linux/kvm.h