Re: [Qemu-devel] [PATCH] memory: size can be different from ptr_size

2018-09-05 Thread Marc-André Lureau
Hi On Wed, Sep 5, 2018 at 7:51 PM, Marc-André Lureau wrote: > Hi > > On Wed, Sep 5, 2018 at 1:37 PM, Juan Quintela wrote: >> Marc-André Lureau wrote: >>> memory_region_init_ram*_ptr() take only the size of the MemoryRegion, >>> and allocate a RAMBlock with the same size. However, it may be >>>

Re: [Qemu-devel] [PATCH] memory: size can be different from ptr_size

2018-09-05 Thread Marc-André Lureau
Hi On Wed, Sep 5, 2018 at 1:37 PM, Juan Quintela wrote: > Marc-André Lureau wrote: >> memory_region_init_ram*_ptr() take only the size of the MemoryRegion, >> and allocate a RAMBlock with the same size. However, it may be >> convenient to expose a smaller MemoryRegion (for ex: a few bytes) than

Re: [Qemu-devel] [PATCH] memory: size can be different from ptr_size

2018-09-05 Thread Juan Quintela
Marc-André Lureau wrote: > memory_region_init_ram*_ptr() take only the size of the MemoryRegion, > and allocate a RAMBlock with the same size. However, it may be > convenient to expose a smaller MemoryRegion (for ex: a few bytes) than > the RAMBlock (which must be a multiple of TARGET_PAGE_SIZE).

[Qemu-devel] [PATCH] memory: size can be different from ptr_size

2018-09-05 Thread Marc-André Lureau
memory_region_init_ram*_ptr() take only the size of the MemoryRegion, and allocate a RAMBlock with the same size. However, it may be convenient to expose a smaller MemoryRegion (for ex: a few bytes) than the RAMBlock (which must be a multiple of TARGET_PAGE_SIZE). Signed-off-by: Marc-André Lureau