qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] viewing continuous guest virtual memory as continuous in qemu
@ 2011-10-02 13:24 Alon Levy
  2011-10-02 14:31 ` [Qemu-devel] [Spice-devel] " Alon Levy
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Alon Levy @ 2011-10-02 13:24 UTC (permalink / raw)
  To: qemu-devel, spice-devel; +Cc: Dave Airlie

Hi,

 I'm trying to acheive the $subject. Some background: currently spice relies on a preallocated pci bar for both surfaces and for VGA framebuffer + commands. I have been trying to get rid of the surfaces bar. To do that I allocate memory in the guest and then translate it for spice-server consumption using cpu_physical_memory_map.

 AFAIU this works only when the guest allocates a continuous range of physical pages. This is a large requirement from the guest, which I'd like to drop. So I would like to have the guest use a regular allocator, generating for instance two sequential pages in virtual memory that are scattered in physical memory. Those two physical guest page addresses (gp1 and gp2) correspond to two host virtual memory addresses (hv1, hv2). I would now like to provide to spice-server a single virtual address p that maps to those two pages in sequence. I don't want to handle my own scatter-gather list, I would like to have this mapping done once so I can use an existing library that requires a single pointer (for instance pixman or libGL) to do the rendering.

 Is there any way to acheive that without host kernel support, in user space, i.e. in qemu? or with an existing host kernel device?

 I'd appreciate any help,

Alon

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

end of thread, other threads:[~2011-10-11 13:20 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-02 13:24 [Qemu-devel] viewing continuous guest virtual memory as continuous in qemu Alon Levy
2011-10-02 14:31 ` [Qemu-devel] [Spice-devel] " Alon Levy
2011-10-02 17:12   ` Avi Kivity
2011-10-03  7:49     ` Alon Levy
2011-10-03  8:17 ` Yonit Halperin
2011-10-03  8:37   ` Alon Levy
2011-10-03  8:49     ` Alon Levy
2011-10-03 15:10     ` Avi Kivity
2011-10-11 11:28 ` Gerd Hoffmann
2011-10-11 12:21   ` Alon Levy
2011-10-11 13:20     ` 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).