Skip to content
  • Cédric Le Goater's avatar
    398c01da
    aspeed/fby35: Fix owner of the BMC RAM memory region · 398c01da
    Cédric Le Goater authored
    
    
    A MachineState object is used as a owner of the RAM region and this
    asserts in memory_region_init_ram() when QEMU is built with
    CONFIG_QOM_CAST_DEBUG :
    
        /* This will assert if owner is neither NULL nor a DeviceState.
         * We only want the owner here for the purposes of defining a
         * unique name for migration. TODO: Ideally we should implement
         * a naming scheme for Objects which are not DeviceStates, in
         * which case we can relax this restriction.
         */
        owner_dev = DEVICE(owner);
    
    Use the BMC and BIC objects as the owners of their memory regions.
    
    Cc: Peter Delevoryas <peter@pjd.dev>
    Fixes: 778e14cc ("aspeed: Add AST2600 (BMC) to fby35")
    Reviewed-by: default avatarPeter Delevoryas <peter@pjd.dev>
    Message-Id: <20220727102714.803041-3-clg@kaod.org>
    Signed-off-by: default avatarCédric Le Goater <clg@kaod.org>
    398c01da
    aspeed/fby35: Fix owner of the BMC RAM memory region
    Cédric Le Goater authored
    
    
    A MachineState object is used as a owner of the RAM region and this
    asserts in memory_region_init_ram() when QEMU is built with
    CONFIG_QOM_CAST_DEBUG :
    
        /* This will assert if owner is neither NULL nor a DeviceState.
         * We only want the owner here for the purposes of defining a
         * unique name for migration. TODO: Ideally we should implement
         * a naming scheme for Objects which are not DeviceStates, in
         * which case we can relax this restriction.
         */
        owner_dev = DEVICE(owner);
    
    Use the BMC and BIC objects as the owners of their memory regions.
    
    Cc: Peter Delevoryas <peter@pjd.dev>
    Fixes: 778e14cc ("aspeed: Add AST2600 (BMC) to fby35")
    Reviewed-by: default avatarPeter Delevoryas <peter@pjd.dev>
    Message-Id: <20220727102714.803041-3-clg@kaod.org>
    Signed-off-by: default avatarCédric Le Goater <clg@kaod.org>
Loading