From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?windows-1252?Q?Roger_Pau_Monn=E9?= Subject: Re: [PATCH v3 2/3] xen/shadow: fix shadow_track_dirty_vram to work on hvm guests Date: Wed, 6 May 2015 17:12:38 +0200 Message-ID: <554A2F66.2000905@citrix.com> References: <1428686959-2890-1-git-send-email-roger.pau@citrix.com> <1428686959-2890-3-git-send-email-roger.pau@citrix.com> <552D22920200007800071E4B@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Yq149-0003SP-5p for xen-devel@lists.xenproject.org; Wed, 06 May 2015 15:16:53 +0000 In-Reply-To: <552D22920200007800071E4B@mail.emea.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: Andrew Cooper , Tim Deegan , xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org El 14/04/15 a les 14.22, Jan Beulich ha escrit: >>>> On 10.04.15 at 19:29, wrote: >> Modify shadow_track_dirty_vram to use a local buffer and then flush to the >> guest without the paging_lock held. This is modeled after >> hap_track_dirty_vram. > > And hence introduces the same issue: The HVMOP_track_dirty_vram > handler explicitly allows for up to 1Gb of VRAM, yet here you > effectively limit things to 128Mb (one page worth of bits each taking > care of one guest page) considering heavily fragmented memory. Where does this limitation come from? We allocate a temporary bitmap that has enough size to accommodate for the number of entries passed to the function in nr. I guess there's some limitation I'm not seeing. Roger.