]> git.proxmox.com Git - mirror_qemu.git/commit
target-ppc: Add new TLB invalidate by HPTE call for hash64 MMUs
authorDavid Gibson <david@gibson.dropbear.id.au>
Fri, 15 Jan 2016 05:12:09 +0000 (16:12 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Sat, 30 Jan 2016 12:49:27 +0000 (23:49 +1100)
commit61a36c9b5a12889994e6c45f4a175efcd63936db
treefd7f7c170caf817749400c3ba80bb68b7320941e
parent4693364f31016cc08d79d1673c3f735a4f95fd89
target-ppc: Add new TLB invalidate by HPTE call for hash64 MMUs

When HPTEs are removed or modified by hypercalls on spapr, we need to
invalidate the relevant pages in the qemu TLB.

Currently we do that by doing some complicated calculations to work out the
right encoding for the tlbie instruction, then passing that to
ppc_tlb_invalidate_one()... which totally ignores the argument and flushes
the whole tlb.

Avoid that by adding a new flush-by-hpte helper in mmu-hash64.c.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Reviewed-by: Alexander Graf <agraf@suse.de>
hw/ppc/spapr_hcall.c
target-ppc/mmu-hash64.c
target-ppc/mmu-hash64.h