]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Fix sid map search after flush
authorAlexander Graf <agraf@suse.de>
Mon, 2 Aug 2010 11:38:18 +0000 (13:38 +0200)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:52:03 +0000 (10:52 +0200)
commit63078e75d2c6dd9bdd200729ccb782fd5c177fcd
tree5b928c047d53b3f385e7f9e736c941b00b38be0d
parentdbe6c5c5e727603cb18615641088494d2c6bbf3c
KVM: PPC: Fix sid map search after flush

After a flush the sid map contained lots of entries with 0 for their gvsid and
hvsid value. Unfortunately, 0 can be a real value the guest searches for when
looking up a vsid so it would incorrectly find the host's 0 hvsid mapping which
doesn't belong to our sid space.

So let's also check for the valid bit that indicated that the sid we're
looking at actually contains useful data.

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