]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit175c590f0a80c8d4c35e49577c6b6b1cc3546716
tree0b44274b4592b298177122178e83927d45919a19
parent2150c13d344080212bbfe9fde84aa4b547a7a362
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