From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58021) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsFBH-0006gR-Qb for qemu-devel@nongnu.org; Thu, 27 Jun 2013 12:36:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UsFBG-0001ON-Nx for qemu-devel@nongnu.org; Thu, 27 Jun 2013 12:36:23 -0400 Received: from mail-yh0-f41.google.com ([209.85.213.41]:48786) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsF6h-0008EY-SD for qemu-devel@nongnu.org; Thu, 27 Jun 2013 12:31:39 -0400 Received: by mail-yh0-f41.google.com with SMTP id z20so523992yhz.0 for ; Thu, 27 Jun 2013 09:31:39 -0700 (PDT) From: Anthony Liguori In-Reply-To: <51CC479B.1050006@huawei.com> References: <51CC479B.1050006@huawei.com> Date: Thu, 27 Jun 2013 11:31:36 -0500 Message-ID: <87k3lfa51z.fsf@codemonkey.ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [Qemu-devel] Monitoring Screen Activity in QEMU/KVM List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Claudio Fontana , shehbazjaffer007@gmail.com Cc: "qemu-devel@nongnu.org" Claudio Fontana writes: > 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? Or if someone could suggest an alternate solution to determine amount of screen activity while playing diffrent applications? >> >> [NOTE : I have already checked for the region where X server pages are mapped using cat /proc/iomem. But pages are not getting written to the "possible" X server mmapped region.] >> >> Regards, > > If you define "screen activity" = "number of pages accessed in the > range 0xa0000-0xbffff per unit of time", you could keep your thing > going by just using the generic "vga" driver in your Xorg > configuration, and that would keep your model valid I think. Pretty sure the vga driver will use VESA interfaces and the VESA BIOS will use PCI bar mapping. You could also trap accesses to where the BAR gets mapped on the PCI device. Far better to just register a DisplayChangeListener though and let QEMU do the heavy lifting. Or use VNC as Richard mentioned elsewhere. Regards, Anthony Liguori > > Claudio