From: Gleb Natapov Date: Thu, 21 Jan 2010 13:28:46 +0000 (+0200) Subject: KVM: x86: fix checking of cr0 validity X-Git-Tag: v2.6.34-rc1~193^2~54 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab344828ebe729e52949d64046adaa196f6b9dbe;p=pandora-kernel.git KVM: x86: fix checking of cr0 validity Move to/from Control Registers chapter of Intel SDM says. "Reserved bits in CR0 remain clear after any load of those registers; attempts to set them have no impact". Control Register chapter says "Bits 63:32 of CR0 are reserved and must be written with zeros. Writing a nonzero value to any of the upper 32 bits results in a general-protection exception, #GP(0)." This patch tries to implement this twisted logic. Signed-off-by: Gleb Natapov Reported-by: Lorenzo Martignoni Signed-off-by: Marcelo Tosatti --- Reading git-diff-tree failed