From: Marcelo Tosatti Subject: Re: [PATCH] fix checking of cr0 validity Date: Sat, 23 Jan 2010 16:47:46 -0200 Message-ID: <20100123184744.GB24943@amt.cnet> References: <20100121132846.GB17813@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: avi@redhat.com, kvm@vger.kernel.org, martignlo@gmail.com To: Gleb Natapov Return-path: Received: from mx1.redhat.com ([209.132.183.28]:27709 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752386Ab0AWTgS (ORCPT ); Sat, 23 Jan 2010 14:36:18 -0500 Content-Disposition: inline In-Reply-To: <20100121132846.GB17813@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Thu, Jan 21, 2010 at 03:28:46PM +0200, Gleb Natapov wrote: > 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 Applied, thanks. Changed "lu" to "UL". Please use standard "KVM: .." subject lines.