Re: [PATCH v5 00/12] KVM: introduce readonly memslot

From: Avi Kivity
Date: Wed Aug 15 2012 - 06:44:13 EST


On 08/14/2012 06:51 PM, Marcelo Tosatti wrote:
>>
>> Userspace may want to modify the ROM (for example, when programming a
>> flash device). It is also possible to map an hva range rw through one
>> slot and ro through another.
>
> Right, can do that with multiple userspace maps to the same anonymous
> memory region (see other email).

Yes it's possible. It requires that we move all memory allocation to be
fd based, since userspace can't predict what memory will be dual-mapped
(at least if emulated hardware allows this). Is this a reasonable
requirement? Do ksm/thp/autonuma work with this?



--
error compiling committee.c: too many arguments to function
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/