Statistics
| Branch: | Revision:

root / scripts @ d82287de

# Date Author Comment
eac236ea 12/23/2012 10:28 pm Lluís Vilanova

build: Use separate makefile for "trace/"

Reviewed-by: Paolo Bonzini <>
Signed-off-by: Lluís Vilanova <>
--
Changes in v2:

  • Do not depend on "qemu-timer-common.o".
  • Use "$(obj)" in rules to refer to the build sub-directory....
1de7afc9 12/19/2012 09:32 am Paolo Bonzini

misc: move include files to include/qemu/

Signed-off-by: Paolo Bonzini <>

7b1b5d19 12/19/2012 09:31 am Paolo Bonzini

qapi: move include files to include/qobject/

Signed-off-by: Paolo Bonzini <>

022c62cb 12/19/2012 09:31 am Paolo Bonzini

exec: move include files to include/exec/

Signed-off-by: Paolo Bonzini <>

79ee7df8 12/19/2012 09:31 am Paolo Bonzini

qapi: move inclusions of qemu-common.h from headers to .c files

Signed-off-by: Paolo Bonzini <>

4167c42c 12/19/2012 09:31 am Paolo Bonzini

qapi: remove qapi/qapi-types-core.h

The file is only including error.h and qerror.h. Prefer explicit
inclusion of whatever files are needed.
Signed-off-by: Paolo Bonzini <>

c84a2b1a 12/12/2012 11:41 pm Michael S. Tsirkin

get_maintainer.pl: update from linix 3.8

Signed-off-by: Michael S. Tsirkin <>

c562d15d 11/19/2012 04:32 pm Anthony Liguori

Merge remote-tracking branch 'stefanha/tracing' into staging

  • stefanha/tracing:
    trace: Remove "info trace" from documents
    trace: document '-' syntax for disabling events
    trace: allow disabling events in events file
    Avoid all systemtap reserved words...
81dee729 11/16/2012 02:12 pm Daniel P. Berrange

Avoid all systemtap reserved words

Over time various systemtap reserved words have been blacklisted
in the trace backend generator. The list is not complete though,
so there is continued risk of problems in the future. Preempt
such problems by specifying the full list of systemtap keywords...

da4fea06 11/15/2012 03:46 am Igor Mammedov

qapi-types.h: Don't include qemu-common.h

Needed to prevent build breakage when CPUState becomes a child of
DeviceState.

Signed-off-by: Igor Mammedov <>
[ehabkost: include <stdbool.h> too]
Signed-off-by: Eduardo Habkost <>...

b55f546e 10/31/2012 03:39 am Peter Maydell

update-linux-headers.sh: Handle new kernel uapi/ directories

Recent kernels have moved to keeping the userspace headers
in uapi/ subdirectories. This breaks the detection of whether an
architecture has KVM support in the kernel because kvm.h has
moved in the kernel source tree. Update the check to support...

1b3e6f88 10/29/2012 08:41 pm Heinz Graalfs

s390/kvm_stat: correct sys_perf_event_open syscall number

Correct sys_perf_event_open syscall number for s390 architecture
- the hardcoded syscall number 298 is for x86 but should
be different for other architectures.
In case we figure out via /proc/cpuinfo that we are running...

97f34615 10/05/2012 03:52 am Anthony Liguori

Merge remote-tracking branch 'qmp/queue/qmp' into staging

  • qmp/queue/qmp:
    block: live snapshot documentation tweaks
    input: index_from_key(): drop unused code
    qmp: qmp_send_key(): accept key codes in hex
    input: qmp_send_key(): simplify
    hmp: dump-guest-memory: hardcode protocol argument to "file:"...
df8c1b02 10/01/2012 04:04 pm Alex Williamson

Update kernel header script to include vfio

Signed-off-by: Alex Williamson <>
Acked-by: Michael S. Tsirkin <>
Signed-off-by: Anthony Liguori <>

eda50a65 09/26/2012 04:45 pm Paolo Bonzini

qapi: do not protect enum values from namespace pollution

Enum values are always preceded by the uppercase name of the enum, so
they do not conflict with reserved words.

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Luiz Capitulino <>

1057725f 09/26/2012 04:45 pm Paolo Bonzini

qapi: add "unix" to the set of reserved words

It is #defined to 1.

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Luiz Capitulino <>

d8f8a860 09/23/2012 09:11 am Alon Levy

dtrace backend: add function to reserved words

Signed-off-by: Alon Levy <>
Signed-off-by: Stefan Hajnoczi <>

2879636d 09/12/2012 12:14 am Peter Maydell

update-linux-headers.sh: Don't hard code list of architectures

Rather than hardcoding the list of architectures in the kernel
header update script, just import headers for every architecture
which supports KVM (with a blacklist exception for ia64 which
has KVM headers but is dead). This reduces the number of QEMU...

e22b1e99 09/10/2012 04:04 pm Aurelien Jarno

Merge branch 'queue/qmp' of git://repo.or.cz/qemu/qmp-unstable

  • 'queue/qmp' of git://repo.or.cz/qemu/qmp-unstable:
    tcx: tcx_screen_dump(): add error handling
    tcx: tcx24_screen_dump(): add error handling
    g364fb: g364fb_screen_dump(): add error handling...
a99ac041 09/05/2012 10:17 pm Don Slutz

CHECKPATCH: Add --debug adv_dcs

Add debug options to find this issue. They were not listed
in the help because the are not simple to understand the output of.

Signed-off-by: Don Slutz <>
Signed-off-by: Blue Swirl <>

5424302e 09/05/2012 10:17 pm Don Slutz

CHECKPATCH: Add --debug adv_checking

Add debug options to find this issue. They were not listed
in the help because the are not simple to understand the output of.

Signed-off-by: Don Slutz <>
Signed-off-by: Blue Swirl <>

69402a69 09/05/2012 10:17 pm Don Slutz

CHECKPATCH: Add --debug adv_apw

Add debug options to find this issue. They were not listed
in the help because the are not simple to understand the output of.

Signed-off-by: Don Slutz <>
Signed-off-by: Blue Swirl <>

dfe7053a 09/05/2012 10:17 pm Don Slutz

CHECKPATCH: Add warning for single else statement.

For an example:

WARNING: braces {} are necessary even for single statement blocks
+ } else
+ return env->regs[R_EAX];

total: 0 errors, 1 warnings, 41 lines checked
Signed-off-by: Don Slutz <>...

227ccf6b 09/05/2012 09:48 pm Stefan Weil

qapi: Fix potential NULL pointer segfault

Report from smatch:

qapi-visit.c:1640 visit_type_BlockdevAction(8) error:
we previously assumed 'obj' could be null (see line 1639)
qapi-visit.c:2432 visit_type_NetClientOptions(8) error:
we previously assumed 'obj' could be null (see line 2431)...

b9c4b48d 09/05/2012 09:48 pm Amos Kong

qapi: generate list struct and visit_list for enum

Currently, if we define an 'enum' and use it in one command's
data, list struct for enum could not be generated, but it's
used in qmp function.

For example: KeyCodesList could not be generated.

qapi-schema.json:...

d1186a33 08/15/2012 09:25 pm Anthony Liguori

Merge remote-tracking branch 'stefanha/trivial-patches' into staging

  • stefanha/trivial-patches:
    ivshmem, qdev-monitor: fix order of qerror parameters
    iov_send_recv(): Handle zero bytes case even if OS does not
    framebuffer: Fix spelling in comment (leight -> height)...
cc921867 08/15/2012 07:15 pm Anthony Liguori

Merge remote-tracking branch 'qemu-kvm/uq/master' into staging

  • qemu-kvm/uq/master:
    update-linux-headers.sh: Pull in asm-generic/kvm_para.h
    kvmvapic: Disable if there is insufficient memory
    kvm: i8254: Finish time conversion fix
    kvm: i8254: Cache kernel clock offset in KVMPITState
eda5edd1 08/15/2012 05:18 pm Stefan Weil

trace: Fix "Qemu" -> "QEMU"

Signed-off-by: Stefan Weil <>
Signed-off-by: Stefan Hajnoczi <>

256d046c 08/15/2012 01:23 am Peter Maydell

update-linux-headers.sh: Pull in asm-generic/kvm_para.h

Add asm-generic/kvm_para.h to the set of non-architecture specific
KVM kernel headers we copy into QEMU. This header may be included
by an architecture's kvm_para.h header.

Reviewed-by: Jan Kiszka <>...

964d0a7b 08/14/2012 03:19 pm Stefan Weil

trace/simple: Fix compiler warning for 32 bit hosts

gcc complains when a 32 bit pointer is casted to a 64 bit integer.

Cc: Stefan Hajnoczi <>
Signed-off-by: Stefan Weil <>
Signed-off-by: Stefan Hajnoczi <>

08b76b9f 08/13/2012 10:10 pm Luiz Capitulino

scripts: qapi-commands.py: qmp-commands.h: include qdict.h

qmp-commands.h declares several functions that have arguments of
type QDict. However, qdict.h is not included. This will cause a
build breakage when a file includes qmp-commands.h but doesn't
include qdict.h....

ac4ff701 08/13/2012 07:21 pm Luiz Capitulino

qapi: don't convert enum strings to lowercase

Next commit will introduce enum strings in camel case.

Signed-off-by: Luiz Capitulino <>
Reviewed-by: Markus Armbruster <>

f01f594b 08/13/2012 07:21 pm Luiz Capitulino

qapi: generate correct enum names for camel case enums

An enum like GenericError in the schema, should generate
GENERIC_ERROR and not GENERICERROR.

Signed-off-by: Luiz Capitulino <>
Reviewed-by: Markus Armbruster <>

b68a8472 08/13/2012 07:20 pm Luiz Capitulino

qapi: qapi-types.h: don't include qapi/qapi-types-core.h

qapi-types.h needs only qemu-common.h. Including qapi-types-core.h
causes problems when qerror.h or error.h includes qapi-types.h.

Signed-off-by: Luiz Capitulino <>
Reviewed-by: Markus Armbruster <>

427a1a2c 08/09/2012 09:34 pm Blue Swirl

qapi: avoid reserved keywords

Clang compiler complained about use of reserved word 'restrict' in SLIRP
and QAPI.

Prefix C keywords with "q_", adjust SLIRP accordingly.

Reviewed-by: Markus Armbruster <>
Signed-off-by: Blue Swirl <>

e0d45df7 08/02/2012 12:09 am Luiz Capitulino

qapi: qapi.py: allow the "'" character to be escaped

Support escaping the escape character, and make more robust (don't die
for '', handle ' without matching '.

Signed-off-by: Markus Armbruster <>
Reviewed-by: Peter Maydell <>...

a2114348 07/23/2012 09:15 pm Anthony Liguori

Merge remote-tracking branch 'stefanha/net' into staging

  • stefanha/net:
    remove unused QemuOpts parameter from net init functions
    convert net_init_bridge() to NetClientOptions
    convert net_init_tap() to NetClientOptions
    convert net_init_vde() to NetClientOptions...
d195325b 07/23/2012 01:55 pm Paolo Bonzini

qapi: fix error propagation

Don't overwrite / leak previously set errors.
Make traversal cope with missing mandatory sub-structs.
Don't try to end a container that could not be started.

v1->v2:
- unchanged

v2->v3:
- instead of examining, assert that we never overwrite errors with...

c46f18ce 07/23/2012 01:55 pm Laszlo Ersek

qapi: generate C types for fixed-width integers

(Long line folded using parens:
<http://www.python.org/dev/peps/pep-0008/#maximum-line-length>.)

Signed-off-by: Laszlo Ersek <>
Signed-off-by: Stefan Hajnoczi <>

092705d4 07/23/2012 01:55 pm Laszlo Ersek

qapi: introduce "size" type

v1->v2:
- fall back to uint64 rather than int

Signed-off-by: Laszlo Ersek <>
Signed-off-by: Stefan Hajnoczi <>

62bab732 07/19/2012 01:34 pm Harsh Prateek Bora

Simpletrace v2: Support multiple arguments, strings.

Existing simpletrace backend allows to trace at max 6 args and does not
support strings. This newer tracelog format gets rid of fixed size records
and therefore allows to trace variable number of args including strings....

90a147a2 07/19/2012 01:34 pm Harsh Prateek Bora

Update simpletrace.py for new log format

Support new tracelog format for multiple arguments and strings.

Signed-off-by: Harsh Prateek Bora <>
Signed-off-by: Stefan Hajnoczi <>

34bb443e 07/17/2012 11:43 pm Anthony Liguori

build: add make dist target (v2)

Let's stop screwing up releases by having a script do the work that Anthony's
fat fingers can't seem to get right.

Cc: Michael Roth <>
Reviewed-by: Eric Blake <>
Tested-by: Michael Roth <>...

e0a3dc7c 06/26/2012 11:09 pm Anthony Liguori

Merge remote-tracking branch 'stefanha/trivial-patches' into staging

  • stefanha/trivial-patches:
    tci: Support INDEX_op_bswap64_i64
    target-i386: Use QEMU instead of Qemu
    Makefile.hw: avoid overly large 'make clean' rm command
    configure: Fix typo
    arm_gic: Send dbg msgs to stderr not stdout...
9964d8f9 06/22/2012 11:41 am Stefan Weil

checkpatch: Add QEMU specific rule

The new rule detects two wrong variants of QEMU.
It was tested with commit b5a8fe5e.

Signed-off-by: Stefan Weil <>
Signed-off-by: Stefan Hajnoczi <>

c5854acb 06/18/2012 04:32 pm Jens Freimann

s390: make kvm_stat work on s390

Add s390_exit_reasons so kvm_stat doesn't crash when called on s390.
Look for 'vendor_id' in /proc/cpuinfo as well, instead of just for
'flags', so we can determine if we run on S390.

Signed-off-by: Jens Freimann <>...

74f4d227 06/03/2012 02:56 am Anthony Liguori

Merge remote-tracking branch 'qemu-kvm/uq/master' into staging

  • qemu-kvm/uq/master:
    virtio/vhost: Add support for KVM in-kernel MSI injection
    msix: Add msix_nr_vectors_allocated
    kvm: Enable use of kvm_irqchip_in_kernel in hwlib code
    kvm: Introduce kvm_irqchip_add/remove_irqfd...
287d55c6 05/18/2012 05:30 am Avi Kivity

kvm: update vmxcap for EPT A/D, INVPCID, RDRAND, VMFUNC

Signed-off-by: Avi Kivity <>
Signed-off-by: Marcelo Tosatti <>

d34b867d 05/15/2012 05:15 pm Luiz Capitulino

qapi: add support for command options

Options allow for changes in commands behavior. This commit introduces
the QCO_NO_SUCCESS_RESP option, which causes a command to not emit a
success response.

This is needed by commands such as qemu-ga's guest-shutdown, which...

90f2cefb 05/08/2012 07:15 pm Andreas Färber

scripts/qemu-binfmt-conf.sh: Fix shell syntax

The script is organized as a sequence of binfmt registrations, with a
check whether the to be registered architecture matches the host.

Add a missing fi for the SuperH section.

Reported-by: Alexander Graf <>...

662da385 05/01/2012 10:15 pm Stefan Hajnoczi

tracetool: use Python 2.4-compatible exception handling syntax

The newer "except <exception-type> as <exception>:" syntax is not
supported by Python 2.4, we need to use "except <exception-type>,
<exception>:".

Tested all trace backends with Python 2.4.
...

45d6c787 05/01/2012 10:15 pm Stefan Hajnoczi

tracetool: use Python 2.4-compatible import() arguments

In Python 2.5 keyword arguments were added to import(). Avoid using
them to achieve Python 2.4 compatibility.

Signed-off-by: Stefan Hajnoczi <>
Reviewed-by: Lluís Vilanova <>

b3ef0ade 05/01/2012 10:15 pm Stefan Hajnoczi

tracetool: avoid str.rpartition() Python 2.5 function

The str.rpartition() function is related to str.split() and is used for
splitting strings. It was introduced in Python 2.5 and therefore cannot
be used in tracetool as Python 2.4 compatibility is required....

9943e0ec 05/01/2012 10:15 pm Stefan Hajnoczi

tracetool: avoid pkgutil.iter_modules() Python 2.7 function

The pkgutil.iter_modules() function provides a way to enumerate child
modules. Unfortunately it's missing in Python <2.7 so we must implement
similar behavior ourselves.

Signed-off-by: Stefan Hajnoczi <>...

c41cc50f 04/24/2012 05:50 pm Eduardo Habkost

create_config: remove *dir block

Now only the qemu_*dir variables will become #defines. The other
directory names aren't used by the C code.

That means the following #defines won't be available in C code anymore:

- CONFIG_QEMU_BINDIR
- CONFIG_QEMU_LIBDIR...
0b3b7174 04/24/2012 05:50 pm Eduardo Habkost

create_config: simplify prefix=* block, remove CONFIG_QEMU_PREFIX

As now that block handles only the prefix variable, the code can be much
simpler. This also removes the CONFIG_QEMU_PREFIX define as it is not
used by any C code.

Signed-off-by: Eduardo Habkost <>...

eb72952b 04/24/2012 05:50 pm Eduardo Habkost

create_config: separate section for qemu_*dir variables (v2)

The generic dir section will eventually go away and be replaced with
qemu_
section. By now, both sections will be kept, while the variables
get renamed on config-host.mak.

With this patch, a XXXdir variable will become a CONFIG_QEMU_XXXDIR...

9008d85a 04/18/2012 04:03 pm Lluís Vilanova

tracetool: Add support for the 'stderr' backend

Signed-off-by: Lluís Vilanova <>
Signed-off-by: Stefan Hajnoczi <>

dd03a39e 04/18/2012 04:03 pm Lluís Vilanova

tracetool: Add support for the 'simple' backend

Signed-off-by: Lluís Vilanova <>
Signed-off-by: Stefan Hajnoczi <>

fbc54b94 04/18/2012 04:03 pm Lluís Vilanova

tracetool: Add support for the 'ust' backend

Signed-off-by: Lluís Vilanova <>
Signed-off-by: Stefan Hajnoczi <>

52ef093a 04/18/2012 04:03 pm Lluís Vilanova

tracetool: Add support for the 'dtrace' backend

Signed-off-by: Lluís Vilanova <>
Signed-off-by: Stefan Hajnoczi <>

256a721d 04/18/2012 04:03 pm Stefan Hajnoczi

tracetool: handle DTrace keywords 'in', 'next', 'self'

Language keywords cannot be used as argument names. The DTrace backend
appends an underscore to the argument name in order to make the argument
name legal.

This patch adds 'in', 'next', and 'self' keywords to dtrace.py....

650ab98d 04/18/2012 04:02 pm Lluís Vilanova

tracetool: Rewrite infrastructure as python modules

The tracetool script is written in shell and has hit several portability
problems due to shell quirks or external tools across host platforms.
Additionally the amount of string processing and lack of real data...

5de7f9c8 04/18/2012 04:02 pm Lluís Vilanova

tracetool: Add module for the 'c' format

Signed-off-by: Lluís Vilanova <>
Signed-off-by: Stefan Hajnoczi <>

c419e62a 04/18/2012 04:02 pm Lluís Vilanova

tracetool: Add module for the 'h' format

Signed-off-by: Lluís Vilanova <>
Signed-off-by: Stefan Hajnoczi <>

0d6b9cc7 04/16/2012 04:41 pm Jan Kiszka

signrom: Rewrite as python script

Now that we have a hard dependency on python anyway, we can replace the
slow shell script to calculate the option ROM checksum with a fast AND
portable python version. Tested both with python 2.7 and 3.1.

Signed-off-by: Jan Kiszka <>

b3c09bde 04/13/2012 01:01 am Stefan Hajnoczi

kvm: add flightrecorder script

The kvm kernel module includes a number of trace events which can be
useful when debugging system behavior. Even on production systems these
trace events can be used to observe guest behavior and identify the
source of problems....

fa6b8733 04/05/2012 03:54 pm Kevin Wolf

tracetool: Forbid argument name 'next'

It has happened more than once that patches that look perfectly sane
and work with simpletrace broke systemtap because they use 'next' as an
argument name for a tracing function. However, 'next' is a keyword for
systemtap, so we shouldn't use it....

aba8e41e 04/02/2012 05:44 pm Anthony Liguori

Merge remote-tracking branch 'stefanha/tracing' into staging

  • stefanha/tracing:
    tracetool: dtrace: handle in and next reserved words
    tracetool: dtrace disabled-events fix
    Makefile.target: code stp dependency on trace-events
bb55b712 03/31/2012 03:03 pm Stefan Weil

Fix conversion from lower to upper case with Turkish locale

Some locale settings let make fail or create wrong results
because tr '[:lower:]' '[:upper:]' which is used to convert
from lower to upper case depends on the locale.

With locale tr_TR.UTF-8, lower case 'i' is not converted to 'I'....

b93b63f5 03/30/2012 04:14 pm Paolo Bonzini

test makefile overhaul

This introduces new test reporting infrastructure based on
gtester and gtester-report.

Also, all existing tests are moved to tests/, and tests/Makefile
is reorganized to factor out the commonalities in the rules.

Signed-off-by: Anthony Liguori <>...

c7f0f3b1 03/30/2012 04:14 pm Anthony Liguori

qtest: add test framework

The idea behind qtest is pretty simple. Instead of executing a CPU via TCG or
KVM, rely on an external process to send events to the device model that the CPU
would normally generate.

qtest presents itself as an accelerator. In addition, a new option is added to...

60be795f 03/30/2012 01:55 pm Lee Essen

tracetool: dtrace disabled-events fix

If there are "disabled" entries in the trace-events file then
linetod_nop() is called if the backend is dtrace, it's currently
not present. Also equivalent fix for stap.

Signed-off-by: Lee Essen <>...

703e01e6 03/30/2012 01:55 pm Alon Levy

tracetool: dtrace: handle in and next reserved words

Signed-off-by: Alon Levy <>
Signed-off-by: Stefan Hajnoczi <>

6d36d7dc 03/27/2012 03:15 pm Paolo Bonzini

qmp: parse commands in strict mode

Signed-off-by: Paolo Bonzini <>
Reviewed-off-by: Anthony Liguori <>
Signed-off-by: Luiz Capitulino <>

3a86a0fa 03/27/2012 03:14 pm Paolo Bonzini

qapi: untangle next_list

Right now, the semantics of next_list are complicated. The caller must:

  • call start_list
  • call next_list for each element including the first
  • on the first call to next_list, the second argument should point to
    NULL and the result is the head of the list. On subsequent calls,...
69b50071 03/27/2012 03:14 pm Paolo Bonzini

qapi: allow freeing partially-allocated objects

Objects going through the dealloc visitor can be only partially allocated.
Detect the situation and avoid a segfault. This also helps with the
input visitor, when there are errors.

Signed-off-by: Paolo Bonzini <>...

b6f0474f 03/27/2012 03:13 pm Paolo Bonzini

qapi: shortcut visits on errors

We can exit very soon if we enter a visitor with a preexisting error.
This simplifies some cases because we will not have to deal with
obj being non-NULL while *obj is NULL.

Signed-off-by: Paolo Bonzini <>...

c9da228b 03/26/2012 09:21 pm Federico Simoncelli

qapi: add c_fun to escape function names

Signed-off-by: Federico Simoncelli <>
Signed-off-by: Anthony Liguori <>

3179d694 03/24/2012 04:10 pm Michael Tokarev

Support utf8 chars in pod docs

We've at least one UTF8 char in the qemu texi doc:

$ grep Tibor qemu-doc.texi
by Tibor "TS" Schütz.
$ man ./qemu.1 | grep Tibor
by Tibor "TS" SchA~Xtz.

This patch allows utf8 in man/pod docs.

Initially it was split into two parts and sent on 2012-02-02....

4daa187d 03/24/2012 02:57 pm Avi Kivity

scripts: add gdb support script

Add a script that enhances gdb to be aware of QEMU data structures.

This patch adds a single gdb command, 'qemu mtree'. The command is
similar to the monitor's 'info mtree', except that it prints MemoryRegion
addresses, and except for working from a core dump as well as a live instance....

fb23ae6e 03/13/2012 03:51 am Anthony Liguori

Merge remote-tracking branch 'kwolf/for-anthony' into staging

  • kwolf/for-anthony:
    test-coroutine: add performance test for nesting
    coroutine: adding configure option for sigaltstack coroutine backend
    coroutine: adding configure choose mechanism for coroutine backend...
dc8fb6df 03/12/2012 04:14 pm Paolo Bonzini

qapi: complete implementation of unions

Signed-off-by: Paolo Bonzini <>
Acked-by: Luiz Capitulino <>
Signed-off-by: Kevin Wolf <>

b7d66a76 03/12/2012 12:12 pm Lluís Vilanova

trace: Provide a per-event status define for conditional compilation

Adds a 'TRACE_${NAME}_ENABLED' preprocessor define for each tracing event in
"trace.h".

This lets the user conditionally compile code with a relatively high execution
cost that is only necessary when producing the tracing information for an event...

bcec4332 03/12/2012 12:12 pm Stefan Hajnoczi

tracetool: Omit useless QEMU_*_ENABLED() check

SystemTap provides a "semaphore" that can optionally be tested before
executing a trace event. The purpose of this mechanism is to skip
expensive tracing code when the trace event is disabled.

For example, some applications may have trace events that format or...

9737383b 01/18/2012 02:23 pm Stefan Hajnoczi

qerror: add check-qerror.sh to verify alphabetical order

We're supposed to keep qerror definitions and table entries in
alphabetical order. In practice this is not checked.

I haven't found a nice way to integrate this into the makefile yet but
we can at least have this script which verifies that qerrors are in...

19bf7c87 01/12/2012 06:03 pm Avi Kivity

Fix qapi code generation fix

The fixes to qapi code generation had multiple bugs:
- the Null class used to drop output was missing some methods
- in some scripts it was never instantiated, leading to a None return,
which is missing even more methods
- the --source and --header options were swapped...

8d3bc517 12/27/2011 05:28 pm Avi Kivity

Fix qapi code generation wrt parallel build

Make's multiple output syntax

x.c x.h: x.template
gen < x.template

actually invokes the command once for x.c and once for x.h (with differing $@
in each invocation). During a parallel build, the two commands may be invoked...

058a96ed 12/21/2011 09:07 am Harsh Prateek Bora

scripts/analyse-9p-simpletrace.py: Add symbolic names for 9p operations.

Currently, we just print the numerical value of 9p operation identifier in
case of RERROR which is less meaningful for readability. Mapping 9p
operation ids to symbolic names provides a better tracelog:...

a3adb7ad 12/19/2011 06:27 pm Michael Ellerman

vl.c: In qemu -h output, only print options for the arch we are running as

Only print options in the help output that are accepted by our arch.
This is less confusing for users and also for other programs that
consume the help output.

The options affected are:...

5dbee474 12/15/2011 05:20 pm Anthony Liguori

qapi: allow a 'gen' key to suppress code generation

Signed-off-by: Anthony Liguori <>

e7d81004 12/14/2011 01:09 pm Stefan Weil

Fix spelling in comments, documentation and messages

accidently->accidentally
annother->another
choosen->chosen
consideres->considers
decriptor->descriptor
developement->development
paramter->parameter
preceed->precede
preceeding->preceding
priviledge->privilege...

68dfbcd4 12/02/2011 12:50 pm Dong Xu Wang

fix spelling in scripts sub directory

Signed-off-by: Dong Xu Wang <>
Signed-off-by: Stefan Hajnoczi <>

d8e1f214 11/30/2011 05:28 pm Michael Roth

qapi: fix guardname generation

Fix a bug in handling dotted paths, and exclude directory prefixes
from generated guardnames to avoid odd/pseudo-random guardnames in
generated headers.

Signed-off-by: Anthony Liguori <>

61669f9a 11/26/2011 11:47 am Florian Mickler

checkpatch.pl: fix CAST detection

We should only claim that something is a cast if we did not encouter a
token before, that did set av_pending.

This fixes the operator * in the line below to be detected as binary (vs
unary).

kmalloc(sizeof(struct alphatrack_ocmd) * true_size, GFP_KERNEL);...

e589728b 11/01/2011 11:52 pm Paolo Bonzini

checkpatch: remove rule on non-indented labels

There are 508 non-indented (non-default) labels, and 511 that are
indented. So the rule is debatable at least. Actually, in the
common case of labels at the outermost scope, there is really just
one place where to put the label, so the rule is just wrong IMHO....

96b3d73f 10/31/2011 06:02 pm Anthony Liguori

Merge remote-tracking branch 'qmp/queue/qmp' into staging

Conflicts:
ui/spice-core.c

549f808b 10/31/2011 06:00 pm Anthony Liguori

Merge remote-tracking branch 'qemu-kvm-tmp/uq/master' into staging

7999f7e1 10/30/2011 11:05 am Aneesh Kumar K.V

hw/9pfs: Make VirtFS tracing work correctly

this patch fix multiple issues with VirtFS tracing.
a) Add tracepoint to the correct code path. We handle error in complete_pdu
b) Fix indentation in python script
c) Fix variable naming issue in python script
...

694a099a 10/27/2011 04:48 pm Luiz Capitulino

qapi-commands.py: Don't call the output marshal on error

Today we generate something like this:

int qmp_marshal_input_query_foo(...)
...
retval = qmp_query_foo(errp);
qmp_marshal_output_query_foo(retval, ret, errp);
......