Re: [Qemu-devel] [PATCH 4/5] memory: interface to allocate device ram

2014-11-18 Thread Michael S. Tsirkin
On Mon, Nov 17, 2014 at 08:21:00PM +, Peter Maydell wrote: > On 17 November 2014 20:08, Michael S. Tsirkin wrote: > > Add API to allocate on-device RAM. > > This looks just like regular RAM from migration POV, > > but has two special properties internally: > > - it is never exposed to guest >

Re: [Qemu-devel] [PATCH 4/5] memory: interface to allocate device ram

2014-11-17 Thread Peter Maydell
On 17 November 2014 20:08, Michael S. Tsirkin wrote: > Add API to allocate on-device RAM. > This looks just like regular RAM from migration POV, > but has two special properties internally: > - it is never exposed to guest If it's not exposed to the guest why is it a MemoryRegion? Those are pret

[Qemu-devel] [PATCH 4/5] memory: interface to allocate device ram

2014-11-17 Thread Michael S. Tsirkin
Add API to allocate on-device RAM. This looks just like regular RAM from migration POV, but has two special properties internally: - it is never exposed to guest - block is sized on migration, making it easier to extend without breaking migration compatibility or wasting virtual memory Device is