From: Joerg Roedel Date: Tue, 26 Feb 2008 15:49:16 +0000 (+0100) Subject: KVM: detect if VCPU triple faults X-Git-Tag: v2.6.26-rc1~1028^2~96 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71c4dfafc0932d92cc99c7e839d25174b0ce10a1;p=pandora-kernel.git KVM: detect if VCPU triple faults In the current inject_page_fault path KVM only checks if there is another PF pending and injects a DF then. But it has to check for a pending DF too to detect a shutdown condition in the VCPU. If this is not detected the VCPU goes to a PF -> DF -> PF loop when it should triple fault. This patch detects this condition and handles it with an KVM_SHUTDOWN exit to userspace. Signed-off-by: Joerg Roedel Signed-off-by: Avi Kivity --- Reading git-diff-tree failed