KVM: PPC: Create a virtual-mode only TCE table handlers
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Fri, 18 Mar 2016 02:50:42 +0000 (13:50 +1100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 22 Mar 2016 11:02:51 +0000 (12:02 +0100)
commit31217db720186edc7ae3c4354e5fa5848bb28358
treeb18b49ccbf98cc9d2c50cc7cb53903decc7bb5ae
parentef697a712a6165aea7779c295604b099e8bfae2e
KVM: PPC: Create a virtual-mode only TCE table handlers

Upcoming in-kernel VFIO acceleration needs different handling in real
and virtual modes which makes it hard to support both modes in
the same handler.

This creates a copy of kvmppc_rm_h_stuff_tce and kvmppc_rm_h_put_tce
in addition to the existing kvmppc_rm_h_put_tce_indirect.

This also fixes linker breakage when only PR KVM was selected (leaving
HV KVM off): the kvmppc_h_put_tce/kvmppc_h_stuff_tce functions
would not compile at all and the linked would fail.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/powerpc/kvm/book3s_64_vio.c
arch/powerpc/kvm/book3s_64_vio_hv.c
arch/powerpc/kvm/book3s_hv_rmhandlers.S