QEMU With E2K User Support
Go to file
Eric Blake 5229564b83 test-qga: Actually test 0xff sync bytes
Commit 62c39b3 introduced test-qga, and at face value, appears
to be testing the 'guest-sync' behavior that is recommended for
guests in sending 0xff to QGA to force the parser to reset.  But
this aspect of the test has never actually done anything: the
qmp_fd() call chain converts its string argument into QObject,
then converts that QObject back to the actual string that is
sent over the wire - and the conversion process silently drops
the 0xff byte from the string sent to QGA, thus never resetting
the QGA parser.

An upcoming patch will get rid of the wasteful round trip
through QObject, at which point the string in test-qga will be
directly sent over the wire.

But fixing qmp_fd() to actually send 0xff over the wire is not
all we have to do - the actual QMP parser loudly complains that
0xff is not valid JSON, and sends an error message _prior_ to
actually parsing the 'guest-sync' or 'guest-sync-delimited'
command.  With 'guest-sync', we cannot easily tell if this error
message is a result of our command - which is WHY we invented
the 'guest-sync-delimited' command.  So for the testsuite, fix
things to only check 0xff behavior on 'guest-sync-delimited',
and to loop until we've consumed all garbage prior to the
requested delimiter, which is compatible with the documented actions
that a real QGA client is supposed to do.

Ideally, we'd fix the QGA JSON parser to silently ignore 0xff
rather than sending an error message back, at which point we
could enhance this test for 'guest-sync' as well as for
'guest-sync-delimited'.  But for the sake of this patch, our
testing of 'guest-sync' is no worse than it was pre-patch,
because we have never been sending 0xff over the wire in the
first place.

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20170427215821.19397-11-eblake@redhat.com>
Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com>
[Additional comment squashed in, along with matching commit message
update]
Signed-off-by: Markus Armbruster <armbru@redhat.com>
2017-05-09 09:14:40 +02:00
audio audio: fix WAVState leak 2017-05-04 09:15:45 +02:00
backends hostmem: use host_memory_backend_mr_inited() where proper 2017-04-20 15:22:41 -03:00
block qobject: Use simpler QDict/QList scalar insertion macros 2017-05-09 09:13:51 +02:00
bsd-user bsd-user: align use of mmap_lock to that of linux-user 2017-03-28 10:50:40 +01:00
chardev -----BEGIN PGP SIGNATURE----- 2017-05-05 17:07:55 +01:00
contrib
crypto crypto: Make errp the last parameter of functions 2017-04-24 09:13:22 +02:00
default-configs s390x/3270: Mark non-migratable and enable the device 2017-05-04 10:34:37 +02:00
disas disas/cris.c: Avoid unintentional sign extension 2017-04-03 14:06:59 +01:00
docs trace: fix tcg tracing build breakage 2017-03-28 11:07:46 +01:00
dtc@558cd81bdd dtc: Revert unintentional submodule downgrade from commit c2cabb3422 2017-03-16 14:11:15 +00:00
fpu
fsdev
gdb-xml
hw qobject: Use simpler QDict/QList scalar insertion macros 2017-05-09 09:13:51 +02:00
include qobject: Add helper macros for common scalar insertions 2017-05-08 20:32:14 +02:00
io socket: Make errp the last parameter of socket_connect 2017-04-24 09:12:59 +02:00
libdecnumber
linux-headers
linux-user target/openrisc: implement shadow registers 2017-05-04 09:39:01 +09:00
migration migration/next for 20170504 2017-05-05 16:52:35 +01:00
nbd nbd-client: fix handling of hungup connections 2017-03-27 16:50:36 +02:00
net char: add a /chardevs container 2017-05-04 15:34:41 +04:00
pc-bios pc-bios/s390-ccw.img: update image 2017-05-02 15:08:54 +02:00
pixman@87eea99e44
po
qapi qobject: Use simpler QDict/QList scalar insertion macros 2017-05-09 09:13:51 +02:00
qga qga: Add guest-get-timezone command 2017-04-27 00:40:25 -05:00
qobject qobject: Use simpler QDict/QList scalar insertion macros 2017-05-09 09:13:51 +02:00
qom container: don't leak container reference 2017-05-04 15:34:41 +04:00
replay monitor: Remove monitor parameter from save_vmstate 2017-05-04 10:32:58 +02:00
roms Update OpenBIOS images to 04898e8 built from submodule. 2017-04-22 07:27:20 +01:00
scripts qobject: Add helper macros for common scalar insertions 2017-05-08 20:32:14 +02:00
slirp slirp: VMStatify remaining except for loop 2017-04-29 18:44:16 +02:00
stubs move xen-hvm.c to hw/i386/xen/ 2017-04-25 11:04:34 -07:00
target qobject: Use simpler QDict/QList scalar insertion macros 2017-05-09 09:13:51 +02:00
tcg tcg: Initialize return value after exit_atomic 2017-04-26 19:26:11 +02:00
tests test-qga: Actually test 0xff sync bytes 2017-05-09 09:14:40 +02:00
trace trace: fix tcg tracing build breakage 2017-03-28 11:07:46 +01:00
ui -----BEGIN PGP SIGNATURE----- 2017-05-05 17:07:55 +01:00
util QemuOpts: Simplify qemu_opts_to_qdict() 2017-05-09 09:14:39 +02:00
.dir-locals.el
.exrc
.gitignore qapi: Clean up build of generated documentation 2017-03-16 07:13:02 +01:00
.gitmodules
.mailmap
.shippable.yml
.travis.yml
accel.c
arch_init.c
atomic_template.h
balloon.c
block.c block: Simplify bdrv_append_temp_snapshot() logic 2017-05-09 09:14:39 +02:00
blockdev-nbd.c nbd sockets vnc: Mark problematic address family tests TODO 2017-04-03 17:11:39 +02:00
blockdev.c qobject: Use simpler QDict/QList scalar insertion macros 2017-05-09 09:13:51 +02:00
blockjob.c blockjob: Use bdrv_coroutine_enter to start coroutine 2017-04-11 20:07:15 +08:00
bootdevice.c
bt-host.c
bt-vhci.c
Changelog
CODING_STYLE
configure configure: fix trace backend list for out-of-tree builds 2017-04-28 16:49:41 +01:00
COPYING
COPYING.LIB
cpu-exec-common.c ui/console: ensure do_safe_dpy_refresh holds BQL 2017-03-28 10:52:24 +01:00
cpu-exec.c cpu-exec: update icount after each TB_EXIT 2017-04-10 10:23:38 +01:00
cpus-common.c
cpus.c cpus: call cpu_update_icount on read 2017-04-10 10:23:38 +01:00
cputlb.c
device_tree.c
device-hotplug.c
disas.c
dma-helpers.c
dump.c
exec.c memory: add support getting and using a dirty bitmap copy. 2017-04-24 10:12:28 +02:00
gdbstub.c char: add a /chardevs container 2017-05-04 15:34:41 +04:00
HACKING
hax-stub.c
hmp-commands-info.hx
hmp-commands.hx hmp: gpa2hva and gpa2hpa hostaddr command 2017-04-26 14:42:31 +01:00
hmp.c monitor: Move hmp_info_snapshots from savevm.c to hmp.c 2017-05-04 10:34:15 +02:00
hmp.h monitor: Move hmp_info_snapshots from savevm.c to hmp.c 2017-05-04 10:34:15 +02:00
ioport.c
iothread.c
kvm-all.c
kvm-stub.c
LICENSE
MAINTAINERS coccinelle: Add script to remove useless QObject casts 2017-05-08 20:32:14 +02:00
Makefile trace: Put all trace.o into libqemuutil.a 2017-04-21 10:45:35 +01:00
Makefile.objs target-mips: replace few LOG_DISAS() with trace points 2017-03-20 11:06:32 +00:00
Makefile.target Xen 2017/04/21 + fix 2017-04-26 10:22:31 +01:00
memory_ldst.inc.c
memory_mapping.c
memory.c memory: add support getting and using a dirty bitmap copy. 2017-04-24 10:12:28 +02:00
module-common.c
monitor.c qobject: Use simpler QDict/QList scalar insertion macros 2017-05-09 09:13:51 +02:00
numa.c numa,spapr: align default numa node memory size to 256MB 2017-03-22 11:32:42 +11:00
os-posix.c
os-win32.c
page_cache.c
qapi-schema.json chardev: Basic support for TN3270 2017-05-04 10:34:37 +02:00
qdev-monitor.c migration: Disable hotplug/unplug during migration 2017-04-21 12:25:40 +02:00
qdict-test-data.txt
qemu-bridge-helper.c
qemu-doc.texi
qemu-ga.texi
qemu-img-cmds.hx qemu-img: Document backing options 2017-04-27 17:26:31 +02:00
qemu-img.c qobject: Use simpler QDict/QList scalar insertion macros 2017-05-09 09:13:51 +02:00
qemu-img.texi progress: Show current progress on SIGINFO 2017-04-28 18:48:11 +02:00
qemu-io-cmds.c block: Add errp to b{lk,drv}_truncate() 2017-04-28 16:02:02 +02:00
qemu-io.c qobject: Use simpler QDict/QList scalar insertion macros 2017-05-09 09:13:51 +02:00
qemu-nbd.c qobject: Use simpler QDict/QList scalar insertion macros 2017-05-09 09:13:51 +02:00
qemu-nbd.texi
qemu-option-trace.texi
qemu-options-wrapper.h
qemu-options.h
qemu-options.hx Issue a deprecation warning if the user specifies the "-hdachs" option. 2017-04-27 15:40:40 +02:00
qemu-seccomp.c
qemu-tech.texi
qemu.nsi
qemu.sasl
qmp.c qdev: remove cannot_destroy_with_object_finalize_yet 2017-04-21 07:18:34 +02:00
qtest.c
README
replication.c
replication.h
rules.mak qapi: Clean up build of generated documentation 2017-03-16 07:13:02 +01:00
softmmu_template.h
spice-qemu-char.c
tcg-runtime.c
tci.c
thunk.c
tpm.c
trace-events move xen-mapcache.c to hw/i386/xen/ 2017-04-25 11:04:34 -07:00
translate-all.c
translate-all.h
translate-common.c
user-exec-stub.c
user-exec.c user-exec: handle synchronous signals from QEMU gracefully 2017-03-28 10:50:35 +01:00
VERSION Open 2.10 development tree 2017-04-20 15:42:31 +01:00
version.rc
vl.c -----BEGIN PGP SIGNATURE----- 2017-05-05 17:07:55 +01:00

         QEMU README
         ===========

QEMU is a generic and open source machine & userspace emulator and
virtualizer.

QEMU is capable of emulating a complete machine in software without any
need for hardware virtualization support. By using dynamic translation,
it achieves very good performance. QEMU can also integrate with the Xen
and KVM hypervisors to provide emulated hardware while allowing the
hypervisor to manage the CPU. With hypervisor support, QEMU can achieve
near native performance for CPUs. When QEMU emulates CPUs directly it is
capable of running operating systems made for one machine (e.g. an ARMv7
board) on a different machine (e.g. an x86_64 PC board).

QEMU is also capable of providing userspace API virtualization for Linux
and BSD kernel interfaces. This allows binaries compiled against one
architecture ABI (e.g. the Linux PPC64 ABI) to be run on a host using a
different architecture ABI (e.g. the Linux x86_64 ABI). This does not
involve any hardware emulation, simply CPU and syscall emulation.

QEMU aims to fit into a variety of use cases. It can be invoked directly
by users wishing to have full control over its behaviour and settings.
It also aims to facilitate integration into higher level management
layers, by providing a stable command line interface and monitor API.
It is commonly invoked indirectly via the libvirt library when using
open source applications such as oVirt, OpenStack and virt-manager.

QEMU as a whole is released under the GNU General Public License,
version 2. For full licensing details, consult the LICENSE file.


Building
========

QEMU is multi-platform software intended to be buildable on all modern
Linux platforms, OS-X, Win32 (via the Mingw64 toolchain) and a variety
of other UNIX targets. The simple steps to build QEMU are:

  mkdir build
  cd build
  ../configure
  make

Additional information can also be found online via the QEMU website:

  http://qemu-project.org/Hosts/Linux
  http://qemu-project.org/Hosts/Mac
  http://qemu-project.org/Hosts/W32


Submitting patches
==================

The QEMU source code is maintained under the GIT version control system.

   git clone git://git.qemu-project.org/qemu.git

When submitting patches, the preferred approach is to use 'git
format-patch' and/or 'git send-email' to format & send the mail to the
qemu-devel@nongnu.org mailing list. All patches submitted must contain
a 'Signed-off-by' line from the author. Patches should follow the
guidelines set out in the HACKING and CODING_STYLE files.

Additional information on submitting patches can be found online via
the QEMU website

  http://qemu-project.org/Contribute/SubmitAPatch
  http://qemu-project.org/Contribute/TrivialPatches


Bug reporting
=============

The QEMU project uses Launchpad as its primary upstream bug tracker. Bugs
found when running code built from QEMU git or upstream released sources
should be reported via:

  https://bugs.launchpad.net/qemu/

If using QEMU via an operating system vendor pre-built binary package, it
is preferable to report bugs to the vendor's own bug tracker first. If
the bug is also known to affect latest upstream code, it can also be
reported via launchpad.

For additional information on bug reporting consult:

  http://qemu-project.org/Contribute/ReportABug


Contact
=======

The QEMU community can be contacted in a number of ways, with the two
main methods being email and IRC

 - qemu-devel@nongnu.org
   http://lists.nongnu.org/mailman/listinfo/qemu-devel
 - #qemu on irc.oftc.net

Information on additional methods of contacting the community can be
found online via the QEMU website:

  http://qemu-project.org/Contribute/StartHere

-- End