[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH RFC] vga: flag vga ram for notifiers

From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH RFC] vga: flag vga ram for notifiers
Date: Thu, 31 Mar 2011 21:12:06 +0100

On 31 March 2011 20:29, Anthony Liguori <address@hidden> wrote:
> On 03/31/2011 02:18 PM, Peter Maydell wrote:
>> So, to ask a dumb question, what does make something RAM?
> It's a made up concept that we use to make device performance faster.
> Basically, RAM should include all of the memory that a reasonable device
> (that we control) would DMA to and has a relatively stable mapping.

This seems rather vague :-) "Suitable as a target for DMA"
seems more like a guest concept than a model one.

>> My take on RAM is that RAM is just another device; the only
>> difference is that you want to be able to implement fast
>> paths that go straight(ish) to target memory; but that's
>> an optimisation detail, not something that makes RAM
>> conceptually different from other devices...
> Right, the trouble is, if you want to treat RAM like any other device, you
> can't get stable mappings to it which is bad for something like vhost-net.

Well, obviously you need to be able to revoke the permission
to use the fastpath pointer to the underlying memory. But you
need to be able to do that anyhow, to cover cases where (eg) the
guest has just written to some register that remaps the bottom
part of the address space so it's ROM rather than RAM, or whatever.
It's just a feature your optimisation needs to have. Equally, you
don't remap unless you have to, but if the mapping's changed then
it's changed...

-- PMM

reply via email to

[Prev in Thread] Current Thread [Next in Thread]