summary refs log tree commit diff stats
path: root/hw/display/vhost-user-gpu-pci.c
diff options
context:
space:
mode:
authorSam Eiderman <shmuel.eiderman@oracle.com>2019-05-23 19:33:35 +0300
committerMax Reitz <mreitz@redhat.com>2019-05-28 20:30:55 +0200
commit4ebe0617269113ec52a74d3dbb574a62ef6a0c83 (patch)
tree54a7832039c73f14f539692344b498f55fb3502c /hw/display/vhost-user-gpu-pci.c
parentb441dc71c0b7e8f488a6ebc2aa781b08a3a05038 (diff)
downloadfocaccia-qemu-4ebe0617269113ec52a74d3dbb574a62ef6a0c83.tar.gz
focaccia-qemu-4ebe0617269113ec52a74d3dbb574a62ef6a0c83.zip
qemu-img: rebase: Reuse parent BlockDriverState
In safe mode we open the entire chain, including the parent backing
file of the rebased file.
Do not open a new BlockBackend for the parent backing file, which
saves opening the rest of the chain twice, which for long chains
saves many "pricy" bdrv_open() calls.

Permissions for blk_new() were copied from blk_new_open() when
flags = 0.

Reviewed-by: Karl Heubaum <karl.heubaum@oracle.com>
Reviewed-by: Eyal Moscovici <eyal.moscovici@oracle.com>
Signed-off-by: Sagi Amit <sagi.amit@oracle.com>
Co-developed-by: Sagi Amit <sagi.amit@oracle.com>
Signed-off-by: Sam Eiderman <shmuel.eiderman@oracle.com>
Message-id: 20190523163337.4497-2-shmuel.eiderman@oracle.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'hw/display/vhost-user-gpu-pci.c')
0 files changed, 0 insertions, 0 deletions