On 6 July 2017 at 15:56, Paolo Bonzini wrote:
>
>
> On 06/07/2017 16:52, Peter Maydell wrote:
>> On 5 July 2017 at 13:21, Paolo Bonzini wrote:
>>>
>>>
>>> On 04/07/2017 19:02, Peter Maydell wrote:
Many board models and several devices need to create
On 7 July 2017 at 14:18, Igor Mammedov wrote:
> On Thu, 6 Jul 2017 17:26:10 +0100
> Peter Maydell wrote:
>> * globally rename memory_region_init_ram to memory_region_init_ram_nomigrate
>>(and document that it is the caller's job to arrange to
On Thu, 6 Jul 2017 17:26:10 +0100
Peter Maydell wrote:
> On 6 July 2017 at 15:56, Paolo Bonzini wrote:
> >
> >
> > On 06/07/2017 16:52, Peter Maydell wrote:
> >> On 5 July 2017 at 13:21, Paolo Bonzini wrote:
> >>>
> >>>
>
On Thu, 6 Jul 2017 15:52:44 +0100
Peter Maydell wrote:
> On 5 July 2017 at 13:21, Paolo Bonzini wrote:
> >
> >
> > On 04/07/2017 19:02, Peter Maydell wrote:
> >> Many board models and several devices need to create auxiliary
> >> regions of RAM
On 07/07/2017 13:58, Peter Maydell wrote:
>>>
>>> memory_region_init_ram(mr, owner, name, ram_size, );
>>> if (err) {
>>> error_propagate(errp, err);
>>> return;
>>> }
>>> /* Note that owner_dev may be NULL if owner is not a DeviceState;
>>> * in that case
On 6 July 2017 at 18:26, Paolo Bonzini wrote:
>
>
> On 06/07/2017 19:13, Peter Maydell wrote:
>> Slightly awkward because owner is an Object but vmstate_register_ram()
>> needs a DeviceState. Is this OK, or too much magic?
>>
>> DeviceState *owner_dev;
>> Error *err =
On 07/07/2017 12:43, Peter Maydell wrote:
> On 6 July 2017 at 18:47, Peter Maydell wrote:
>> On 6 July 2017 at 18:26, Paolo Bonzini wrote:
>>> Maybe, for memory_region_init_ram only, the owner argument can be made a
>>> DeviceState (or NULL)?
>>
On 6 July 2017 at 18:47, Peter Maydell wrote:
> On 6 July 2017 at 18:26, Paolo Bonzini wrote:
>> Maybe, for memory_region_init_ram only, the owner argument can be made a
>> DeviceState (or NULL)?
>
> Something that might influence things here -- of
On 6 July 2017 at 18:26, Paolo Bonzini wrote:
>
>
> On 06/07/2017 19:13, Peter Maydell wrote:
>> Slightly awkward because owner is an Object but vmstate_register_ram()
>> needs a DeviceState. Is this OK, or too much magic?
>>
>> DeviceState *owner_dev;
>> Error *err =
On 06/07/2017 19:13, Peter Maydell wrote:
> Slightly awkward because owner is an Object but vmstate_register_ram()
> needs a DeviceState. Is this OK, or too much magic?
>
> DeviceState *owner_dev;
> Error *err = NULL;
>
> memory_region_init_ram(mr, owner, name, ram_size, );
>
On 5 July 2017 at 13:21, Paolo Bonzini wrote:
>
>
> On 04/07/2017 19:02, Peter Maydell wrote:
>> Many board models and several devices need to create auxiliary
>> regions of RAM (in addition to the main lump of 'system' memory),
>> to model static RAMs, video memory, ROMs,
On 06/07/2017 18:26, Peter Maydell wrote:
>
> I think that to avoid getting tangled up in trying to fix
> or deal with these handful of oddball cases at the same time
> as doing a global change to the easy cases, we should:
>
> * globally rename memory_region_init_ram to
On 6 July 2017 at 15:56, Paolo Bonzini wrote:
>
>
> On 06/07/2017 16:52, Peter Maydell wrote:
>> On 5 July 2017 at 13:21, Paolo Bonzini wrote:
>>>
>>>
>>> On 04/07/2017 19:02, Peter Maydell wrote:
Many board models and several devices need to create
On 06/07/2017 16:52, Peter Maydell wrote:
> On 5 July 2017 at 13:21, Paolo Bonzini wrote:
>>
>>
>> On 04/07/2017 19:02, Peter Maydell wrote:
>>> Many board models and several devices need to create auxiliary
>>> regions of RAM (in addition to the main lump of 'system'
On 5 July 2017 at 13:21, Paolo Bonzini wrote:
>
>
> On 04/07/2017 19:02, Peter Maydell wrote:
>> Many board models and several devices need to create auxiliary
>> regions of RAM (in addition to the main lump of 'system' memory),
>> to model static RAMs, video memory, ROMs,
On 04/07/2017 19:02, Peter Maydell wrote:
> Many board models and several devices need to create auxiliary
> regions of RAM (in addition to the main lump of 'system' memory),
> to model static RAMs, video memory, ROMs, etc. Currently they do
> this with a sequence like:
>
Many board models and several devices need to create auxiliary
regions of RAM (in addition to the main lump of 'system' memory),
to model static RAMs, video memory, ROMs, etc. Currently they do
this with a sequence like:
memory_region_init_ram(sram, NULL, "sram", 0x1, _fatal);
17 matches
Mail list logo