Statistics
| Branch: | Revision:

root / scripts @ feature-archipelago

# Date Author Comment
949ceeb3 03/03/2014 06:17 pm Markus Armbruster

qapi: Clean up null checking in generated visitors

Visitors get passed a pointer to the visited object. The generated
visitors try to cope with this pointer being null in some places, for
instance like this:

visit_start_optional(m, obj ? &(*obj)->has_name : NULL, "name", &err);...
56bed413 03/03/2014 06:16 pm Markus Armbruster

qapi: Drop unused code in qapi-commands.py

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

678e48a2 03/03/2014 06:16 pm Markus Armbruster

qapi: Fix licensing of scripts

The scripts carry this copyright notice:

  1. This work is licensed under the terms of the GNU GPLv2.
  2. See the COPYING.LIB file in the top-level directory.

The sentences contradict each other, as COPYING.LIB contains the LGPL...

a105acbc 03/03/2014 06:16 pm Markus Armbruster

qapi: Drop nonsensical header guard in generated qapi-visit.c

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

48645123 02/28/2014 08:35 pm Fam Zheng

qmp: Check for returned data from __json_read in get_events

When QEMU process aborts and socket is closed, qmp client will not
detect it. When this happens, some qemu-iotests scripts will enter an
endless loop waiting for qmp events.

It's better we raise an exception in qmp.py to catch this and make the...

cd159d09 02/28/2014 06:41 pm Fam Zheng

QMP: Allow dot separated dict path arguments in qmp-shell

As another convenience to allow using commands that expect a dict as
argument, this patch adds support for foo.bar=value syntax, similar to
command line argument style:

(QEMU) blockdev-add options.driver=file options.id=drive1 options.filename=......
6dedf052 02/24/2014 05:38 pm Peter Maydell

Merge remote-tracking branch 'remotes/bonzini/configure' into staging

  • remotes/bonzini/configure:
    build: softmmu targets do not have a "main.o" file
    configure: Disable libtool if -fPIE does not work with it (bug #1257099)
    block: convert block drivers linked with libs to modules...
7a87a7b3 02/21/2014 04:38 pm Peter Maydell

Merge remote-tracking branch 'remotes/stefanha/tags/tracing-pull-request' into staging

Tracing pull request

  1. gpg: Signature made Wed 19 Feb 2014 15:42:20 GMT using RSA key ID 81AB73C8
  2. gpg: Good signature from "Stefan Hajnoczi <>"
  3. gpg: aka "Stefan Hajnoczi <>"...
e26110cf 02/20/2014 02:14 pm Fam Zheng

module: implement module loading

This patch adds loading, stamp checking and initialization of modules.

The init function of dynamic module is no longer directly called as
attribute((constructor)) in static linked version, it is called
only after passed the checking of presense of stamp symbol:...

4c0c9bbe 02/20/2014 02:10 pm Peter Maydell

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

  • remotes/qmp-unstable/queue/qmp:
    monitor: Add object_add class argument completion.
    monitor: Add object_del id argument completion.
    monitor: Add device_add device argument completion....
9530570f 02/19/2014 12:08 pm Mohamad Gebai

Modified the tracetool framework for LTTng 2.x

  • A new format is required to generate definitions for ust tracepoints.
    Files ust_events_h.py and ust_events_c.py define common macros, while
    new function ust_events_h in events.py does the actual definition of...
ff9ec34d 02/17/2014 06:57 pm Stefan Hajnoczi

QMP: allow JSON dict arguments in qmp-shell

qmp-shell hides the QMP wire protocol JSON encoding from the user. Most
of the time this is helpful and makes the command-line human-friendly.

Some QMP commands take a dict as an argument. In order to express this...

a63e5e0c 02/15/2014 02:10 pm Stefan Weil

misc: Fix case Qemu -> QEMU

Signed-off-by: Stefan Weil <>
Reviewed-by: Laszlo Ersek <>
Reviewed-by: Andreas Färber <>
Signed-off-by: Michael Tokarev <>

89e4a51c 01/31/2014 01:13 pm Peter Maydell

Merge remote-tracking branch 'stefanha/tags/tracing-pull-request' into staging

Tracing pull request

  1. gpg: Signature made Mon 27 Jan 2014 14:51:09 GMT using RSA key ID 81AB73C8
  2. gpg: Good signature from "Stefan Hajnoczi <>"
  3. gpg: aka "Stefan Hajnoczi <>"...
b618c288 01/27/2014 04:49 pm Lluís Vilanova

trace: [simple] Do not include "trace/simple.h" in generated tracer headers

The header is not necessary, given that the simple backend does not define any
inlined tracing routines.

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

736ec167 01/27/2014 04:49 pm Stefan Hajnoczi

trace: fix simple trace "disable" keyword

The trace-events "disable" keyword turns an event into a nop at
compile-time. This is important for high-frequency events that can
impact performance.

The "disable" keyword is currently broken in the simple trace backend....

9dd6cabd 01/26/2014 01:06 pm Marcel Apfelbaum

configure: add CONFIG_IASL to config-host.h

Acpi unit-tests will extract iasl executable
from CONFIG_IASL define.

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

3e16d14f 01/26/2014 01:06 pm Laszlo Ersek

Python-lang gdb script to extract x86_64 guest vmcore from qemu coredump

When qemu dies unexpectedly, for example in response to an explicit
abort() call, or (more importantly) when an external signal is delivered
to it that results in a coredump, sometimes it is useful to extract the...

8592a545 01/22/2014 01:07 pm Max Reitz

qapi: Add "errno" to the list of polluted words

Using "errno" directly as an identifier results in various syntax
errors; therefore it should be added to the list of polluted words.

Signed-off-by: Max Reitz <>
Signed-off-by: Kevin Wolf <>

7b75d9d6 11/11/2013 05:02 pm Richard Henderson

Adjust qapi-visit for python-2.4.3

We say we support python 2.4, but python 2.4.3 does not
support the "expr if test else expr" syntax used here.

This allows QEMU to compile on RHEL 5.3, the last release for ia64.

Signed-off-by: Richard Henderson <>...

b0eb759f 10/31/2013 05:58 pm Anthony Liguori

Merge remote-tracking branch 'mst/tags/for_anthony' into staging

pci, pc, acpi fixes, enhancements

This includes some pretty big changes:
- pci master abort support by Marcel
- pci IRQ API rework by Marcel
- acpi generation support by myself

Everything has gone through several revisions, latest versions have been on...

74523b85 10/14/2013 05:48 pm Michael S. Tsirkin

i386: add ACPI table files from seabios

This adds ASL code as well as scripts for processing it,
imported from seabios git tree
commit 51684b7ced75fb76776e8ee84833fcfb6ecf12dd

Will be used for runtime acpi table generation.

Note:
This patch reuses some code from SeaBIOS, which was originally under...

a31a8642 10/14/2013 05:48 pm Michael S. Tsirkin

acpi: add rules to compile ASL source

Detect presence of IASL compiler and use it
to process ASL source. If not there, use pre-compiled
files in-tree. Add script to update the in-tree files.

Note: distros are known to silently update iasl
so detect correct iasl flags for the installed version on each run as...

85938981 10/11/2013 07:34 pm Stefan Hajnoczi

Use qemu-project.org domain name

qemu.org is held by a third-party and no core community contributor has
access to the DNS configuration. This leaves the website exposed to
outages due to DNS issues or IP address changes. For example, if the
web server IP address needs to change we cannot guarantee qemu.org will...

14d36307 10/11/2013 05:50 pm Kevin Wolf

qapi-types/visit.py: Pass whole expr dict for structs

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

622f557f 10/11/2013 05:50 pm Kevin Wolf

qapi-types/visit.py: Inheritance for structs

This introduces a new 'base' key for struct definitions that refers to
another struct type. On the JSON level, the fields of the base type are
included directly into the same namespace as the fields of the defined...

93a2b3c4 09/30/2013 10:44 am Gerd Hoffmann

roms: rewrite scripts/refresh-pxe-roms.sh

Just use the Makefile in roms/

Signed-off-by: Gerd Hoffmann <>

22f3946b 09/18/2013 03:57 pm Luiz Capitulino

QMP: add scripts/qmp

Populate it with all scripts stored in QMP/. Also fixes trailing
whitespaces in qmp-shell and qmp.py.

Signed-off-by: Luiz Capitulino <>
Reviewed-by: Eric Blake <>

6f52e51b 09/11/2013 10:46 pm Anthony Liguori

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

  1. By Cole Robinson
  2. Via Luiz Capitulino
    • luiz/queue/qmp:
      qapi-types.py: Fix enum struct sizes on i686

Message-id:
Signed-off-by: Anthony Liguori <>

02dc4bf5 09/10/2013 05:09 pm Cole Robinson

qapi-types.py: Fix enum struct sizes on i686

Unlike other list types, enum wasn't adding any padding, which caused
a mismatch between the generated struct size and GenericList struct
size. More details in a678e26cbe89f7a27cbce794c2c2784571ee9d21

This crashed qemu if calling qmp query-tpm-types for example, which...

6f88009e 09/09/2013 10:17 pm Tomoki Sekiyama

Add c++ keywords to QAPI helper script

Add c++ keywords to avoid errors in compiling with c++ compiler.
This also renames class member of PciDeviceInfo to q_class.

Signed-off-by: Tomoki Sekiyama <>
Reviewed-by: Laszlo Ersek <>...

69d5d21f 09/09/2013 10:17 pm Tomoki Sekiyama

checkpatch.pl: Check .cpp files

Enable checkpatch.pl to apply the same checks as C source files for
C++ files with .cpp extensions. It also adds some exceptions for C++
sources to suppress errors for:
- <> used in C++ template arguments (e.g. template <class T>)...

24482749 09/09/2013 10:17 pm Tomoki Sekiyama

Add a script to extract VSS SDK headers on POSIX system

VSS SDK setup.exe is only runnable on Windows. This adds a script
to extract VSS SDK headers on POSIX-systems using msitools.

From: Paolo Bonzini <>...

01537030 08/30/2013 04:28 pm Kevin Wolf

qapi-types.py: Split off generate_struct_fields()

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

f7ad538e 08/26/2013 05:19 pm Anthony Liguori

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

  1. By Alex Bligh (32) and others
  2. Via Stefan Hajnoczi
    • stefanha/block: (42 commits)
      win32-aio: drop win32_aio_flush_cb()
      aio-win32: replace incorrect AioHandler->opaque usage with ->e
      aio / timers: remove dummy_io_handler_flush from tests/test-aio.c...
8dc6d240 08/24/2013 08:26 am Richard Henderson

disas: Add disas-objdump.pl

The script massages the output produced for architectures that are
not supported internally by qemu though an external objdump program
for disassembly.

Signed-off-by: Richard Henderson <>
Signed-off-by: Edgar E. Iglesias <>

42eed424 08/24/2013 08:26 am Richard Henderson

disas-objdump: Pass --adjust-vma to objdump

This gives the dumped blob its correct address during disassembly,
which makes pc-relative insns much easier to interpret.

Signed-off-by: Richard Henderson <>
Signed-off-by: Edgar E. Iglesias <>

fe10ab54 08/22/2013 08:14 pm Alex Bligh

aio / timers: Add scripts/switch-timer-api

Add scripts/switch-timer-api to programatically rewrite source
files to use the new timer system.

Signed-off-by: Alex Bligh <>
Signed-off-by: Stefan Hajnoczi <>

21e0043b 08/20/2013 06:52 pm Peter Maydell

scripts/qapi.py: Avoid syntax not supported by Python 2.4

The Python "except Foo as x" syntax was only introduced in
Python 2.6, but we aim to support Python 2.4 and later.
Use the old-style "except Foo, x" syntax instead, thus
fixing configure/compile on systems with older Python....

9213aa53 07/29/2013 06:37 pm Markus Armbruster

qapi.py: Reject invalid characters in schema file

Signed-off-by: Markus Armbruster <>
Reviewed-by: Eric Blake <>
Message-id:
Signed-off-by: Anthony Liguori <>

6974ccd5 07/29/2013 06:37 pm Markus Armbruster

qapi.py: Fix schema parser to check syntax systematically

Fixes at least the following parser bugs:

  • accepts any token in place of a colon
  • treats comma as optional
  • crashes when closing braces or brackets are missing

Signed-off-by: Markus Armbruster <>...

5f3cd2b7 07/29/2013 06:37 pm Markus Armbruster

qapi.py: Fix diagnosing non-objects at a schema's top-level

Report syntax error instead of crashing.

Signed-off-by: Markus Armbruster <>
Reviewed-by: Eric Blake <>
Message-id: ...

28b8bd4c 07/29/2013 06:37 pm Markus Armbruster

qapi.py: Rename expr_eval to expr in parse_schema()

Signed-off-by: Markus Armbruster <>
Reviewed-by: Eric Blake <>
Message-id:
Signed-off-by: Anthony Liguori <>

f1a145e1 07/29/2013 06:37 pm Markus Armbruster

qapi.py: Permit comments starting anywhere on the line

Signed-off-by: Markus Armbruster <>
Reviewed-by: Eric Blake <>
Message-id:
Signed-off-by: Anthony Liguori <>

c7a3f252 07/29/2013 06:37 pm Markus Armbruster

qapi.py: Restructure lexer and parser

The parser has a rather unorthodox structure:

Until EOF:
Read a section:
Generator function get_expr() yields one section after the
other, as a string. An unindented, non-empty line that...
2caba36c 07/29/2013 06:37 pm Markus Armbruster

qapi.py: Decent syntax error reporting

Signed-off-by: Markus Armbruster <>
Reviewed-by: Eric Blake <>
Message-id:
Signed-off-by: Anthony Liguori <>

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