Re: [PATCH v2] kvm tools, vesa: Use guest-mapped memory for framebuffer

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

 



On 06.06.2011, at 16:05, Pekka Enberg wrote:

> On Mon, 2011-06-06 at 15:59 +0200, Alexander Graf wrote:
>> Please keep in mind that this is pretty fragile. It will probably work out for you now, but memslots are
>> 
>>  1) limited
> 
> I assume KVM_SET_USER_MEMORY_REGION doesn't fail silenty here?
> 
>>  2) don't deal with overlap
>> 
>> So please add at least a comment here, warning people that this is a
>> very simple implementation that could break in subtile ways when
>> implementing other hardware that could map its own memory regions
>> somewhere else (PCI BARs), but wants them backed by RAM.
> 
> Sure - I'll add a comment saying the function doesn't handle overlapping
> memory regions.

It also doesn't handle remapping :). And that's what would bite you for PCI BARs the most, since the guest tells you where to map them - and can change its mind as often as it wants to.


Alex

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux