From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH v3 5/6] KVM: MMU: abstract invalid guest pte mapping Date: Mon, 22 Nov 2010 12:17:24 +0200 Message-ID: <4CEA4334.5070106@redhat.com> References: <4CE63CF4.80502@cn.fujitsu.com> <4CE63DB3.9010100@cn.fujitsu.com> <4CEA37A6.8040204@redhat.com> <4CEA436D.8050202@cn.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Marcelo Tosatti , KVM , LKML To: Xiao Guangrong Return-path: In-Reply-To: <4CEA436D.8050202@cn.fujitsu.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On 11/22/2010 12:18 PM, Xiao Guangrong wrote: > > > > I think the order is reversed. If !is_present_gpte(), it doesn't matter > > if reserved bits are set or not. > > > > if !is_present_gpte()&& is_rsvd_bits_set, then we may mark the spte notrap, > so the guest will detect #PF with PFEC.P=PEFC.RSVD=0, but the appropriate PFEC > is PFEC.P=0&& PEFC.RSVD=1 ? I think the correct PFEC is .P = .RSVD = 0, but best to check on real hardware to be sure. -- error compiling committee.c: too many arguments to function