Statistics
| Branch: | Revision:

root @ 795ca114

# Date Author Comment
f06b8521 02/03/2014 12:05 pm Alon Levy

qxl: clear irq on reset

Without this we occasionally trigger an assert at
hw/pci/pci.c:pcibus_reset that asserts the irq_count is zero on reset.

This has become a problem with the new drm driver for linux, since doing
a reboot from console causes a race between console updates that set the...

3761abb1 02/03/2014 12:05 pm Alon Levy

hw/display/qxl: fix signed to unsigned comparison

Several small signedness / overflow corrections to qxl_create_guest_primary:
1. use 64 bit unsigned for size to avoid overflow possible from two 32
bit multiplicants.
2. correct sign for requested_height
3. add a more verbose error message when setting guest bug state (which...

795ca114 02/03/2014 12:05 pm Jeremy White

Add the ability to vary Spice playback and record rates, to facilitate Opus support.

Signed-off-by: Jeremy White <>
Signed-off-by: Gerd Hoffmann <>

2f61120c 02/02/2014 01:32 am Peter Maydell

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

  • qmp-unstable/queue/qmp:
    monitor: Cleanup mon->outbuf on write error
    virtio_rng: replace custom backend API with UserCreatable.complete() callback
    add optional 2nd stage initialization to -object/object-add commands...
b4a8c9ae 02/02/2014 01:06 am Peter Maydell

Merge remote-tracking branch 'pmaydell/tags/pull-target-arm-20140131' into staging

target-arm queue: * implementation of first part of the A64 Neon instruction set * v8 AArch32 rounding and 16<->64 fp conversion instructions * fix MIDR value on Zynq boards...

850bbe1b 02/01/2014 11:08 pm Peter Maydell

Merge remote-tracking branch 'remotes/awilliam/tags/vfio-pci-for-qemu-20140128.0' into staging

vfio-pci updates include:
- Destroy MemoryRegions on device teardown
- Print warnings around PCI option ROM failures
- Skip bogus mappings from 64bit BAR sizing...

bd88091c 02/01/2014 10:45 pm Peter Maydell

Merge remote-tracking branch 'remotes/sstabellini/xen-140130' into staging

  • remotes/sstabellini/xen-140130:
    address_space_translate: do not cross page boundaries

Signed-off-by: Peter Maydell <>

41ab7b55 01/31/2014 04:47 pm Christoffer Dall

arm_gic: Introduce define for GIC_NR_SGIS

Instead of hardcoding 16 various places in the code, use a define to
make it more clear what is going on.

Signed-off-by: Christoffer Dall <>
Reviewed-by: Peter Maydell <>...

5b0adce1 01/31/2014 04:47 pm Christoffer Dall

arm_gic: Fix GICD_ICPENDR and GICD_ISPENDR writes

Fix two bugs that would allow changing the state of SGIs through the
ICPENDR and ISPENDRs.

Signed-off-by: Christoffer Dall <>
Reviewed-by: Peter Maydell <>...

e1cea114 01/31/2014 04:47 pm Peter Maydell

target-arm: A64: Add top level decode for SIMD 3-same group

Add top level decode for the A64 SIMD three regs same group
(C3.6.16), splitting it into the pairwise, logical, float and
integer subgroups.

Signed-off-by: Peter Maydell <>...

956d272e 01/31/2014 04:47 pm Peter Maydell

target-arm: A64: Add logic ops from SIMD 3 same group

Add support for the logical operations (ORR, AND, BIC, ORN, EOR, BSL,
BIT and BIF) from the SIMD 3 register same group (C3.6.16).

Signed-off-by: Alex Bennée <>
Signed-off-by: Peter Maydell <>...

1f8a73af 01/31/2014 04:47 pm Peter Maydell

target-arm: A64: Add integer ops from SIMD 3-same group

Add some of the integer operations in the SIMD 3-same group:
specifically, the comparisons, addition and subtraction.

Signed-off-by: Peter Maydell <>
Reviewed-by: Richard Henderson <>

845ea09a 01/31/2014 04:47 pm Peter Maydell

target-arm: A64: Add simple SIMD 3-same floating point ops

Implement a simple subset of the SIMD 3-same floating point
operations. This includes a common helper function used for both
scalar and vector ops; FABD is the only currently implemented
shared op....

4d1cef84 01/31/2014 04:47 pm Alex Bennée

target-arm: A64: Add SIMD shift by immediate

This implements a subset of the AdvSIMD shift operations (namely all the
none saturating or narrowing ones). The actual shift generation code
itself is common for both the scalar and vector cases but wrapped with...

a08582f4 01/31/2014 04:47 pm Peter Maydell

target-arm: A64: Add SIMD three-different multiply accumulate insns

Add support for the multiply-accumulate instructions from the
SIMD three-different instructions group (C3.6.15): * skeleton decode of unallocated encodings and split of
the group into its three sub-parts...

0ae39320 01/31/2014 04:47 pm Peter Maydell

target-arm: A64: Add SIMD three-different ABDL instructions

Implement the absolute-difference instructions in the SIMD
three-different group: SABAL, SABAL2, UABAL, UABAL2, SABDL,
SABDL2, UABDL, UABDL2.

Signed-off-by: Peter Maydell <>...

b305dba6 01/31/2014 04:47 pm Peter Maydell

target-arm: A64: Add SIMD scalar 3 same add, sub and compare ops

Implement the add, sub and compare ops from the SIMD "scalar three same"
group.

Signed-off-by: Peter Maydell <>
Reviewed-by: Richard Henderson <>

43630e58 01/31/2014 04:47 pm Will Newton

target-arm: Add set_neon_rmode helper

This helper sets the rounding mode in the standard_fp_status word to
allow NEON instructions to modify the rounding mode whilst using the
standard FPSCR values for everything else.

Signed-off-by: Will Newton <>...

34f7b0a2 01/31/2014 04:47 pm Will Newton

target-arm: Add AArch32 SIMD VRINTA, VRINTN, VRINTP, VRINTM, VRINTZ

Add support for the AArch32 Advanced SIMD VRINTA, VRINTN, VRINTP
VRINTM and VRINTZ instructions.

Signed-off-by: Will Newton <>
Signed-off-by: Peter Maydell <>

c9975a83 01/31/2014 04:47 pm Will Newton

target-arm: Add AArch32 FP VCVTA, VCVTN, VCVTP and VCVTM

Add support for the AArch32 floating-point VCVTA, VCVTN, VCVTP
and VCVTM instructions.

Signed-off-by: Will Newton <>
Signed-off-by: Peter Maydell <>

901ad525 01/31/2014 04:47 pm Will Newton

target-arm: Add AArch32 SIMD VCVTA, VCVTN, VCVTP and VCVTM

Add support for the AArch32 Advanced SIMD VCVTA, VCVTN, VCVTP
and VCVTM instructions.

Signed-off-by: Will Newton <>
Signed-off-by: Peter Maydell <>

664c6733 01/31/2014 04:47 pm Will Newton

target-arm: Add support for AArch32 FP VRINTR

Add support for the AArch32 floating-point VRINTR instruction.

Signed-off-by: Will Newton <>
Signed-off-by: Peter Maydell <>

a290c62a 01/31/2014 04:47 pm Will Newton

target-arm: Add support for AArch32 FP VRINTZ

Add support for the AArch32 floating-point VRINTZ instruction.

Signed-off-by: Will Newton <>
Signed-off-by: Peter Maydell <>

4e82bc01 01/31/2014 04:47 pm Will Newton

target-arm: Add support for AArch32 FP VRINTX

Add support for the AArch32 floating-point VRINTX instruction.

Signed-off-by: Will Newton <>
Signed-off-by: Peter Maydell <>

2ce70625 01/31/2014 04:47 pm Will Newton

target-arm: Add support for AArch32 SIMD VRINTX

Add support for the AArch32 Advanced SIMD VRINTX instruction.

Signed-off-by: Will Newton <>
Reviewed-by: Peter Maydell <>
Signed-off-by: Peter Maydell <>

b48adc0d 01/31/2014 04:47 pm Alistair Francis

ZYNQ: Implement board MIDR control for Zynq

This patch uses the fact that the midr variable is now a property
This patch sets the midr variable to the boards custom midr

Signed-off-by: Alistair Francis <>
Message-id: ...

2cdaca90 01/31/2014 04:47 pm Paolo Bonzini

display: avoid multi-statement macro

For blizzard, pl110 and tc6393xb this is harmless, but for pxa2xx
Coverity noticed that it is used inside an "if" statement.
Fix it because it's the file with the highest number of defects
in the whole QEMU tree! Use "do...while (0)", or just remove the...

9972da66 01/31/2014 04:47 pm Will Newton

target-arm: Move arm_rmode_to_sf to a shared location.

This function will be needed for AArch32 ARMv8 support, so move it to
helper.c where it can be used by both targets. Also moves the code out
of line, but as it is quite a large function I don't believe this...

7655f39b 01/31/2014 04:47 pm Will Newton

target-arm: Add AArch32 FP VRINTA, VRINTN, VRINTP and VRINTM

Add support for AArch32 ARMv8 FP VRINTA, VRINTN, VRINTP and VRINTM
instructions.

Signed-off-by: Will Newton <>
Signed-off-by: Peter Maydell <>

f3f8c4f4 01/31/2014 04:47 pm Alex Bennée

target-arm: A64: Add SIMD modified immediate group

This patch adds support for the AdvSIMD modified immediate group
(C3.6.6) with all its suboperations (movi, orr, fmov, mvni, bic).

Signed-off-by: Alexander Graf <>
[AJB: new decode struct, minor bug fixes, optimisation]...

360a6f2d 01/31/2014 04:47 pm Peter Maydell

target-arm: A64: Add SIMD scalar copy instructions

Add support for the SIMD scalar copy instruction group (C3.6.7),
which consists of the single instruction DUP (element, scalar).

Signed-off-by: Peter Maydell <>
Reviewed-by: Richard Henderson <>

83bfffec 01/31/2014 04:47 pm Peter Maydell

hw/arm/boot: Don't set up ATAGS for autogenerated dtb booting

The code which decides whether to set up the ATAGS data structure on
reset was using the wrong conditional, which meant we were creating
an ATAGS structure when doing a device-tree boot if the dtb was...

51a9b04b 01/31/2014 04:47 pm Alistair Francis

ARM: Convert MIDR to a property

Convert the MIDR register to a property. This allows boards to later set
a custom MIDR value. This has been done in such a way to maintain
compatibility with all existing CPUs and boards

Signed-off-by: Alistair Francis <>...

7c51048f 01/31/2014 04:47 pm Michael Matz

target-arm: A64: Add SIMD TBL/TBLX

Add support for the SIMD TBL/TBLX instructions (group C3.6.2).

Signed-off-by: Michael Matz <>
[PMM: rewritten to do more of the decode in translate-a64.c,
and to do only one 64 bit pass at a time in the helper]...

5fa5469c 01/31/2014 04:47 pm Michael Matz

target-arm: A64: Add SIMD ZIP/UZP/TRN

Add support for the SIMD ZIP/UZIP/TRN instruction group
(C3.6.3).

Signed-off-by: Michael Matz <>
[PMM: use new do_vec_get/set etc functions and generally update to new
codebase standards; refactor to pull per-element loop outside switch]...

4a0ff1ce 01/31/2014 04:47 pm Michael Matz

target-arm: A64: Add SIMD across-lanes instructions

Add support for the SIMD "across lanes" instruction group (C3.6.4).

Signed-off-by: Michael Matz <>
[PMM: Updated to current codebase, added fp min/max ops,
added unallocated encoding checks]...

67bb9389 01/31/2014 04:47 pm Alex Bennée

target-arm: A64: Add SIMD copy operations

This adds support for the all the AdvSIMD vector copy operations
(ARM ARM 3.6.5).

Signed-off-by: Alex Bennée <>
Signed-off-by: Peter Maydell <>
Reviewed-by: Richard Henderson <>

72430bf5 01/31/2014 04:47 pm Alex Bennée

target-arm: A64: Add SIMD ld/st multiple

This adds support support for the SIMD load/store
multiple category of instructions.

This also brings in a couple of helper functions for manipulating
sections of the SIMD registers:

  • do_vec_get - fetch value from a slice of a vector register...
df54e47d 01/31/2014 04:47 pm Peter Maydell

target-arm: A64: Add SIMD ld/st single

Implement the SIMD ld/st single structure instructions.

Signed-off-by: Peter Maydell <>
Reviewed-by: Richard Henderson <>

384b26fb 01/31/2014 04:47 pm Alex Bennée

target-arm: A64: Add decode skeleton for SIMD data processing insns

Add decode skeleton and function placeholders for all the SIMD data
processing instructions. Due to the complexity of this part of the
table the normal extract and switch approach gets very messy very...

5c73747f 01/31/2014 04:47 pm Peter Maydell

target-arm: A64: Add SIMD EXT

Add support for the SIMD EXT instruction (the only one in its
group, C3.6.1).

Signed-off-by: Peter Maydell <>
Reviewed-by: Richard Henderson <>

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 <>"...
0159a643 01/31/2014 02:23 am Peter Maydell

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

acpi,pci,pc,virtio fixes and enhancements

This includes new unit-tests for acpi by Marcel,
hotplug for pci bridges by myself (piix only so far)
and cpu hotplug for q35.
And a bunch of fixes all over the place as usual....

97374ce5 01/31/2014 02:13 am Peter Maydell

Merge remote-tracking branch 'sstabellini/xen-170114' into staging

  • sstabellini/xen-170114:
    xen_pt: Fix passthrough of device with ROM.
    xen_pt: Fix debug output.
    xenfb: map framebuffer read-only and handle unmap errors

Message-id: ...

8e02b359 01/31/2014 12:25 am Peter Maydell

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

Net patches

  1. gpg: Signature made Mon 27 Jan 2014 14:45:35 GMT using RSA key ID 81AB73C8
  2. gpg: Can't check signature: public key not found
  • stefanha/tags/net-pull-request:
    tap-linux: Get features once and use it many times...
dc08f851 01/30/2014 09:02 pm Peter Maydell

Merge remote-tracking branch 'rth/tcg-movbe' into staging

  • rth/tcg-movbe:
    tcg/i386: cleanup useless #ifdef
    tcg/i386: use movbe instruction in qemu_ldst routines
    tcg/i386: add support for three-byte opcodes
    tcg/i386: remove hardcoded P_REXW value...
360e607b 01/30/2014 04:20 pm Stefano Stabellini

address_space_translate: do not cross page boundaries

The following commit:

commit 149f54b53b7666a3facd45e86eece60ce7d3b114
Author: Paolo Bonzini <>
Date: Fri May 24 12:59:37 2013 +0200

memory: add address_space_translate

breaks Xen support in QEMU, in particular the Xen mapcache. The effect...

0706f7c8 01/30/2014 03:56 pm Peter Maydell

Merge remote-tracking branch 'mjt/tags/trivial-patches-2014-01-16' into staging

trivial-patches for 2014-01-16

  1. gpg: Signature made Thu 16 Jan 2014 17:29:05 GMT using RSA key ID 74F0C838
  2. gpg: Good signature from "Michael Tokarev <>"
  3. gpg: aka "Michael Tokarev <>"...
18d13fa2 01/30/2014 03:25 pm Alexander Graf

TCG: Fix I64-on-32bit-host temporaries

We have cache pools of temporaries that we can reuse later when they've
already been allocated before.

These cache pools differenciate between the target TCG variable type they
contain. So we have one pool for I32 and one pool for I64 variables....

056f49ff 01/28/2014 07:47 pm Stratos Psomadakis

monitor: Cleanup mon->outbuf on write error

In case monitor_flush() fails to write the contents of mon->outbuf to
the output device, mon->outbuf is not cleaned up properly. Check the
return code of the qemu_chr_fe_write() function and cleanup the outbuf
if it fails....

57d3e1b3 01/28/2014 07:47 pm Igor Mammedov

virtio_rng: replace custom backend API with UserCreatable.complete() callback

in addition fix default backend leak by releasing it if its
initialization failed.

Signed-off-by: Igor Mammedov <>
Reviewed-by: Stefan Hajnoczi <>...

269e09f3 01/28/2014 07:47 pm Igor Mammedov

add optional 2nd stage initialization to -object/object-add commands

Introduces USER_CREATABLE interface that must be implemented by
objects which are designed to created with -object CLI option or
object-add QMP command.

Interface provides an ability to do an optional second stage...

69252c04 01/28/2014 06:28 pm Igor Mammedov

object_add: consolidate error handling

Signed-off-by: Igor Mammedov <>
Reviewed-by: Stefan Hajnoczi <>
Signed-off-by: Luiz Capitulino <>

90e9cf28 01/28/2014 06:28 pm Igor Mammedov

vl.c: -object: don't ignore duplicate 'id'

object_property_add_child() may fail if 'id' matches
an already existing object. Which means an incorrect
command line.
So instead of silently ignoring error, report it and
terminate QEMU.

Signed-off-by: Igor Mammedov <>...

8b6d1408 01/28/2014 05:23 pm Bandan Das

vfio: correct debug macro typo

Change to DEBUG_VFIO in vfio_msi_interrupt() for debug
messages to get printed

Signed-off-by: Bandan Das <>
Signed-off-by: Alex Williamson <>

8a745f2a 01/27/2014 04:49 pm Michael Mueller

tracing: start trace processing thread in final child process

When running with trace backend e.g. "simple" the writer thread needs to be
implemented in the same process context as the trace points that will be
processed. Under libvirtd control, qemu gets first started in daemonized...

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

05735a2a 01/27/2014 04:49 pm Stefan Hajnoczi

trace: add glib 2.32+ static GMutex support

The GStaticMutex API was deprecated in glib 2.32. We cannot switch over
to GMutex unconditionally since we would drop support for older glib
versions. But the deprecated API warnings during build are annoying so...

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

4bf2c138 01/27/2014 04:44 pm Hani Benhabiles

net: Use g_strdup_printf instead of snprintf.

assign_name() in net/net.c is using snprintf + g_strdup to get the same
result as g_strdup_printf.

Signed-off-by: Hani Benhabiles <>
Signed-off-by: Stefan Hajnoczi <>

2ad657e3 01/27/2014 04:44 pm Roy Franz

Fix lan9118 TX "CMD A" handling

The 9118 ethernet controller supports transmission of multi-buffer packets
with arbitrary byte alignment of the start and end bytes. All writes to
the packet fifo are 32 bits, so the controller discards bytes at the beginning...

c444dfab 01/27/2014 04:44 pm Roy Franz

Fix lan9118 buffer length handling

The 9118 ethernet controller supports transmission of multi-buffer packets
with arbitrary byte alignment of the start and end bytes. All writes to
the packet fifo are 32 bits, so the controller discards bytes at the beginning...

1f149e72 01/27/2014 04:44 pm Kusanagi Kouichi

tap-linux: Get features once and use it many times

Signed-off-by: Kusanagi Kouichi <>
Signed-off-by: Stefan Hajnoczi <>

b8124cec 01/26/2014 01:11 pm Michael S. Tsirkin

acpi-test: update expected AML since recent changes

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

30607764 01/26/2014 01:11 pm Marcel Apfelbaum

hw/pci: fix error flow in pci multifunction init

Scenario:
- There is a non multifunction pci device A on 00:0X.0.
- Hot-plug another multifunction pci device B at 00:0X.1.
- The operation will fail of course.
- Try to hot-plug the B device 2-3 more times, qemu will crash....

f30ee8a9 01/26/2014 01:11 pm Eduardo Habkost

pc: Save size of RAM below 4GB

The ram_below_4g value will be useful in other places, such as the ACPI
table code, and other code that currently requires passing
below_4g_mem_size around in function arguments.

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

4c8a949b 01/26/2014 01:11 pm Eduardo Habkost

acpi: Fix PCI hole handling on build_srat()

The original SeaBIOS code used the RamSize variable, that was used by
SeaBIOS for the size of RAM below 4GB, not for all RAM. When copied to
QEMU, the code was changed to use the full RAM size, and this broke the...

9a305c8f 01/26/2014 01:11 pm Gerd Hoffmann

q35: gigabyte alignment for ram

Map 2G (q35) of memory below 4G, so the RAM pieces
are nicely aligned to gigabyte borders.

Keep old memory layout for (a) old machine types and (b) in case all
memory fits below 4G and thus we don't have to split RAM into pieces...

4e17997d 01/26/2014 01:11 pm Michael S. Tsirkin

q35: document gigabyte_align

Document the logic behind the below/above 4G split.

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

a75143ed 01/26/2014 01:11 pm Michael S. Tsirkin

MAINTAINERS: add self as virtio co-maintainer

This will help make sure I get Cc'd on patches.

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

9e047b98 01/26/2014 01:11 pm Michael S. Tsirkin

piix4: add acpi pci hotplug support

Add support for acpi pci hotplug using the
new infrastructure.
PIIX4 legacy interface is maintained as is for
machine types 1.7 and older.

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

99fd437d 01/26/2014 01:11 pm Michael S. Tsirkin

acpi-build: enable hotplug for PCI bridges

This enables support for device hotplug behind
pci bridges. Bridge devices themselves need
to be pre-configured on qemu command line.

Design:
- at machine init time, assign "bsel" property to bridges with
hotplug support...

81cea5e7 01/26/2014 01:11 pm Igor Mammedov

acpi: factor out common cpu hotplug code for PIIX4/Q35

.. so it could be used for adding CPU hotplug to Q35 machine

Add an additional header with that will be shared between
C and ASL code: include/hw/acpi/cpu_hotplug_defs.h

Signed-off-by: Igor Mammedov <>...

d6610bc2 01/26/2014 01:11 pm Igor Mammedov

acpi: ich9: add CPU hotplug handling to Q35 machine

.. use IO port 0cd8-0xcf7 range for CPU present bitmap

Signed-off-by: Igor Mammedov <>
Reviewed-by: Michael S. Tsirkin <>
Signed-off-by: Michael S. Tsirkin <>

4782434f 01/26/2014 01:11 pm Igor Mammedov

pc: set PRST base in DSDT depending on chipset

Signed-off-by: Igor Mammedov <>
Reviewed-by: Michael S. Tsirkin <>
Signed-off-by: Michael S. Tsirkin <>

1aa149b4 01/26/2014 01:11 pm Igor Mammedov

pc: PIIX DSDT: exclude CPU/PCI hotplug & GPE0 IO range from PCI bus resources

.. so that they might not be used by PCI devices.

Note:
Resort to concatenating templates with preprocessor help,
because 1.0b spec isn't supporting ConcatenateResTemplate,
as result Windows XP fails to execute PCI0._CRS method if...

562e56a9 01/26/2014 01:11 pm Igor Mammedov

pc: Q35 DSDT: exclude CPU hotplug IO range from PCI bus resources

... for range defined at hw/acpi/ich9.c:ICH9_PROC_BASE

Signed-off-by: Igor Mammedov <>
Reviewed-by: Michael S. Tsirkin <>
Signed-off-by: Michael S. Tsirkin <>

61a3f635 01/26/2014 01:11 pm Igor Mammedov

pc: ACPI: expose PRST IO range via _CRS

.. so OSPM could notice resource conflict if there is any.

Signed-off-by: Igor Mammedov <>
Reviewed-by: Michael S. Tsirkin <>
Signed-off-by: Michael S. Tsirkin <>

e4cf8ed0 01/26/2014 01:11 pm Igor Mammedov

pc: ACPI: unify source of CPU hotplug IO base/len

use C headers defines as source of IO base/len for respective
values in ASL code.

Signed-off-by: Igor Mammedov <>
Reviewed-by: Michael S. Tsirkin <>
Signed-off-by: Michael S. Tsirkin <>

2867534f 01/26/2014 01:11 pm Igor Mammedov

pc: ACPI: update acpi-dsdt.hex.generated q35-acpi-dsdt.hex.generated

Signed-off-by: Igor Mammedov <>
Reviewed-by: Michael S. Tsirkin <>
Signed-off-by: Michael S. Tsirkin <>

d2597938 01/26/2014 01:06 pm Marcel Apfelbaum

acpi unit-test: add test files

Added unit-test's expected aml files to be compared
with the actual ACPI tables.

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

c2304b52 01/26/2014 01:06 pm Marcel Apfelbaum

configure: added acpi unit-test files

Ensure configure will set-up links for the files
if the build is created in other directory.

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

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

acpi unit-test: compare DSDT and SSDT tables against expected values

This test will run only if iasl is installed on the host machine.
The test plan:
1. Dumps the ACPI tables as AML on the disk.
2. Runs iasl to disassembly the tables into ASL files.
3. Runs iasl to disassembly the offline AML files into ASL files....

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

cc8fa0e8 01/26/2014 01:06 pm Marcel Apfelbaum

acpi unit-test: extract iasl executable from configuration

The test checked if iasl is installed by running "iasl"
and checking the error output.
It is better to use the iasl executable as appears
in configuration.

Signed-off-by: Marcel Apfelbaum <>...

cebc92a2 01/26/2014 01:06 pm Marcel Apfelbaum

acpi unit-test: added script to rebuild the expected aml files

Acpi unit-test will fail every time the acpi tables change.
This script rebuild the expected aml files, so the test
will pass. It also validates the modifications.

Signed-off-by: Marcel Apfelbaum <>...

4500bc98 01/26/2014 01:06 pm Marcel Apfelbaum

acpi unit-test: hook to rebuild expected aml files

When running the test with TEST_ACPI_REBUILD_AML=y environment
variable, the test will rebuild and validate the expected aml
files.

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

084137dd 01/26/2014 01:06 pm Alexey Kardashevskiy

tests: fix acpi to work on bigendian host

Double endianness convertion make this test failing on POWERPC machine
running in big-endian.

This fixes the test to success on big-endian host.

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

a3a74ab9 01/26/2014 01:06 pm Marcel Apfelbaum

acpi unit-test: renamed ssdt_tables to tables

Just a refactoring, ssdt_tables name was confusing as
it included other tables as well.

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

69d09245 01/26/2014 01:06 pm Marcel Apfelbaum

acpi unit-test: resolved iasl crash

It seems that iasl has an issue when disassembles
some ACPI tables using the command line:
iasl -e DSDT -e SSDT -d HPET

Modified the iasl command line to "iasl -d HPET"
until the problem is solved. The command line
remained the same for DSDT and SSDT tables....

0651596c 01/26/2014 01:06 pm Marcel Apfelbaum

acpi unit-test: do not fail on asl mismatch

The asl comparison will break every time the ACPI
tables are updated. This may break the git bisect.
Instead of failing print a warning on stderr
including the retained asl files, so they can be
compared offline....

4d25299c 01/26/2014 01:06 pm Igor Mammedov

pc: make: fix dependencies: rebuild when included file is changed

some *.dsl files include another *.dsl files but there weren't
any dependicies and when included file changed target table wasn't
rebuild. Fix this by using the same auto dependency generation...

eb0acfdd 01/26/2014 01:06 pm Michael S. Tsirkin

pci: add pci_for_each_bus_depth_first

Useful for ACPI hotplug.

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

db4728e6 01/26/2014 01:06 pm Michael S. Tsirkin

pcihp: generalization of piix4 acpi

Add ACPI based PCI hotplug library with bridge hotplug
support.
Design
- each bus gets assigned "bsel" property.
- ACPI code writes this number
to a new BNUM register, then uses existing
UP/DOWN registers to probe slot status;...

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

15bce1b7 01/26/2014 01:06 pm Gabriel L. Somlo

Add DSDT node for AppleSMC

AppleSMC (-device isa-applesmc) is required to boot OS X guests.
OS X expects a SMC node to be present in the ACPI DSDT. This patch
adds a SMC node to the DSDT, and dynamically patches the return value
of SMC._STA to either 0x0B if the chip is present, or otherwise to 0x00,...

8977557a 01/26/2014 01:06 pm Gabriel L. Somlo

ACPI: Fix AppleSMC _STA size

Minimize the storage used for AppleSMC's _STA (8bit), relying on ASL
to implicitly convert it to the officially specified 32bit value.

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

4dd72e04 01/26/2014 01:06 pm Stefan Weil

virtio: Fix return value for dummy function vhost_net_virtqueue_pending

cgcc complains that -ENOSYS is not a good value for 'bool'.

A dummy virtio will never have pending queue entries, so let us return
false.

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

2d23d5ed 01/26/2014 01:21 am Aurelien Jarno

tcg/i386: cleanup useless #ifdef

TCG_TARGET_HAS_movcond_i32 is always defined to 1 in tcg-target.h, so
remove the corresponding #ifdef #endif sequence, left from a previous
refactoring.

Signed-off-by: Aurelien Jarno <>
Signed-off-by: Richard Henderson <>

085bb5bb 01/26/2014 01:19 am Aurelien Jarno

tcg/i386: use movbe instruction in qemu_ldst routines

The movbe instruction has been added on some Intel Atom CPUs and on
recent Intel Haswell CPUs. It allows to load/store a value and at the
same time bswap it.

This patch detects the avaibility of this instruction and when available...