]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: MMU: Keep a reverse mapping of non-writable translations
authorIzik Eidus <izike@qumranet.com>
Tue, 16 Oct 2007 12:43:46 +0000 (14:43 +0200)
committerAvi Kivity <avi@qumranet.com>
Wed, 30 Jan 2008 15:52:54 +0000 (17:52 +0200)
commitfe41eb4d6fea951c43ccdb92f34868c1aa84c4a1
tree6bd61ace880d9428c38ebe45858793d689ca4f4b
parent04c6f3c315c98bf2fff6647d9642b68a73e84d73
KVM: MMU: Keep a reverse mapping of non-writable translations

The current kvm mmu only reverse maps writable translation.  This is used
to write-protect a page in case it becomes a pagetable.

But with swapping support, we need a reverse mapping of read-only pages as
well:  when we evict a page, we need to remove any mapping to it, whether
writable or not.

Signed-off-by: Izik Eidus <izike@qumranet.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/mmu.c