On 10/03/2017 09:59, Peter Xu wrote: >> What is the effect of the bug? The idea was to do the initialization >> once only (memory_region_size ought to be 0 when the MR is >> uninitialized; now it is ugly but it made more sense when MemoryRegion >> was just a C struct and not a QOM object). > It's not really a bug. I just saw it, thought it was something not > quite right, so posted a patch. Since it's intended, then please > ignore this patch, and sorry for the noise... :)
It's intended but ugly. :) Peter's idea is a good one if you want to implement something along those lines. Paolo