migration: don't segfault on invalid input
host_from_stream_offset returns NULL on error,return error instead of trying to use that address,to avoid segfault on invalid stream.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
virtio: sanity-check available index
Checking available index upon load instead ofonly when vm is running makes is easier todebug failures.
net: properly handle illegal fd/vhostfd from command line
When hanlding fd/vhostfd form command line through net_handle_fd_param(),we need to check mon and return value of strtol() otherwise we couldget segmentation fault or invalid fd when user type an illegal fd/vhostfd....
qemu-options.def: add to generated header list
All files include qemu-options.h which pulls in qemu-options.def fromthe root directory. Thus generating qemu-options.def from Makefile.objsunder the target directory is not effective.
Further, people expect .def file to get cleaned with make clean:...
qemu-timer: move commonly used timer code to qemu-timer-common
Move timer init functions to a new file, qemu-timer-common.c. Make othercritical timer functions inlined to preserve performance inqemu-timer.c, also move muldiv64() (used by the inline functions)...
rewrite i386 tests Makefile
1) compute path to i386 compiler from configure. If it is found, runthe i386 tests. I use macros so that this approach could be appliedfor other arches as well.
2) provide an easily extensible way to add tests
Most tests fail, but at least "make test" does something meaningful....
fix test_path
path.c grew quite a few new dependencies (mostly via cutils.c),include them.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
make runcom compile on recent distributions
disable test_enter on i386, it is broken
Many other tests fail, but this has an infinite loop with bothqemu-i386 and native execution (albeit on x86_64), so there issomething more going on. I'm not going to debug it now, so justdisable the test.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>...
unbreak "make" from vpath-built tests directory
View all revisions | View revisions
Also available in: Atom