KVM: PPC: Don't flush PTEs on NX/RO hit
authorAlexander Graf <agraf@suse.de>
Mon, 2 Aug 2010 18:11:39 +0000 (20:11 +0200)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:52:06 +0000 (10:52 +0200)
commit2e602847d9c2d6b487bda62bbbe550db40ca912f
treee93c763d86987b7aa10f87f6582eacbdee9fa792
parent4cb6b7ea0cd085e6613153ad69608cad6421abcc
KVM: PPC: Don't flush PTEs on NX/RO hit

When hitting a no-execute or read-only data/inst storage interrupt we were
flushing the respective PTE so we're sure it gets properly overwritten next.

According to the spec, this is unnecessary though. The guest issues a tlbie
anyways, so we're safe to just keep the PTE around and have it manually removed
from the guest, saving us a flush.

Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/kvm/book3s.c