From: Avi Kivity Date: Tue, 1 Sep 2009 09:03:25 +0000 (+0300) Subject: KVM: VMX: Check cpl before emulating debug register access X-Git-Tag: v2.6.27.46~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a32cd3d6adbe5cbfdfb411e1b1fccceec75e36a;p=pandora-kernel.git KVM: VMX: Check cpl before emulating debug register access commit 0a79b009525b160081d75cef5dbf45817956acf2 upstream. Debug registers may only be accessed from cpl 0. Unfortunately, vmx will code to emulate the instruction even though it was issued from guest userspace, possibly leading to an unexpected trap later. Signed-off-by: Avi Kivity Signed-off-by: Marcelo Tosatti Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed