qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 03/10] s390x/css: add vmstate entities for css


From: Halil Pasic
Subject: Re: [Qemu-devel] [PATCH 03/10] s390x/css: add vmstate entities for css
Date: Tue, 9 May 2017 14:20:06 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0


On 05/08/2017 06:45 PM, Dr. David Alan Gilbert wrote:
> * Halil Pasic (address@hidden) wrote:
>> As a preparation for switching to a vmstate based migration let us
>> introduce vmstate entities (e.g. VMStateDescription) for the css entities
>> to be migrated. Alongside some comments explaining or indicating the not
>> migration of certain members are introduced too.
>>
>> No changes in behavior, we just added some dead code -- which should
>> rise to life soon.
>>
>> Signed-off-by: Halil Pasic <address@hidden>
>> ---
>>  hw/s390x/css.c         | 276 
>> +++++++++++++++++++++++++++++++++++++++++++++++++
>>  include/hw/s390x/css.h |  10 +-
[..]
>>  typedef struct IoAdapter {
>>      uint32_t id;
>>      uint8_t type;
>> @@ -60,10 +262,34 @@ typedef struct ChannelSubSys {
>>      uint64_t chnmon_area;
>>      CssImage *css[MAX_CSSID + 1];
>>      uint8_t default_cssid;
>> +    /* don't migrate */
        /* populated at bus init time, not subject to migration */
>>      IoAdapter *io_adapters[CSS_IO_ADAPTER_TYPE_NUMS][MAX_ISC + 1];
>> +    /* don't migrate */
> 
> You don't say *why*
> 

Because its obvious if you stare at the code for a month or so.
Joke aside let me try again (above and below).

> Dave
> 
        /* migrated by the owning device when get_indicator is called */
>>      QTAILQ_HEAD(, IndAddr) indicator_addresses;

That is by vmstate_info_ind_addr.get == css_get_ind_addr

I know it is convoluted but I don't think it is possible to simplify
the interactions with reasonable effort and within this patch set.
If things can be simplified, this needs to happen before or after the
vmstate conversion IMHO. I would like to keep the mantra no behavior changes
until patch 9 because otherwise it will get so complicated that I won't
feel comfortable myself.

Cheers,
Halil


>>  } ChannelSubSys;
>>  
>>

[..]




reply via email to

[Prev in Thread] Current Thread [Next in Thread]