summary refs log tree commit diff stats
path: root/hw/intc/grlib_irqmp.c
diff options
context:
space:
mode:
authorFam Zheng <famz@redhat.com>2013-12-20 09:48:48 +0800
committerStefan Hajnoczi <stefanha@redhat.com>2013-12-20 13:56:56 +0100
commit917703c179d4483d050fe112a2a81acec3d6ffd7 (patch)
tree8d669e3cbe2cab3594bf99f3c4026b2c1ece5cc8 /hw/intc/grlib_irqmp.c
parentb47053bd0359c68094d7a25a65687c0844771e34 (diff)
downloadfocaccia-qemu-917703c179d4483d050fe112a2a81acec3d6ffd7.tar.gz
focaccia-qemu-917703c179d4483d050fe112a2a81acec3d6ffd7.zip
vmdk: Allow vmdk_create to work with protocol
This improves vmdk_create to use bdrv_* functions to replace qemu_open
and other fd functions. The error handling are improved as well. One
difference is that bdrv_pwrite will round up buffer to sectors, so for
description file, an extra bdrv_truncate is used in the end to drop
inding zeros.

Notes:

 - A bonus bug fix is correct endian is used in initializing GD entries.

 - ROUND_UP and DIV_ROUND_UP are used where possible.

I tested that new code produces exactly the same file as previously.

Signed-off-by: Fam Zheng <famz@redhat.com>
Tested-by: Peter Lieven <pl@kamp.de>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'hw/intc/grlib_irqmp.c')
0 files changed, 0 insertions, 0 deletions