From: Joerg Roedel Date: Wed, 24 Feb 2010 17:59:18 +0000 (+0100) Subject: KVM: SVM: Handle nested selective_cr0 intercept correctly X-Git-Tag: v2.6.35-rc1~436^2~211 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f5d8b5600b5294137886b46bf00ef811d0fdf32;p=pandora-kernel.git KVM: SVM: Handle nested selective_cr0 intercept correctly If we have the following situation with nested svm: 1. Host KVM intercepts cr0 writes 2. Guest hypervisor intercepts only selective cr0 writes Then we get an cr0 write intercept which is handled on the host. But that intercepts may actually be a selective cr0 intercept for the guest. This patch checks for this condition and injects a selective cr0 intercept if needed. Signed-off-by: Joerg Roedel Signed-off-by: Avi Kivity --- Reading git-diff-tree failed