From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49277) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrpRB-0003Cp-TS for qemu-devel@nongnu.org; Wed, 26 Jun 2013 09:07:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UrpRA-0006Vo-D6 for qemu-devel@nongnu.org; Wed, 26 Jun 2013 09:07:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34185) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrpRA-0006Vb-5d for qemu-devel@nongnu.org; Wed, 26 Jun 2013 09:07:04 -0400 Date: Wed, 26 Jun 2013 14:06:58 +0100 From: "Richard W.M. Jones" Message-ID: <20130626130658.GA23013@redhat.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] Monitoring Screen Activity in QEMU/KVM Reply-To: qemu-devel@nongnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Shehbaz Jaffer Cc: qemu-devel@nongnu.org On Wed, Jun 26, 2013 at 07:47:47AM +0530, Shehbaz Jaffer wrote: > I want to determine the amount of screen activity taking place on VGA > monitor/ Screen for different applications (eg. playing vlc video, normal > typing.) > > When I do not start the X server, I can easily determine the screen > activity by counting the number of pages accessed in the region 0xA0000 - > 0xBffff (This is the VGA Monitor region in boot screen). > > However when I start the X Server, A diffrent set of pages are hit. Could > anyone please explain how the VGA Monitor works in QEMU? qemu emulates a PCI device. Probably an ancient Cirrus Logic CL 5446, but other devices are possible. > Or if someone > could suggest an alternate solution to determine amount of screen activity > while playing diffrent applications? I would take an existing VNC client and modify it to log the "screeen activity" you want to log. VNC is a well-documented protocol, there are several high quality open source clients [gtk-vnc is the one I'd pick], and doing this means the guest can run at full speed. It depends a lot on how you define "screen activity". Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://people.redhat.com/~rjones/virt-top