From: Roedel, Joerg Date: Thu, 6 May 2010 09:38:43 +0000 (+0200) Subject: KVM: x86: Inject #GP with the right rip on efer writes X-Git-Tag: v2.6.35-rc1~436^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b69e8caef5b190af48c525f6d715e7b7728a77f6;p=pandora-kernel.git KVM: x86: Inject #GP with the right rip on efer writes This patch fixes a bug in the KVM efer-msr write path. If a guest writes to a reserved efer bit the set_efer function injects the #GP directly. The architecture dependent wrmsr function does not see this, assumes success and advances the rip. This results in a #GP in the guest with the wrong rip. This patch fixes this by reporting efer write errors back to the architectural wrmsr function. Signed-off-by: Joerg Roedel Signed-off-by: Avi Kivity --- Reading git-diff-tree failed