qemu-e2k/include
Dr. David Alan Gilbert 548f52ea06 Make qemu_peek_buffer loop until it gets it's data
Make qemu_peek_buffer repeatedly call fill_buffer until it gets
all the data it requires, or until there is an error.

  At the moment, qemu_peek_buffer will try one qemu_fill_buffer if there
  isn't enough data waiting, however the kernel is entitled to return
  just a few bytes, and still leave qemu_peek_buffer with less bytes
  than it needed.  I've seen this fail in a dev world, and I think it
  could theoretically fail in the peeking of the subsection headers in
  the current world.

Comment qemu_peek_byte to point out it's not guaranteed to work for
  non-continuous peeks

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: ChenLiang <chenliang0016@icloud.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
2014-05-05 22:15:03 +02:00
..
block block: Unlink temporary files in raw-posix/win32 2014-04-30 11:05:00 +02:00
disas
exec tcg: Fix missed pointer size != TCG_TARGET_REG_BITS changes 2014-04-28 11:06:34 -07:00
fpu softfloat: Introduce float32_to_uint64_round_to_zero 2014-04-08 11:20:00 +02:00
hw virtio-net: fix buffer overflow on invalid state load 2014-05-05 14:15:10 +02:00
migration Make qemu_peek_buffer loop until it gets it's data 2014-05-05 22:15:03 +02:00
monitor monitor: Remove unused monitor_print_filename 2014-04-25 09:19:58 -04:00
net
qapi error: Remove some unused headers 2014-04-25 09:19:59 -04:00
qemu trivial patches for 2014-04-28 2014-04-28 13:43:17 +01:00
qom cpu: Avoid QOM casts for CPU() 2014-03-31 19:28:38 +02:00
sysemu kvm: add kvm_{vm,vcpu}_enable_cap 2014-04-30 14:39:39 +02:00
ui
config.h
elf.h
glib-compat.h
qemu-common.h
qemu-io.h
trace.h