From: Keir Fraser Subject: Re: [PATCH 3/3] Add shadow VRAM Date: Wed, 15 Mar 2006 23:06:39 +0000 Message-ID: <4b845d2fd477a987abdd4e89b0f1816b@cl.cam.ac.uk> References: <20060315215700.GE14167@los-vmm.sc.intel.com> Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20060315215700.GE14167@los-vmm.sc.intel.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Donald D. Dugger" Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 15 Mar 2006, at 21:57, Donald D. Dugger wrote: > Add a shadow VRAM to track changes to the real VRAM. When the guest > OS was given write access to the VRAM the device model tracked all > VRAM changes by updating the entire screen on every output loop, > causing significant overhead (a CPU bound loop in a guest slows down > by about 35%) and significant mouse latency (VNC uses the same data > path for mouse events and video updates). With the shadow VRAM only > modified pages need to be updated and the comparison of the shadow > VRAM to the real VRAM only adds ~4% overhead while eliminating the > mouse latencies. Checking for SSE2 support on the build machine isn't good enough, since we may install on a totally different machine (distro binary packages, for example). Can you make it a run-time decision? Shouldn't add significant overhead? -- Keir