From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: KVM: MMU: large page update_pte issue with non-PAE 32-bit guests (resend) Date: Thu, 12 Jun 2008 14:59:35 +0300 Message-ID: <48510FA7.5040607@qumranet.com> References: <20080611233240.GA25877@dmt.cnet> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: kvm-devel To: Marcelo Tosatti Return-path: Received: from il.qumranet.com ([212.179.150.194]:36232 "EHLO il.qumranet.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752715AbYFLMBq (ORCPT ); Thu, 12 Jun 2008 08:01:46 -0400 In-Reply-To: <20080611233240.GA25877@dmt.cnet> Sender: kvm-owner@vger.kernel.org List-ID: Marcelo Tosatti wrote: > kvm_mmu_pte_write() does not handle 32-bit non-PAE large page backed > guests properly. It will instantiate two 2MB sptes pointing to the same > physical 2MB page when a guest large pte update is trapped. > > Instead of duplicating code to handle this, disallow directory level > updates to happen through kvm_mmu_pte_write(), so the two 2MB sptes > emulating one guest 4MB pte can be correctly created by the page fault > handling path. > > Applied, thanks. -- I have a truly marvellous patch that fixes the bug which this signature is too narrow to contain.