From: Avi Kivity Date: Mon, 30 Apr 2007 14:05:38 +0000 (+0300) Subject: KVM: Reduce misfirings of the fork detector X-Git-Tag: v2.6.23-rc1~520^2~74 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a25f7e1f8c1ff68213a63dada9d5e32dc1a0f587;p=pandora-kernel.git KVM: Reduce misfirings of the fork detector The kvm mmu tries to detects forks by looking for repeated writes to a page table. If it sees a fork, it unshadows the page table so the page table copying can proceed at native speed instead of being emulated. However, the detector also triggered on simple demand paging access patterns: a linear walk of memory would of course cause repeated writes to the same pagetable page, causing it to unshadow prematurely. Fix by resetting the fork detector if we detect a demand fault. Signed-off-by: Avi Kivity --- Reading git-diff-tree failed