Andrey Shinkevich 897dd0ec4f block: include supported_read_flags into BDS structure
Add the new member supported_read_flags to the BlockDriverState
structure. It will control the flags set for copy-on-read operations.
Make the block generic layer evaluate supported read flags before they
go to a block driver.

Suggested-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Signed-off-by: Andrey Shinkevich <andrey.shinkevich@virtuozzo.com>
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
 [vsementsov: use assert instead of abort]
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-Id: <20201216061703.70908-8-vsementsov@virtuozzo.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
2021-01-26 14:36:37 +01:00
..
2020-09-07 12:31:31 +02:00
2020-11-09 15:44:21 +01:00
2021-01-08 15:13:38 +00:00
2021-01-12 12:38:03 +01:00
2021-01-13 10:21:17 +01:00
2021-01-08 15:13:38 +00:00
2020-09-15 11:05:13 +02:00
2020-09-07 12:31:31 +02:00
2020-10-13 13:33:45 +02:00