qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* Re: [Qemu-devel] Monitoring Screen Activity in QEMU/KVM
@ 2013-06-27 14:09 Claudio Fontana
  2013-06-27 16:31 ` Anthony Liguori
  0 siblings, 1 reply; 5+ messages in thread
From: Claudio Fontana @ 2013-06-27 14:09 UTC (permalink / raw)
  To: shehbazjaffer007; +Cc: qemu-devel@nongnu.org

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.

Claudio

^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: [Qemu-devel] Monitoring Screen Activity in QEMU/KVM
@ 2013-06-27 20:16 Claudio Fontana
  0 siblings, 0 replies; 5+ messages in thread
From: Claudio Fontana @ 2013-06-27 20:16 UTC (permalink / raw)
  To: anthony; +Cc: qemu-devel

> Claudio Fontana <address@hidden> 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 are thinking of the generic 'vesa' driver:
http://cgit.freedesktop.org/xorg/driver/xf86-video-vesa/

There is also a generic 'vga' driver:
http://cgit.freedesktop.org/xorg/driver/xf86-video-vga/

That said, I was being semi-serious: an Xorg running on plain vga
driver is hardly a realistic use-case.

> 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

^ permalink raw reply	[flat|nested] 5+ messages in thread
* [Qemu-devel] Monitoring Screen Activity in QEMU/KVM
@ 2013-06-26  2:17 Shehbaz Jaffer
  2013-06-26 13:06 ` Richard W.M. Jones
  0 siblings, 1 reply; 5+ messages in thread
From: Shehbaz Jaffer @ 2013-06-26  2:17 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 910 bytes --]

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,
-- 
Shehbaz Jaffer
Graduate Student
Department of Computer Engineering
Indian Institute of Technology, Delhi

[-- Attachment #2: Type: text/html, Size: 1005 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-06-27 20:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-27 14:09 [Qemu-devel] Monitoring Screen Activity in QEMU/KVM Claudio Fontana
2013-06-27 16:31 ` Anthony Liguori
  -- strict thread matches above, loose matches on Subject: below --
2013-06-27 20:16 Claudio Fontana
2013-06-26  2:17 Shehbaz Jaffer
2013-06-26 13:06 ` Richard W.M. Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).