aboutsummaryrefslogtreecommitdiff
path: root/hw/core/loader.c
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>2021-04-28 18:17:29 +0300
committerKevin Wolf <kwolf@redhat.com>2021-04-30 12:27:47 +0200
commitd71cc67d6880c00ff45e8e26350233694aa4de72 (patch)
tree85f8b8a7b2c0856333a64ac90da88ddadf2f4356 /hw/core/loader.c
parentccdf06c1db192152ac70a1dd974c624f566cb7d4 (diff)
downloadqemu-d71cc67d6880c00ff45e8e26350233694aa4de72.zip
qemu-d71cc67d6880c00ff45e8e26350233694aa4de72.tar.gz
qemu-d71cc67d6880c00ff45e8e26350233694aa4de72.tar.bz2
tests/test-bdrv-graph-mod: add test_parallel_exclusive_write
Add the test that shows that concept of ignore_children is incomplete. Actually, when we want to update something, ignoring permission of some existing BdrvChild, we should ignore also the propagated effect of this child to the other children. But that's not done. Better approach (update permissions on already updated graph) will be implemented later. Now the test fails, so it's added with -d argument to not break make check. Test fails with "Conflicts with use by fl1 as 'backing', which does not allow 'write' on base" because when updating permissions we can ignore original top->fl1 BdrvChild. But we don't ignore exclusive write permission in fl1->base BdrvChild, which is propagated. Correct thing to do is make graph change first and then do permission update from the top node. To run test do ./test-bdrv-graph-mod -d -p /bdrv-graph-mod/parallel-exclusive-write from <build-directory>/tests. Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Message-Id: <20210428151804.439460-2-vsementsov@virtuozzo.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/core/loader.c')
0 files changed, 0 insertions, 0 deletions