Statistics
| Branch: | Revision:

root / scripts @ f53ec699

# Date Author Comment
ea66c6d8 07/26/2013 10:10 pm Kevin Wolf

qapi.py: Maintain a list of union types

Signed-off-by: Kevin Wolf <>
Reviewed-by: Eric Blake <>

69dd62df 07/26/2013 10:10 pm Kevin Wolf

qapi: Anonymous unions

The discriminator for anonymous unions is the data type. This allows to
have a union type that allows both of these:

{ 'file': 'my_existing_block_device_id' }
{ 'file': { 'filename': '/tmp/mydisk.qcow2', 'read-only': true } }...
50f2bdc7 07/26/2013 10:09 pm Kevin Wolf

qapi: Flat unions with arbitrary discriminator

Instead of the rather verbose syntax that distinguishes base and
subclass fields...

{ "type": "file",
"read-only": true,
"data": {
"filename": "test"
} }

...we can now have both in the same namespace, allowing a more direct...

e2503f5e 07/26/2013 09:17 pm Kevin Wolf

qapi-types.py: Implement 'base' for unions

The new 'base' key in a union definition refers to a struct type, which
is inlined into the union definition and can represent fields common to
all kinds.

For example the following schema definition...

{ 'type': 'BlockOptionsBase', 'data': { 'read-only': 'bool' } }...
d131c897 07/26/2013 09:17 pm Kevin Wolf

qapi-visit.py: Split off generate_visit_struct_fields()

Signed-off-by: Kevin Wolf <>
Reviewed-by: Eric Blake <>

0aef92b9 07/26/2013 09:17 pm Kevin Wolf

qapi-visit.py: Implement 'base' for unions

This implements the visitor part of base types for unions. Parsed into
QMP, this example schema definition...

{ 'type': 'BlockOptionsBase', 'data': { 'read-only': 'bool' } }
{ 'type': 'BlockOptionsQcow2, 'data': { 'lazy-refcounts': 'bool' } }...
90c66f58 07/22/2013 06:13 pm Anthony Liguori

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

  1. By Markus Armbruster
  2. Via Stefan Hajnoczi
    • stefanha/tracing:
      trace-events: Fix up source file comments
      trace-events: Drop unused events
      milkymist-minimac2: Fix minimac2_read/_write tracepoints...
f0c03c8c 07/18/2013 06:44 am Markus Armbruster

cleanup-trace-events.pl: New

Simple script to drop unused events and fix up source file comments.
The next few commits put it to use.

Signed-off-by: Markus Armbruster <>
Signed-off-by: Stefan Hajnoczi <>

8f91ad8a 07/16/2013 04:15 pm Luiz Capitulino

qapi: qapi-commands: fix possible leaks on visitor dealloc

In qmp-marshal.c the dealloc visitor calls use the same errp
pointer of the input visitor calls. This means that if any of
the input visitor calls fails, then the dealloc visitor will
return early, before freeing the object's memory....

bd9927fe 07/10/2013 08:39 pm Kevin Wolf

qapi.py: Avoid code duplication

The code that interprets the read JSON expression and appends types to
the respective global variables was duplicated. We can avoid that by
splitting off the part that reads from the file.

Signed-off-by: Kevin Wolf <>...

b35284ea 07/10/2013 08:39 pm Kevin Wolf

qapi.py: Allow top-level type reference for command definitions

If 'data' for a command definition isn't a dict, but a string, it is
taken as a (struct) type name and the fields of this struct are directly
used as parameters.

This is useful for transactionable commands that can use the same type...

2e59915d 06/14/2013 05:33 pm Paolo Bonzini

main: use TARGET_ARCH only for the target-specific #define

Everything else needs to match the executable name, which is
TARGET_NAME.

Before:
$ sh4eb-linux-user/qemu-sh4eb --help
usage: qemu-sh4 [options] program [arguments...]
Linux CPU emulator (compiled for sh4 emulation)...

c1799a84 06/14/2013 05:33 pm Paolo Bonzini

build: rename TARGET_ARCH2 to TARGET_NAME

Do not introduce any new use yet.

Signed-off-by: Paolo Bonzini <>
Message-id:
Signed-off-by: Peter Maydell <>

b9a7b74f 06/14/2013 05:33 pm Paolo Bonzini

build: do not use TARGET_ARCH

TARGET_ARCH is generally wrong to use, there are better variables
provided in config-target.mak. The right one is usually TARGET_NAME
(previously TARGET_ARCH2), but for bsd-user we can also use TARGET_ABI_DIR
for consistency with linux-user....

b64ec4e4 06/04/2013 01:11 pm Fam Zheng

block: add block driver read only whitelist

We may want to include a driver in the whitelist for read only tasks
such as diagnosing or exporting guest data (with libguestfs as a good
example). This patch introduces a readonly whitelist option, and for
backward compatibility, the old configure option --block-drv-whitelist...

a678e26c 05/30/2013 04:08 pm Michael Roth

qapi: pad GenericList value fields to 64 bits

With the introduction of native list types, we now have types such as
int64List where the 'value' field is not a pointer, but the actual
64-bit value.

On 32-bit architectures, this can lead to situations where 'next' field...

c0afa9c5 05/23/2013 04:44 pm Michael Roth

qapi: qapi-types.py, native list support

Teach type generators about native types so they can generate the
appropriate linked list types.

Signed-off-by: Michael Roth <>
Reviewed-by: Laszlo Ersek <>
Reviewed-by: Amos Kong <>...

c664aef5 05/23/2013 04:44 pm Michael Roth

qapi: qapi-visit.py, fix list handling for union types

Currently we assume non-list types when generating visitor routines for
union types. This is broken, since values like ['Type'] need to mapped
to 'TypeList'.

We already have a type_name() function to handle this that we use for...

7c946bc4 05/23/2013 04:44 pm Michael Roth

qapi: qapi-visit.py, native list support

Teach visitor generators about native types so they can generate the
appropriate visitor routines.

Signed-off-by: Michael Roth <>
Reviewed-by: Laszlo Ersek <>
Reviewed-by: Amos Kong <>...

781e9545 05/03/2013 02:58 pm Eiichi Tsukata

trace: Add ftrace tracing backend

This patch adds a ftrace tracing backend which sends trace event to
ftrace marker file. You can effectively compare qemu trace data and
kernel(especially, kvm.ko when using KVM) trace data.
The ftrace backend is restricted to Linux only....

ea4ee283 04/18/2013 05:27 am Jan Kiszka

vmxcap: Augment reported information

Parse the Basic VMX Information MSR and add the bit for the new posted
interrupts.

Signed-off-by: Jan Kiszka <>
Signed-off-by: Gleb Natapov <>

614413f7 04/18/2013 05:27 am Jan Kiszka

vmxcap: Report APIC register emulation and RDTSCP control

Signed-off-by: Jan Kiszka <>
Signed-off-by: Marcelo Tosatti <>

007e986f 04/18/2013 05:27 am Jan Kiszka

vmxcap: Update according to SDM of January 2013

This adds reporting of VMCS shadowing, #VE, IA32_SMBASE, unrestricted
VMWRITE and fixes the range of the MSEG revision ID.

Signed-off-by: Jan Kiszka <>
Signed-off-by: Marcelo Tosatti <>

f505a4d7 04/18/2013 05:27 am Jan Kiszka

vmxcap: Open MSR file in unbuffered mode

Python may otherwise decide to to read larger chunks, applying the seek
only on the software buffer. This will return results from the wrong
MSRs.

Signed-off-by: Jan Kiszka <>
Signed-off-by: Gleb Natapov <>

93fba161 03/28/2013 03:19 pm Lluís Vilanova

trace: [tracetool] Explicitly identify public backends

Public backends are those printed by "--list-backends" and thus considered valid
by the configure script.

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

45be2f5d 03/28/2013 03:19 pm Lluís Vilanova

trace: Provide a generic tracing event descriptor

Uses tracetool to generate a backend-independent tracing event description
(struct TraceEvent).

The values for such structure are generated with the non-public "events"
backend ("events-c" frontend).

The generation of the defines to check if an event is statically enabled is also...

60481e21 03/28/2013 03:19 pm Lluís Vilanova

trace: [simple] Port to generic event information and new control interface

The backend is forced to dump event numbers using 64 bits, as TraceEventID is
an enum.

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

c6f18b91 03/28/2013 03:19 pm Lluís Vilanova

trace: [stderr] Port to generic event information and new control interface

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

1b304817 03/09/2013 02:00 pm Andreas Färber

Revert "make_device_config.sh: Fix target path in generated dependency file"

This reverts commit 23bf49b5eca716aaad073f2b47613434e1515cb5.

While *-softmmu/config-devices.mak.d is included through *.d pattern via
Makefile.target, the make_devices_config.sh call these dependencies are...

88070801 03/09/2013 02:00 pm Andreas Färber

make_device_config.sh: Emit dependency file to directory where included

Placing the config-devices.mak.d file alongside the config-devices.mak
file in -softmmu/ lead to it getting included into through
-softmmu/Makefile in addition to ./Makefile, leading to confusion....

f4ece404 02/19/2013 12:53 pm Gerd Hoffmann

fix scripts/make_device_config.sh

Make it handle multiple include statements in a file:

(1) The printf needs a space so the include files will be separated.
(2) Also $f can contain multiple failes, so redirection will not work
and we have to use cat to process all files....
0893d460 01/30/2013 12:57 am Anthony Liguori

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

  • qemu-kvm/uq/master:
    target-i386: kvm: prevent buffer overflow if -cpu foo, [x]level is too big
    vmxcap: bit 9 of VMX_PROCBASED_CTLS2 is 'virtual interrupt delivery'

Conflicts:
target-i386/kvm.c...

23bf49b5 01/26/2013 03:26 pm Andreas Färber

make_device_config.sh: Fix target path in generated dependency file

config-devices.mak.d is included from Makefile.target, i.e. from inside
the *-softmmu/ directory. It included the directory path, so never
applied to the actual ./config-devices.mak. Symptoms were spurious...

f9e90c79 01/22/2013 03:11 am Marcelo Tosatti

vmxcap: bit 9 of VMX_PROCBASED_CTLS2 is 'virtual interrupt delivery'

Bit 9 of MSR_IA32_VMX_PROCBASED_CTLS2 is
virtual interrupt delivery.

Signed-off-by: Marcelo Tosatti <>

02e079c7 01/12/2013 02:47 pm Blue Swirl

Merge branch 'ppc-for-upstream' of git://repo.or.cz/qemu/agraf

  • 'ppc-for-upstream' of git://repo.or.cz/qemu/agraf: (31 commits)
    PPC: linux-user: Calculate context pointer explicitly
    target-ppc: Error out for -cpu host on unknown PVR
    target-ppc: Slim conversion of model definitions to QOM subclasses...
96610da2 01/09/2013 12:38 am Tomoki Sekiyama

qemu-ga: sample fsfreeze hooks

Adds sample hook scripts for --fsfreeze-hook option of qemu-ga.
- fsfreeze-hook : execute scripts in fsfreeze-hook.d/
- fsfreeze-hook.d/mysql-flush.sh.sample : quiesce MySQL before snapshot

Signed-off-by: Tomoki Sekiyama <>...

d56af005 01/07/2013 06:37 pm Bharat Bhushan

powerpc: linux header sync script includes epapr_hcalls.h

epapr_hcalls.h is now referenced by kvm_para.h. so this is needed for
QEMU to get compiled on powerpc.

Signed-off-by: Bharat Bhushan <>
Signed-off-by: Alexander Graf <>

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....

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 <>