[Qemu-devel] [PATCH 2/2] Makefile.target: binary depends on config-devices

2015-02-18 Thread Michael S. Tsirkin
relink binary whenever config-devices.mak changes: this makes sense as we are adding/removing devices, so binary has to be relinked to be up to date. Signed-off-by: Michael S. Tsirkin --- Makefile.target | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile.target b/Mak

[Qemu-devel] [PATCH 1/2] Makefile: don't silence mak file test with V=1

2015-02-18 Thread Michael S. Tsirkin
V=1 should show what's going on, it's not nice to silence things unconditionally. Signed-off-by: Michael S. Tsirkin --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 6817c6f..84ca8be 100644 --- a/Makefile +++ b/Makefile @@ -110,7 +110,

Re: [Qemu-devel] [RESEND PATCH v3 0/2] balloon: add a feature bit to let Guest OS deflate virtio_balloon on OOM

2015-02-18 Thread Denis V. Lunev
On 29/01/15 17:24, Denis V. Lunev wrote: Excessive virtio_balloon inflation can cause invocation of OOM-killer, when Linux is under severe memory pressure. Various mechanisms are responsible for correct virtio_balloon memory management. Nevertheless it is often the case that these control tools d

Re: [Qemu-devel] [PATCH] Make i82801b11 and ioh3420 x86 only by default

2015-02-18 Thread David Gibson
On Thu, Feb 19, 2015 at 12:45:23PM +0900, Peter Maydell wrote: > On 18 February 2015 at 16:57, Paolo Bonzini wrote: > > On 18/02/2015 05:59, David Gibson wrote: > >> that are very unlikely to appear on anything other than > >> an x86. Therefore this patch gives them their own config options, ena

Re: [Qemu-devel] [PATCH] Make i82801b11 and ioh3420 x86 only by default

2015-02-18 Thread Peter Maydell
On 18 February 2015 at 16:57, Paolo Bonzini wrote: > On 18/02/2015 05:59, David Gibson wrote: >> that are very unlikely to appear on anything other than >> an x86. Therefore this patch gives them their own config options, enabled >> only for x86 targets by default. > > I think it's quite likely t

Re: [Qemu-devel] [PATCH] Make i82801b11 and ioh3420 x86 only by default

2015-02-18 Thread David Gibson
On Wed, Feb 18, 2015 at 08:57:39AM +0100, Paolo Bonzini wrote: > > > On 18/02/2015 05:59, David Gibson wrote: > > As PCI devices, the i82801b11 and ioh3420 devices could theoretically exist > > on any platform with a PCI bus. However in practice, they're Intel > > specific devices, > > They can

Re: [Qemu-devel] [PATCH 15/16] ipmi: Add ACPI table entries for BMCs

2015-02-18 Thread Benjamin Herrenschmidt
On Fri, 2014-12-12 at 13:15 -0600, miny...@acm.org wrote: > From: Corey Minyard > > Use the new ACPI table construction tools to create an ACPI > entry for IPMI. Same question as for the smbios business... Can this be made optional possibly via instanciation attributes for the BMC device ? Ben.

Re: [Qemu-devel] [PATCH 12/16] ipmi: Add SMBIOS table entry

2015-02-18 Thread Benjamin Herrenschmidt
On Fri, 2014-12-12 at 13:15 -0600, miny...@acm.org wrote: > From: Corey Minyard > > Add an IPMI table entry to the SMBIOS. Can this be made optional ? I'd like to use the BMC on an OpenPower model I'm working on but that has no smbios.. Cheers, Ben. > Signed-off-by: Corey Minyard > --- > hw/

Re: [Qemu-devel] [PATCH v7 11/25] qcow2: refcount_order parameter for qcow2_create2

2015-02-18 Thread Eric Blake
On 02/18/2015 03:40 PM, Max Reitz wrote: > Add a refcount_order parameter to qcow2_create2(), use that value for > the image header and for calculating the size required for > preallocation. > > For now, always pass 4. > > This addition requires changes to the calculation of the file size for > t

Re: [Qemu-devel] [PATCH v18 1/2] sPAPR: Implement EEH RTAS calls

2015-02-18 Thread Michael Roth
Quoting Gavin Shan (2015-02-15 23:32:09) > On Mon, Feb 16, 2015 at 12:52:48PM +1100, David Gibson wrote: > >On Mon, Feb 16, 2015 at 10:16:01AM +1100, Gavin Shan wrote: > >> The emulation for EEH RTAS requests from guest isn't covered > >> by QEMU yet and the patch implements them. > >> > >> The pa

Re: [Qemu-devel] [PATCH RFC v3 00/14] Dirty bitmaps migration

2015-02-18 Thread John Snow
On 02/18/2015 09:00 AM, Vladimir Sementsov-Ogievskiy wrote: rfc: there are two tests. They are the same but using different interfaces: md5 checksum of the bitmap last layer in query-block or separate query-block-dirty-bitmap with dirty bitmap regions. The second form is more appropria

Re: [Qemu-devel] [PATCH RFC v3 14/14] migration/qemu-file: make functions qemu_(get/put)_string public

2015-02-18 Thread John Snow
On 02/18/2015 09:00 AM, Vladimir Sementsov-Ogievskiy wrote: Signed-off-by: Vladimir Sementsov-Ogievskiy --- include/migration/qemu-file.h | 17 + migration/block-dirty-bitmap.c | 35 --- migration/qemu-file.c | 18 ++

Re: [Qemu-devel] [PATCH RFC v3 10/14] iotests: add add_incoming_migration to VM class

2015-02-18 Thread John Snow
On 02/18/2015 09:00 AM, Vladimir Sementsov-Ogievskiy wrote: Signed-off-by: Vladimir Sementsov-Ogievskiy --- tests/qemu-iotests/iotests.py | 6 ++ 1 file changed, 6 insertions(+) diff --git a/tests/qemu-iotests/iotests.py b/tests/qemu-iotests/iotests.py index fa756b4..75640b2 100644 ---

Re: [Qemu-devel] [PATCH RFC v3 08/14] migration: add migration/block-dirty-bitmap.c

2015-02-18 Thread John Snow
On 02/18/2015 09:00 AM, Vladimir Sementsov-Ogievskiy wrote: Live migration of dirty bitmaps. Only named dirty bitmaps, associated with root nodes and non-root named nodes are migrated. If destination qemu is already containing a dirty bitmap with the same name as a migrated bitmap (for the sam

Re: [Qemu-devel] [PATCH RFC v3 07/14] qapi: add dirty-bitmaps migration capability

2015-02-18 Thread John Snow
On 02/18/2015 09:00 AM, Vladimir Sementsov-Ogievskiy wrote: Signed-off-by: Vladimir Sementsov-Ogievskiy --- include/migration/migration.h | 1 + migration/migration.c | 9 + qapi-schema.json | 5 - 3 files changed, 14 insertions(+), 1 deletion(-) diff --g

Re: [Qemu-devel] [PATCH RFC v3 09/14] iotests: maintain several vms in test

2015-02-18 Thread John Snow
On 02/18/2015 09:00 AM, Vladimir Sementsov-Ogievskiy wrote: The only problem with it is the same qmp socket name (which is vm._monitor_path) for all vms. And because of this second vm couldn't be lauched (vm.launch() fails because of socket is already in use). This patch adds a number of vm int

Re: [Qemu-devel] [PATCH RFC v3 06/14] block: add bdrv_next_dirty_bitmap()

2015-02-18 Thread John Snow
On 02/18/2015 09:00 AM, Vladimir Sementsov-Ogievskiy wrote: Like bdrv_next() - bdrv_next_dirty_bitmap() is a function to provide access to private dirty bitmaps list. Signed-off-by: Vladimir Sementsov-Ogievskiy --- block.c | 10 ++ include/block/block.h | 2 ++ 2 f

Re: [Qemu-devel] [PATCH RFC v3 05/14] block: add meta bitmaps

2015-02-18 Thread John Snow
On 02/18/2015 09:00 AM, Vladimir Sementsov-Ogievskiy wrote: Meta bitmap is a 'dirty bitmap' for the BdrvDirtyBitmap. It tracks changes (set/unset) of this BdrvDirtyBitmap. It is needed for live migration of block dirty bitmaps. Signed-off-by: Vladimir Sementsov-Ogievskiy --- block.c

Re: [Qemu-devel] [PATCH RFC v3 04/14] block: tiny refactoring: minimize hbitmap_(set/reset) usage

2015-02-18 Thread John Snow
On 02/18/2015 09:00 AM, Vladimir Sementsov-Ogievskiy wrote: Signed-off-by: Vladimir Sementsov-Ogievskiy --- block.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/block.c b/block.c index e95a5ae..a127fd2 100644 --- a/block.c +++ b/block.c @@ -5670,8 +5670,7 @@ vo

Re: [Qemu-devel] [PATCH RFC v3 03/14] block: BdrvDirtyBitmap serialization interface

2015-02-18 Thread John Snow
On 02/18/2015 09:00 AM, Vladimir Sementsov-Ogievskiy wrote: Several functions to provide necessary access to BdrvDirtyBitmap for block-migration.c Signed-off-by: Vladimir Sementsov-Ogievskiy --- block.c | 36 include/block/block.h | 13 +++

Re: [Qemu-devel] [PATCH RFC v3 02/14] hbitmap: serialization

2015-02-18 Thread John Snow
On 02/18/2015 09:00 AM, Vladimir Sementsov-Ogievskiy wrote: Functions to serialize / deserialize(restore) HBitmap. HBitmap should be saved to linear sequence of bits independently of endianness and bitmap array element (unsigned long) size. Therefore Little Endian is chosen. These functions ar

[Qemu-devel] [PULL 76/96] acpi: include PkgLength size only when requested

2015-02-18 Thread Michael S. Tsirkin
From: Igor Mammedov Named/Reserved{Field} definition uses PkgLength [1] encoding to specify field length, however it doesn't include size of PkgLength field itself, while other block objects that have explicit length of its body account for PkgLength size while encoding it [2]. This special casin

[Qemu-devel] [PULL 21/96] acpi, piix4: Add unplug cb for piix4.

2015-02-18 Thread Michael S. Tsirkin
From: Tang Chen Memory and CPU hot unplug are both asynchronous procedures. When the unplug operation happens, unplug request cb is called first. And when guest OS finished handling unplug, unplug cb will be called to do the real removal of device. This patch adds hotunplug cb to piix4, which me

[Qemu-devel] [PULL 96/96] acpi-test: update expected files

2015-02-18 Thread Michael S. Tsirkin
A bunch of code moved from dsdt to ssdt, plus we got trivial changes like 0->Zero which our test dosn't recognize as identity yet. Update expected files to suppress test warning. Signed-off-by: Michael S. Tsirkin --- tests/acpi-test-data/pc/DSDT | Bin 3621 -> 3415 bytes tests/acpi-test-data/pc

Re: [Qemu-devel] [PATCH] migration: Avoid qerror_report_err() outside QMP command handlers

2015-02-18 Thread Juan Quintela
Markus Armbruster wrote: > qerror_report_err() is a transitional interface to help with > converting existing monitor commands to QMP. It should not be used > elsewhere. Replace by error_report_err() in > process_incoming_migration_co(). I trust you & eric Included, thanks. > > Signed-off-by:

[Qemu-devel] [PULL 47/96] s390: use standard headers

2015-02-18 Thread Michael S. Tsirkin
Drop duplicated macros in favor of values from standard headers. Tested-by: Cornelia Huck Signed-off-by: Michael S. Tsirkin --- hw/s390x/s390-virtio-bus.h | 36 +++- hw/s390x/s390-virtio.h | 7 ++- 2 files changed, 21 insertions(+), 22 deletions(-) diff

[Qemu-devel] [PATCH v7 18/25] qcow2: Use error_report() in qcow2_amend_options()

2015-02-18 Thread Max Reitz
Signed-off-by: Max Reitz Reviewed-by: Eric Blake Reviewed-by: Stefan Hajnoczi --- block/qcow2.c | 14 ++ tests/qemu-iotests/061.out | 14 +++--- 2 files changed, 13 insertions(+), 15 deletions(-) diff --git a/block/qcow2.c b/block/qcow2.c index 3ee1466..0548248

[Qemu-devel] [PULL 89/96] pc: acpi-build: drop template patching and memory hotplug objects dynamically

2015-02-18 Thread Michael S. Tsirkin
From: Igor Mammedov in addition it saves us ~330LOC and makes it one binary blob less stored in QEMU source tree by removing need to keep and update hw/i386/ssdt-mem.hex.generated file there. Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- h

[Qemu-devel] [PULL 78/96] acpi: add aml_field() & aml_named_field() terms

2015-02-18 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/hw/acpi/aml-build.h | 6 ++ hw/acpi/aml-build.c | 28 2 files changed, 34 insertions(+) diff --git a/include/hw/acpi/aml-bu

[Qemu-devel] [PULL 90/96] pc: acpi-build: create memory hotplug IO region dynamically

2015-02-18 Thread Michael S. Tsirkin
From: Igor Mammedov it replaces a static complied in DSDT MMIO region for memory hotplug with one created at runtime leaving only truly static memory hotplug related ASL bits in DSDT. And replaces template patching of MEMORY_SLOTS_NUMBER value with ASL API created named value. Later it also woul

[Qemu-devel] [PULL 73/96] acpi: add aml_buffer() term

2015-02-18 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/hw/acpi/aml-build.h | 1 + hw/acpi/aml-build.c | 7 +++ 2 files changed, 8 insertions(+) diff --git a/include/hw/acpi/aml-build.h b/include/hw/acpi/aml-b

[Qemu-devel] [PULL 88/96] acpi: add aml_reserved_field() term

2015-02-18 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/hw/acpi/aml-build.h | 6 ++ hw/acpi/aml-build.c | 10 ++ 2 files changed, 16 insertions(+) diff --git a/include/hw/acpi/aml-build.h b/include/hw

[Qemu-devel] [PULL 35/96] virtio-balloon: use standard headers

2015-02-18 Thread Michael S. Tsirkin
Drop code duplicated from standard headers. Signed-off-by: Michael S. Tsirkin Reviewed-by: Thomas Huth Reviewed-by: Thomas Huth --- include/hw/virtio/virtio-balloon.h | 35 ++- 1 file changed, 2 insertions(+), 33 deletions(-) diff --git a/include/hw/virtio/virt

[Qemu-devel] [PULL 94/96] acpi: update generated hex files

2015-02-18 Thread Michael S. Tsirkin
Used for IASL builds. Signed-off-by: Michael S. Tsirkin --- hw/i386/acpi-dsdt.hex.generated | 224 ++--- hw/i386/q35-acpi-dsdt.hex.generated | 224 ++--- hw/i386/ssdt-misc.hex.generated | 274 +--- 3 files ch

[Qemu-devel] [PULL 09/96] pcnet: pcnet_common_init() always returns 0, change to void

2015-02-18 Thread Michael S. Tsirkin
From: Markus Armbruster The next commit will exploit the fact it never fails. This one makes it obvious. Signed-off-by: Markus Armbruster Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin Reviewed-by: Gonglei --- hw/net/pcnet.h | 2 +- hw/net/lance.c | 3 ++- hw/net

[Qemu-devel] [PULL 59/96] pc: acpi-build: use aml_scope() for \_SB scope

2015-02-18 Thread Michael S. Tsirkin
From: Igor Mammedov prepares for incremental conversion of SSDT content to AML API Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/i386/acpi-build.c | 39 +++ 1 file changed, 19 insertions(+), 20 deleti

[Qemu-devel] [PATCH v7 20/25] qcow2: Split upgrade/downgrade paths for amend

2015-02-18 Thread Max Reitz
If the image version should be upgraded, that is the first we should do; if it should be downgraded, that is the last we should do. So split the version change block into an upgrade part at the start and a downgrade part at the end. Signed-off-by: Max Reitz Reviewed-by: Eric Blake Reviewed-by: S

[Qemu-devel] [PATCH v7 19/25] qcow2: Use abort() instead of assert(false)

2015-02-18 Thread Max Reitz
Signed-off-by: Max Reitz Reviewed-by: Eric Blake Reviewed-by: Stefan Hajnoczi --- block/qcow2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/block/qcow2.c b/block/qcow2.c index 0548248..6283a1c 100644 --- a/block/qcow2.c +++ b/block/qcow2.c @@ -2729,9 +2729,9 @@ stati

[Qemu-devel] [PATCH v7 21/25] qcow2: Use intermediate helper CB for amend

2015-02-18 Thread Max Reitz
If there is more than one time-consuming operation to be performed for qcow2_amend_options(), we need an intermediate CB which coordinates the progress of the individual operations and passes the result to the original status callback. Signed-off-by: Max Reitz Reviewed-by: Eric Blake Reviewed-by

[Qemu-devel] [PATCH v7 15/25] iotests: Add test for different refcount widths

2015-02-18 Thread Max Reitz
Add a test for errors specific to certain widths (i.e. snapshots with refcount_bits=1). Signed-off-by: Max Reitz --- tests/qemu-iotests/112 | 187 + tests/qemu-iotests/112.out | 84 tests/qemu-iotests/group | 1 + 3 files

[Qemu-devel] [PATCH v7 12/25] qcow2: Use symbolic macros in qcow2_amend_options

2015-02-18 Thread Max Reitz
qcow2_amend_options() should not compare options against some inline strings but rather use the symbolic macros available for each of the creation options. Signed-off-by: Max Reitz Reviewed-by: Eric Blake Reviewed-by: Stefan Hajnoczi --- block/qcow2.c | 31 --- 1 fi

[Qemu-devel] [PATCH v7 17/25] block: Add opaque value to the amend CB

2015-02-18 Thread Max Reitz
Add an opaque value which is to be passed to the bdrv_amend_options() status callback. Signed-off-by: Max Reitz Reviewed-by: Eric Blake Reviewed-by: Stefan Hajnoczi --- block.c | 4 ++-- block/qcow2-cluster.c | 14 -- block/qcow2.c | 9 +

[Qemu-devel] [PULL 57/96] acpi: introduce AML composer aml_append()

2015-02-18 Thread Michael S. Tsirkin
From: Igor Mammedov Adds for dynamic AML creation, which will be used for piecing ASL/AML primitives together and hiding from user/caller details about how nested context should be closed/packed leaving less space for mistakes and necessity to know how AML should be encoded, allowing user to conc

[Qemu-devel] [PATCH v7 11/25] qcow2: refcount_order parameter for qcow2_create2

2015-02-18 Thread Max Reitz
Add a refcount_order parameter to qcow2_create2(), use that value for the image header and for calculating the size required for preallocation. For now, always pass 4. This addition requires changes to the calculation of the file size for the "full" and "falloc" preallocation modes. That in turn

[Qemu-devel] [PATCH v7 23/25] qcow2: Invoke refcount order amendment function

2015-02-18 Thread Max Reitz
Make use of qcow2_change_refcount_order() to support changing the refcount order with qemu-img amend. Signed-off-by: Max Reitz Reviewed-by: Eric Blake Reviewed-by: Stefan Hajnoczi --- block/qcow2.c | 44 +++- 1 file changed, 35 insertions(+), 9 deletions

[Qemu-devel] [PULL 75/96] acpi: add aml_io() helper

2015-02-18 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/hw/acpi/aml-build.h | 7 +++ hw/acpi/aml-build.c | 16 2 files changed, 23 insertions(+) diff --git a/include/hw/acpi/aml-build.h b/inc

[Qemu-devel] [PULL 81/96] pc: acpi-build: generate pvpanic device description dynamically

2015-02-18 Thread Michael S. Tsirkin
From: Igor Mammedov Drops AML template patching and allows to save some space in SSDT if pvpanic device doesn't exist by not including disabled device description into SSDT. It also makes device description smaller by replacing _STA method with named value and dropping _INI method. Signed-off-by

[Qemu-devel] [PULL 95/96] acpi: drop unused generated files

2015-02-18 Thread Michael S. Tsirkin
drop ssdt-mem.hex.generated and ssdt-proc.hex.generated: dsl files have been removed previously. Signed-off-by: Michael S. Tsirkin --- hw/i386/ssdt-mem.hex.generated | 213 hw/i386/ssdt-proc.hex.generated | 134 - 2 files changed,

[Qemu-devel] [PULL 25/96] pc: acpi-build: update linker on guest access

2015-02-18 Thread Michael S. Tsirkin
From: Igor Mammedov Linker table is build only once, so if later during tables rebuild sizes of other ACPI tables change pointers will be patched incorrectly due to wrong offsets in linker. Resulting in guest not being able to find ACPI tables. Fix it by updating 'linker' table with the rest of t

[Qemu-devel] [PATCH v7 24/25] qcow2: Point to amend function in check

2015-02-18 Thread Max Reitz
If a reference count is not representable with the current refcount order, the image check should point to qemu-img amend for increasing the refcount order. However, qemu-img amend needs write access to the image which cannot be provided if the image is marked corrupt; and the image check will not

[Qemu-devel] [PULL 43/96] linux-headers: use standard-headers

2015-02-18 Thread Michael S. Tsirkin
Drop duplicated code. Signed-off-by: Michael S. Tsirkin --- linux-headers/linux/virtio_config.h | 58 + linux-headers/linux/virtio_ring.h | 164 +--- 2 files changed, 2 insertions(+), 220 deletions(-) diff --git a/linux-headers/linux/virtio_config.

[Qemu-devel] [PULL 68/96] acpi: add aml_and() term

2015-02-18 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/hw/acpi/aml-build.h | 1 + hw/acpi/aml-build.c | 10 ++ 2 files changed, 11 insertions(+) diff --git a/include/hw/acpi/aml-build.h b/include/hw/acpi

[Qemu-devel] [PATCH v7 16/25] progress: Allow regressing progress

2015-02-18 Thread Max Reitz
Progress may regress; this should be displayed correctly by qemu_progress_print(). While touching that area of code, drop the redundant parentheses in the same condition. Signed-off-by: Max Reitz Reviewed-by: Eric Blake Reviewed-by: Stefan Hajnoczi --- util/qemu-progress.c | 3 ++- 1 file cha

[Qemu-devel] [PULL 84/96] acpi: add aml_processor() term

2015-02-18 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/hw/acpi/aml-build.h | 2 ++ hw/acpi/aml-build.c | 15 +++ 2 files changed, 17 insertions(+) diff --git a/include/hw/acpi/aml-build.h b/include/h

[Qemu-devel] [PULL 92/96] pc: pcihp: expose MMIO base and len as properties

2015-02-18 Thread Michael S. Tsirkin
From: Igor Mammedov it will be used later to dynamically reserve MMIO region instead of manually punching holes in PCI0._CRS Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/hw/acpi/pcihp.h | 7 ++- hw/acpi/pcihp.c | 18 +

[Qemu-devel] [PULL 53/96] update-linux-headers.sh: s/__inline__/inline/

2015-02-18 Thread Michael S. Tsirkin
Thomas Huth noticed that some linux headers use __inline__, change to inline to be consistent with the rest of QEMU. Reported-by: Thomas Huth Signed-off-by: Michael S. Tsirkin --- scripts/update-linux-headers.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/update-linux-headers.sh

[Qemu-devel] [PULL 27/96] exec: round up size on MR resize

2015-02-18 Thread Michael S. Tsirkin
Block size must fundamentally be a multiple of target page size. Aligning automatically removes need to worry about the alignment from callers. Note: the only caller of qemu_ram_resize (acpi) already happens to have size padded to a power of 2, but we would like to drop the padding in ACPI core, a

[Qemu-devel] [PULL 04/96] acpi: add build_append_namestring() helper

2015-02-18 Thread Michael S. Tsirkin
From: Igor Mammedov Use build_append_namestring() instead of build_append_nameseg() So user won't have to care whether name is NameSeg, NamePath or NameString. See for reference ACPI 5.0: 20.2.2 Name Objects Encoding Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by:

[Qemu-devel] [PATCH v7 22/25] qcow2: Add function for refcount order amendment

2015-02-18 Thread Max Reitz
Add a function qcow2_change_refcount_order() which allows changing the refcount order of a qcow2 image. Signed-off-by: Max Reitz Reviewed-by: Eric Blake Reviewed-by: Stefan Hajnoczi --- block/qcow2-refcount.c | 452 + block/qcow2.h | 4

[Qemu-devel] [PULL 79/96] acpi: add aml_local() term

2015-02-18 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/hw/acpi/aml-build.h | 1 + hw/acpi/aml-build.c | 11 +++ 2 files changed, 12 insertions(+) diff --git a/include/hw/acpi/aml-build.h b/include/hw/acp

[Qemu-devel] [PULL 91/96] acpi: add aml_word_bus_number(), aml_word_io(), aml_dword_memory(), aml_qword_memory() terms

2015-02-18 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/hw/acpi/aml-build.h | 72 hw/acpi/aml-build.c | 161 2 files changed, 233 insertions(+) di

[Qemu-devel] [PATCH v7 00/25] qcow2: Support refcount orders != 4

2015-02-18 Thread Max Reitz
As of version 3, the qcow2 file format supports different widths for refcount entries, ranging from 1 to 64 bit (only powers of two). Currently, qemu only supports 16 bit, which is the only width supported by version 2 (compat=0.10) images. This series adds support to qemu for all other valid refc

[Qemu-devel] [PULL 64/96] acpi: add aml_int() term

2015-02-18 Thread Michael S. Tsirkin
From: Igor Mammedov * factor out ACPI const int packing out of build_append_value() and rename build_append_value() to build_append_int_noprefix() it will be reused for adding a plain integer value into AML. will be used by is aml_processor() and CRS macro helpers * extend build_append_int{

[Qemu-devel] [PATCH v7 25/25] iotests: Extend test 112 for qemu-img amend

2015-02-18 Thread Max Reitz
Add tests for conversion between different refcount widths. Signed-off-by: Max Reitz --- tests/qemu-iotests/112 | 109 + tests/qemu-iotests/112.out | 71 + 2 files changed, 180 insertions(+) diff --git a/tests/qemu-iot

[Qemu-devel] [PULL 42/96] update-linux-headers: use standard-headers

2015-02-18 Thread Michael S. Tsirkin
Drop the linux-specific virtio headers, use the copy from standard-headers instead. Signed-off-by: Michael S. Tsirkin --- scripts/update-linux-headers.sh | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/update-linux-headers.sh b/scripts/update-linux-headers.sh i

[Qemu-devel] [PATCH v7 13/25] iotests: Prepare for refcount_bits option

2015-02-18 Thread Max Reitz
Some tests do not work well with certain refcount widths (i.e. you cannot create internal snapshots with refcount_bits=1), so make those widths unsupported. Furthermore, add another filter to _filter_img_create in common.filter which filters out the refcount_bits value. This is necessary for test

[Qemu-devel] [PULL 86/96] pc: acpi-build: drop template patching and CPU hotplug objects dynamically

2015-02-18 Thread Michael S. Tsirkin
From: Igor Mammedov in addition it saves us ~400LOC and makes it one binary blob less stored in QEMU source tree by removing need to keep and update hw/i386/ssdt-proc.hex.generated file there. Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin ---

[Qemu-devel] [PATCH v7 14/25] qcow2: Allow creation with refcount order != 4

2015-02-18 Thread Max Reitz
Add a creation option to qcow2 for setting the refcount order of images to be created, and respect that option's value. This breaks some test outputs, fix them. Signed-off-by: Max Reitz --- block/qcow2.c | 18 include/block/block_int.h | 1 + tests/qemu-iotests/049.out

[Qemu-devel] [PULL 36/96] virtio-9p: use standard headers

2015-02-18 Thread Michael S. Tsirkin
Drop code duplicated from standard headers. Signed-off-by: Michael S. Tsirkin Reviewed-by: Thomas Huth Reviewed-by: Thomas Huth --- hw/9pfs/virtio-9p.h | 17 + 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/hw/9pfs/virtio-9p.h b/hw/9pfs/virtio-9p.h index 0776424.

[Qemu-devel] [PULL 93/96] pc: acpi-build: reserve PCIHP MMIO resources

2015-02-18 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/i386/acpi-build.c | 27 +++ 1 file changed, 27 insertions(+) diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c index 98553f8..4d5d7e3 10064

[Qemu-devel] [PULL 55/96] standard-headers: include stdint.h

2015-02-18 Thread Michael S. Tsirkin
The importing script got it right already, I just forgot to re-run it. Reported-by: Thomas Huth Signed-off-by: Michael S. Tsirkin --- include/standard-headers/linux/types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/standard-headers/linux/types.h b/include/stan

[Qemu-devel] [PULL 00/96] pci, pc, virtio fixes and cleanups

2015-02-18 Thread Michael S. Tsirkin
A huge patchset, but the scariest part is Igor's patches, and these have been used by multiple people by now. virtio header change is a bit rushed, but getting them upstream seems like the best way to give them the cross-platform testing that they need, and this takes us a step closer to virtio-1.0

[Qemu-devel] [PULL 50/96] virtio: add feature checking helpers

2015-02-18 Thread Michael S. Tsirkin
From: Cornelia Huck Add a helper function for checking whether a bit is set in the guest features for a vdev as well as one that works on a feature bit set. Convert code that open-coded this: It cleans up the code and makes it easier to extend the guest feature bits. Signed-off-by: Cornelia Huc

[Qemu-devel] [PULL 87/96] pc: acpi-build: create CPU hotplug IO region dynamically

2015-02-18 Thread Michael S. Tsirkin
From: Igor Mammedov it replaces a static complied in DSDT MMIO region for CPU hotplug with one created at runtime leaving only truly static CPU hotplug related ASL bits in DSDT. It also puts CPU_HOTPLUG_RESOURCE_DEVICE into PCI0 scope and reserves resources from it, preparing for dropping manual

[Qemu-devel] [PULL 70/96] acpi: add aml_call1(), aml_call2(), aml_call3(), aml_call4() helpers

2015-02-18 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/hw/acpi/aml-build.h | 4 hw/acpi/aml-build.c | 42 ++ 2 files changed, 46 insertions(+) diff --git a/include/hw

[Qemu-devel] [PULL 74/96] acpi: add aml_resource_template() helper

2015-02-18 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/hw/acpi/aml-build.h | 1 + hw/acpi/aml-build.c | 8 2 files changed, 9 insertions(+) diff --git a/include/hw/acpi/aml-build.h b/include/hw/acpi/aml-

[Qemu-devel] [PULL 02/96] bios linker: validate pointer within table

2015-02-18 Thread Michael S. Tsirkin
buios linker assumes pointer parameter it gets is within table, validate this. Signed-off-by: Michael S. Tsirkin --- hw/acpi/bios-linker-loader.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hw/acpi/bios-linker-loader.c b/hw/acpi/bios-linker-loader.c index 5cc4d90..d938

[Qemu-devel] [PULL 52/96] pc: acpi: use local var for accessing ACPI tables blob in acpi_build()

2015-02-18 Thread Michael S. Tsirkin
From: Igor Mammedov except of shortening of lines and making code a bit more readable, it will reduce renaming noise when changing tables blob from GArray* to Aml* type. Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/i386/acpi-build.c |

[Qemu-devel] [PULL 85/96] acpi: add aml_eisaid() term

2015-02-18 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/hw/acpi/aml-build.h | 1 + hw/acpi/aml-build.c | 29 + 2 files changed, 30 insertions(+) diff --git a/include/hw/acpi/aml-build.

[Qemu-devel] [PULL 69/96] acpi: add aml_notify() term

2015-02-18 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/hw/acpi/aml-build.h | 1 + hw/acpi/aml-build.c | 9 + 2 files changed, 10 insertions(+) diff --git a/include/hw/acpi/aml-build.h b/include/hw/acpi/am

[Qemu-devel] [PULL 48/96] virtio: cull virtio_bus_set_vdev_features

2015-02-18 Thread Michael S. Tsirkin
From: Cornelia Huck The only user of this function was virtio-ccw, and it should use virtio_set_features() like everybody else: We need to make sure that bad features are masked out properly, which this function did not do. Reviewed-by: Thomas Huth Signed-off-by: Cornelia Huck Reviewed-by: Mic

[Qemu-devel] [PULL 49/96] virtio: feature bit manipulation helpers

2015-02-18 Thread Michael S. Tsirkin
From: Cornelia Huck Add virtio_{add,clear}_feature helper functions for manipulating a feature bits variable. This has some benefits over open coding: - add check that the bit is in a sane range - make it obvious at a glance what is going on - have a central point to change when we want to extend

[Qemu-devel] [PULL 82/96] acpi: add aml_varpackage() term

2015-02-18 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/hw/acpi/aml-build.h | 1 + hw/acpi/aml-build.c | 8 2 files changed, 9 insertions(+) diff --git a/include/hw/acpi/aml-build.h b/include/hw/acpi/aml-

[Qemu-devel] [PULL 40/96] virtio-scsi: use standard-headers

2015-02-18 Thread Michael S. Tsirkin
Drop duplicated code. Signed-off-by: Michael S. Tsirkin Acked-by: Paolo Bonzini --- include/hw/virtio/virtio-scsi.h | 120 +++- hw/scsi/virtio-scsi.c | 1 + 2 files changed, 10 insertions(+), 111 deletions(-) diff --git a/include/hw/virtio/virtio

[Qemu-devel] [PULL 08/96] pci: Trivial device model conversions to realize

2015-02-18 Thread Michael S. Tsirkin
From: Markus Armbruster Convert the device models where initialization obviously can't fail. Signed-off-by: Markus Armbruster Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin Reviewed-by: Gonglei --- hw/acpi/piix4.c| 5 ++--- hw/audio/ac97.c| 5 ++-

[Qemu-devel] [PULL 62/96] acpi: add aml_if() term

2015-02-18 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/hw/acpi/aml-build.h | 1 + hw/acpi/aml-build.c | 8 2 files changed, 9 insertions(+) diff --git a/include/hw/acpi/aml-build.h b/include/hw/acpi/aml-

[Qemu-devel] [PULL 20/96] acpi, ich9: Add unplug cb for ich9.

2015-02-18 Thread Michael S. Tsirkin
From: Tang Chen Memory and CPU hot unplug are both asynchronous procedures. When the unplug operation happens, unplug request cb is called first. And when guest OS finished handling unplug, unplug cb will be called to do the real removal of device. This patch adds hotunplug cb to ich9, which mem

[Qemu-devel] [PULL 33/96] virtio: use standard virtio_ring.h

2015-02-18 Thread Michael S. Tsirkin
Switch to virtio_ring.h from standard headers. Signed-off-by: Michael S. Tsirkin --- include/hw/virtio/dataplane/vring.h | 2 +- include/hw/virtio/virtio_ring.h | 167 hw/net/vhost_net.c | 2 +- 3 files changed, 2 insertions(+), 169 d

[Qemu-devel] [PULL 45/96] scripts: add arch specific standard-headers

2015-02-18 Thread Michael S. Tsirkin
Copy arch specific virtio headers. ATM this applies to s390 only. Signed-off-by: Michael S. Tsirkin --- scripts/update-linux-headers.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/update-linux-headers.sh b/scripts/update-linux-headers.sh index 5ab3914..9680e27 100755 --- a/scri

[Qemu-devel] [PULL 51/96] acpi-build: skip hotplugged bridges

2015-02-18 Thread Michael S. Tsirkin
hotplugged bridges don't get bsel allocated so acpi hotplug doesn't work for them anyway. OTOH adding them in ACPI creates a host of problems, e.g. they can't be hot-unplugged themselves which is surprising to users. So let's just skip these. Signed-off-by: Michael S. Tsirkin --- hw/i386/acpi-

[Qemu-devel] [PULL 63/96] acpi: add aml_name() & aml_name_decl() term

2015-02-18 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/hw/acpi/aml-build.h | 4 hw/acpi/aml-build.c | 32 2 files changed, 36 insertions(+) diff --git a/include/hw/acpi/aml-

[Qemu-devel] [PULL 80/96] acpi: add aml_string() term

2015-02-18 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/hw/acpi/aml-build.h | 1 + hw/acpi/aml-build.c | 25 + 2 files changed, 26 insertions(+) diff --git a/include/hw/acpi/aml-build.h b/

[Qemu-devel] [PULL 60/96] acpi: add aml_device() term

2015-02-18 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/hw/acpi/aml-build.h | 1 + hw/acpi/aml-build.c | 11 +++ 2 files changed, 12 insertions(+) diff --git a/include/hw/acpi/aml-build.h b/include/hw/acp

[Qemu-devel] [PULL 03/96] acpi: move generic aml building helpers into dedictated file

2015-02-18 Thread Michael S. Tsirkin
From: Igor Mammedov the will be later used for composing AML primitives and all that could be reused later for ARM machines as well. Signed-off-by: Igor Mammedov Acked-by: Marcel Apfelbaum Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/hw/acpi/aml-build.h | 2

[Qemu-devel] [PULL 72/96] pc: acpi-build: generate _S[345] packages dynamically

2015-02-18 Thread Michael S. Tsirkin
From: Igor Mammedov Replaces template patching with packages composed using AML API. Note on behavior change: If S3 or S4 is disabled, respective packages won't be created and put into SSDT. Which saves us some space in SSDT and doesn't confuse guest OS with mangled package names as it was done

[Qemu-devel] [PULL 23/96] pc: memory: Validate alignment of maxram_size to page size

2015-02-18 Thread Michael S. Tsirkin
From: Peter Krempa If the maxram_size is not aligned and dimm devices were added on the command line qemu would terminate with a rather unhelpful message: ERROR:hw/mem/pc-dimm.c:150:pc_dimm_get_free_addr: assertion failed: (QEMU_ALIGN_UP(address_space_size, align) == address_space_size) In case

[Qemu-devel] [PULL 12/96] ide/ich: Convert to realize

2015-02-18 Thread Michael S. Tsirkin
From: Markus Armbruster Signed-off-by: Markus Armbruster Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin Reviewed-by: Gonglei --- hw/ide/ich.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/hw/ide/ich.c b/hw/ide/ich.c index fb1d095..b1d887

Re: [Qemu-devel] [PULL 00/96] pci, pc, virtio fixes and cleanups

2015-02-18 Thread Michael S. Tsirkin
On Wed, Feb 18, 2015 at 10:43:58PM +0100, Michael S. Tsirkin wrote: > A huge patchset, but the scariest part is Igor's patches, > and these have been used by multiple people by now. > virtio header change is a bit rushed, but getting them upstream > seems like the best way to give them the cross-pl

[Qemu-devel] [PULL 66/96] acpi: add aml_arg() term

2015-02-18 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/hw/acpi/aml-build.h | 1 + hw/acpi/aml-build.c | 11 +++ 2 files changed, 12 insertions(+) diff --git a/include/hw/acpi/aml-build.h b/include/hw/acp

[Qemu-devel] [PULL 77/96] acpi: add aml_operation_region() term

2015-02-18 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/hw/acpi/aml-build.h | 7 +++ hw/acpi/aml-build.c | 14 ++ 2 files changed, 21 insertions(+) diff --git a/include/hw/acpi/aml-build.h b/inclu

  1   2   3   4   >