summary refs log tree commit diff stats
path: root/python/qemu/utils/accel.py
diff options
context:
space:
mode:
authorHanna Reitz <hreitz@redhat.com>2021-11-15 15:53:58 +0100
committerHanna Reitz <hreitz@redhat.com>2021-11-16 09:43:36 +0100
commita225369bce684c01095be52e1014e3fa91dec210 (patch)
tree55c3c6431bb5cc11b8f096355dc9b5788fde02f0 /python/qemu/utils/accel.py
parent8d3dd037d947ce96c42c376ef0bb5e5c6ef96cbe (diff)
downloadfocaccia-qemu-a225369bce684c01095be52e1014e3fa91dec210.tar.gz
focaccia-qemu-a225369bce684c01095be52e1014e3fa91dec210.zip
block: Manipulate children list in .attach/.detach
The children list is specific to BDS parents.  We should not modify it
in the general children modification code, but let BDS parents deal with
it in their .attach() and .detach() methods.

This also has the advantage that a BdrvChild is removed from the
children list before its .bs pointer can become NULL.  BDS parents
generally assume that their children's .bs pointer is never NULL, so
this is actually a bug fix.

Signed-off-by: Hanna Reitz <hreitz@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20211111120829.81329-3-hreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20211115145409.176785-3-kwolf@redhat.com>
Signed-off-by: Hanna Reitz <hreitz@redhat.com>
Diffstat (limited to 'python/qemu/utils/accel.py')
0 files changed, 0 insertions, 0 deletions