qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* Measuring the impact of buffer copy for virtio-gpu guests
@ 2021-02-17 13:46 Alex Bennée
  2021-02-17 14:48 ` François Ozog
  2021-02-18 11:06 ` Gerd Hoffmann
  0 siblings, 2 replies; 4+ messages in thread
From: Alex Bennée @ 2021-02-17 13:46 UTC (permalink / raw)
  To: Gerd Hoffmann, Marc-André Lureau
  Cc: Francois Ozog, Mikhail Golubev, Vasyl Vavrychuk,
	Zhao Jiancong (Jerry 趙 健淙), qemu-devel,
	Peter Griffin, Stratos Mailing List

Hi Gerd,

I was in a discussion with the AGL folks today talking about approaches
to achieving zero-copy when running VirGL virtio guests. AIUI (which is
probably not very much) the reasons for copy can be due to a number of
reasons:

  - the GPA not being mapped to a HPA that is accessible to the final HW
  - the guest allocation of a buffer not meeting stride/alignment requirements
  - data needing to be transformed for consumption by the real hardware?

any others? Is there an impedance between different buffer resource
allocators in the guest and the guest? Is that just a problem for
non-FLOSS blob drivers in the kernel?

I'm curious if it's possible to measure the effect of these extra copies
and where do they occur? Do all resources get copied from the guest buffer to
host or does this only occur when there is a mismatch in the buffer
requirements?

Are there any functions where I could add trace points to measure this?
If this occurs in the kernel I wonder if I could use an eBPF probe to
count the number of bytes copied?

Apologies for the wall of questions I'm still very new to the 3D side of
things ;-)

-- 
Alex Bennée


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

end of thread, other threads:[~2021-02-18 11:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-17 13:46 Measuring the impact of buffer copy for virtio-gpu guests Alex Bennée
2021-02-17 14:48 ` François Ozog
2021-02-17 15:48   ` Alex Bennée
2021-02-18 11:06 ` Gerd Hoffmann

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).