QEMU With E2K User Support
Go to file
Kevin Wolf b8684454e1 raw-posix: Fix .bdrv_co_get_block_status() for unaligned image size
Image files with an unaligned image size have a final hole that starts
at EOF, i.e. in the middle of a sector. Currently, *pnum == 0 is
returned when checking the status of this sector. In qemu-img, this
triggers an assertion failure.

In order to fix this, one type for the sector that contains EOF must be
found. Treating a hole as data is safe, so this patch rounds the
calculated number of data sectors up, so that a partial sector at EOF is
treated as a full data sector.

This fixes https://bugzilla.redhat.com/show_bug.cgi?id=1229394

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Tested-by: Cole Robinson <crobinso@redhat.com>
2015-06-12 15:54:01 +02:00
audio
backends
block raw-posix: Fix .bdrv_co_get_block_status() for unaligned image size 2015-06-12 15:54:01 +02:00
bsd-user target-i386: use memory API to implement SMRAM 2015-06-05 17:36:39 +02:00
default-configs mips jazz: compile only in 64 bit 2015-06-11 10:13:29 +01:00
disas target-mips: add MTHC0 and MFHC0 instructions 2015-06-12 09:05:31 +01:00
docs migration: Use normal VMStateDescriptions for Subsections 2015-06-12 06:53:57 +02:00
dtc@65cc4d2748 dtc: Update dtc / libfdt submodule to version 1.4.0 2015-06-03 23:56:49 +02:00
fpu target-s390x: define default NaN values 2015-06-05 01:37:58 +02:00
fsdev
gdb-xml
hw MIPS patches 2015-06-12 2015-06-12 12:49:40 +01:00
include MIPS patches 2015-06-12 2015-06-12 12:49:40 +01:00
libcacard
libdecnumber
linux-headers pc, acpi, virtio 2015-06-11 15:33:38 +01:00
linux-user target-i386: use memory API to implement SMRAM 2015-06-05 17:36:39 +02:00
migration Remove unneeded memset 2015-06-12 06:54:02 +02:00
net vhost-user: Improve -netdev/netdev_add/-net/... error reporting 2015-06-09 07:40:24 +02:00
pc-bios
pixman@87eea99e44
po
qapi
qga
qobject
qom qom: add object_property_add_const_link 2015-06-05 17:36:39 +02:00
roms
scripts Teach analyze-migration.py about section footers 2015-06-12 06:54:01 +02:00
slirp
stubs
target-alpha
target-arm migration: Use normal VMStateDescriptions for Subsections 2015-06-12 06:53:57 +02:00
target-cris
target-i386 migration: Use normal VMStateDescriptions for Subsections 2015-06-12 06:53:57 +02:00
target-lm32
target-m68k
target-microblaze microblaze: cpu: Delete MMAP_SHIFT definition 2015-06-03 14:21:23 +03:00
target-mips target-mips: enable XPA and LPA features 2015-06-12 09:06:03 +01:00
target-moxie
target-openrisc
target-ppc migration: Use normal VMStateDescriptions for Subsections 2015-06-12 06:53:57 +02:00
target-s390x migration: Use normal VMStateDescriptions for Subsections 2015-06-12 06:53:57 +02:00
target-sh4
target-sparc
target-tricore
target-unicore32
target-xtensa
tcg tcg/optimize: rename tcg_constant_folding 2015-06-09 07:00:56 -07:00
tests iotests: qcow2 COW with minimal L2 cache size 2015-06-12 15:54:01 +02:00
trace
ui sdl2: fix crash in handle_windowevent() when restoring the screen size 2015-06-11 14:40:25 +01:00
util QemuOpts: increase number of vm_config_groups 2015-06-10 08:00:37 +02:00
.exrc
.gitignore
.gitmodules
.mailmap
.travis.yml
accel.c
aio-posix.c
aio-win32.c
arch_init.c migration: reduce include files 2015-06-12 06:42:34 +02:00
async.c
balloon.c
block.c
blockdev-nbd.c
blockdev.c
blockjob.c
bootdevice.c
bt-host.c
bt-vhci.c
Changelog
CODING_STYLE
configure Patch queue for ppc - 2015-06-03 2015-06-04 14:04:14 +01:00
COPYING
COPYING.LIB
coroutine-gthread.c
coroutine-sigaltstack.c
coroutine-ucontext.c
coroutine-win32.c
cpu-exec.c
cpus.c migration: Use normal VMStateDescriptions for Subsections 2015-06-12 06:53:57 +02:00
cputlb.c memory: replace cpu_physical_memory_reset_dirty() with test-and-clear 2015-06-05 17:10:00 +02:00
device_tree.c device-tree: Make a common-obj 2015-06-03 14:21:24 +03:00
device-hotplug.c
disas.c
dma-helpers.c
dump.c
exec.c qemu_ram_foreach_block: pass up error value, and down the ramblock name 2015-06-12 06:54:01 +02:00
gdbstub.c
HACKING
hmp-commands.hx
hmp.c
hmp.h
iohandler.c
ioport.c
iothread.c
kvm-all.c kvm: remove special handling of DIRTY_MEMORY_MIGRATION in the dirty log mask 2015-06-05 17:09:59 +02:00
kvm-stub.c
LICENSE
main-loop.c
MAINTAINERS migration: move savevm.c inside migration/ 2015-06-12 06:42:30 +02:00
Makefile arch_init: Drop target-x86_64.conf 2015-06-02 15:15:52 -03:00
Makefile.objs device-tree: Make a common-obj 2015-06-03 14:21:24 +03:00
Makefile.target migration: move savevm.c inside migration/ 2015-06-12 06:42:30 +02:00
memory_mapping.c
memory.c memory: use mr->ram_addr in "is this RAM?" assertions 2015-06-05 17:10:00 +02:00
module-common.c
monitor.c monitor: Fix QMP ABI breakage around "id" 2015-06-08 12:12:11 +01:00
nbd.c
numa.c QemuOpts: Convert qemu_opts_foreach() to Error 2015-06-09 07:37:37 +02:00
os-posix.c
os-win32.c
page_cache.c
qapi-schema.json
qdev-monitor.c QemuOpts: Convert qemu_opt_foreach() to Error 2015-06-09 07:40:23 +02:00
qdict-test-data.txt
qemu-bridge-helper.c
qemu-char.c
qemu-coroutine-io.c
qemu-coroutine-lock.c
qemu-coroutine-sleep.c
qemu-coroutine.c
qemu-doc.texi
qemu-img-cmds.hx
qemu-img.c
qemu-img.texi
qemu-io-cmds.c
qemu-io.c
qemu-log.c
qemu-nbd.c qemu-nbd: Switch to qemu_set_fd_handler 2015-06-05 17:09:58 +02:00
qemu-nbd.texi
qemu-options-wrapper.h
qemu-options.h
qemu-options.hx fw_cfg: insert fw_cfg file blobs via qemu cmdline 2015-06-10 08:06:46 +02:00
qemu-seccomp.c
qemu-tech.texi
qemu-timer.c
qemu.nsi
qemu.sasl
qjson.c
qmp-commands.hx
qmp.c
qtest.c
README
rules.mak
softmmu_template.h softmmu: Add probe_write() 2015-06-11 10:13:28 +01:00
spice-qemu-char.c
tcg-runtime.c
tci.c tcg: Mask TCGMemOp appropriately for indexing 2015-06-09 06:35:29 -07:00
thread-pool.c
thunk.c
tpm.c QemuOpts: Convert qemu_opts_foreach() to Error 2015-06-09 07:37:37 +02:00
trace-events MIPS patches 2015-06-12 2015-06-12 12:49:40 +01:00
translate-all.c translate-all: make less of tb_invalidate_phys_page_range depend on is_cpu_write_access 2015-06-05 17:09:59 +02:00
translate-all.h translate-all: remove unnecessary argument to tb_invalidate_phys_range 2015-06-05 17:09:59 +02:00
user-exec.c exec: move functions to translate-all.h 2015-06-05 17:09:59 +02:00
VERSION
version.rc
vl.c fw_cfg: insert fw_cfg file blobs via qemu cmdline 2015-06-10 08:06:46 +02:00
xen-common-stub.c
xen-common.c
xen-hvm-stub.c
xen-hvm.c memory: prepare for multiple bits in the dirty log mask 2015-06-05 17:09:59 +02:00
xen-mapcache.c

Read the documentation in qemu-doc.html or on http://wiki.qemu-project.org

- QEMU team