xemu/target-ppc
David Gibson 74b41e5676 pseries: Allow writes to KVM accelerated TCE table
Sufficiently recent kernels include a KVM call to accelerate use of
PAPR TCE tables (IOMMU), which are used by PAPR virtual IO devices.
This involves qemu mapping the TCE table in from a kernel obtained fd,
which currently we do with PROT_READ only.  This is a hangover from
early (never released) versions of this kernel interface which only
permitted read-only mappings and required us to destroy and recreate
the table when we needed to clear it from qemu.

Now, the kernel permits read-write mappings, and we rely on this to
clear the table in spapr_vio_quiesce_one().  However, due to
insufficient testing, I forgot to update the actual mapping of the
table in kvmppc_create_spapr_tce() to add PROT_WRITE to the mmap().

This patch corrects the oversight.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
2011-10-30 20:03:27 +01:00
..
cpu.h pseries: Correct vmx/dfp handling in both KVM and TCG cases 2011-10-30 20:03:26 +01:00
helper_regs.h Replace always_inline with inline 2009-08-16 09:06:54 +00:00
helper.c pseries: Support SMT systems for KVM Book3S-HV 2011-10-30 17:11:53 +01:00
helper.h target-ppc: remove old CONFIG_SOFTFLOAT #ifdef 2011-06-03 16:07:48 +02:00
kvm_ppc.c PPC: KVM: Remove kvmppc_read_host_property 2011-10-06 09:43:35 +02:00
kvm_ppc.h ppc: Fix up usermode only builds 2011-10-30 20:03:27 +01:00
kvm.c pseries: Allow writes to KVM accelerated TCE table 2011-10-30 20:03:27 +01:00
machine.c PPC: move TLBs to their own arrays 2011-06-17 02:58:37 +02:00
mfrom_table_gen.c find -type f | xargs sed -i 's/[\t ]*$//g' # Yes, again. Note the star in the regex. 2007-09-17 08:09:54 +00:00
mfrom_table.c find -type f | xargs sed -i 's/[\t ]$//g' # on most files 2007-09-16 21:08:06 +00:00
op_helper.c softmmu_header: pass CPUState to tlb_fill 2011-10-01 09:31:26 +00:00
STATUS Fix typos in comments (chek -> check) 2011-05-22 22:31:45 +01:00
translate_init.c pseries: Correct vmx/dfp handling in both KVM and TCG cases 2011-10-30 20:03:26 +01:00
translate.c Set an invalid-bits mask for each SPE instructions 2011-10-30 17:11:53 +01:00