From: Tim Deegan Subject: Re: [PATCH] Provide support for multiple frame buffers in Xen Date: Thu, 24 Jan 2013 11:25:21 +0000 Message-ID: <20130124112521.GB18850@ocelot.phlegethon.org> References: <1358796510-2861-1-git-send-email-robert.phillips@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1358796510-2861-1-git-send-email-robert.phillips@citrix.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: Robert Phillips Cc: Jan Beulich , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Hi, At 14:28 -0500 on 21 Jan (1358778509), Robert Phillips wrote: > Support is provided for both shadow and hardware assisted paging (HAP) > modes. This code bookkeeps the set of video frame buffers (vram), > detects when the guest has modified any of those buffers and, upon request, > returns a bitmap of the modified pages. > This lets other software components re-paint the portions of the monitor > (or monitors) that have changed. > Each monitor has a frame buffer of some size at some position > in guest physical memory. > The set of frame buffers being tracked can change over time as monitors > are plugged and unplugged. This doesn't apply to tip of xen-unstable. Also: > + ext = __map_domain_page(pg); > + /* Is unmapped in dirty_vram_free() */ Mappings from map_domain_page() can't be kept around like this. They're supposed to be short-term, and in systems where we don't have a full 1-1 map of memory (e.g. x86 once Jan's 16TB-support series goes in) there are a limited number of mapping slots. Jan, what do you recommend here? These are pages of linked-list entries, part of the p2m/mm overhead and so allocated from the guest's shadow memory. Are we going to have to allocate them from xenheap instead or is there any way to avoid that? Tim.