[Qemu-devel] [PATCH v4 2/4] hw/intc: add sunxi interrupt controller device

2013-11-25 Thread liguang
Signed-off-by: liguang --- default-configs/arm-softmmu.mak |1 + hw/intc/Makefile.objs |1 + hw/intc/sunxi-pic.c | 238 +++ include/hw/intc/sunxi-pic.h | 20 4 files changed, 260 insertions(+), 0 deletions(-) create mo

[Qemu-devel] [PATCH v4 3/4] hw/arm: add sunxi machine type

2013-11-25 Thread liguang
Signed-off-by: liguang --- hw/arm/Makefile.objs |1 + hw/arm/sunxi-soc.c | 98 ++ 2 files changed, 99 insertions(+), 0 deletions(-) create mode 100644 hw/arm/sunxi-soc.c diff --git a/hw/arm/Makefile.objs b/hw/arm/Makefile.objs index 3671b4

[Qemu-devel] [PATCH v4 1/4] hw/timer: add sunxi timer device

2013-11-25 Thread liguang
Signed-off-by: liguang --- default-configs/arm-softmmu.mak |2 + hw/timer/Makefile.objs |1 + hw/timer/sunxi-pit.c| 295 +++ include/hw/timer/sunxi-pit.h| 37 + 4 files changed, 335 insertions(+), 0 deletions(-) create m

[Qemu-devel] [PATCH v4 4/4] MAINTAINERS: add myself to maintain sunxi machine

2013-11-25 Thread liguang
Signed-off-by: liguang --- MAINTAINERS |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 77edacf..232e1a1 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -284,6 +284,15 @@ M: Peter Maydell S: Maintained F: hw/*/stellaris* +Sunxi +M

[Qemu-devel] [PATCH v4 0/4] add sunxi machine type

2013-11-25 Thread liguang
this patch-set implemented a device-reduced machine type for Allwinner's sunxi series SoC, like sunxi-4i/5i/7i ... now, It can support sunxi-4i with a cortex-a8 processor. and will support more later, like sunxi-7i with cortex-a7, and will add more devices. v2: split timer and interrupt controll

Re: [Qemu-devel] [PATCH 1.8 2/6] qemu-img: fix usage instruction for qemu-img convert

2013-11-25 Thread Peter Lieven
On 25.11.2013 18:21, Eric Blake wrote: On 11/25/2013 06:57 AM, Peter Lieven wrote: Signed-off-by: Peter Lieven --- qemu-img.c |1 - 1 file changed, 1 deletion(-) diff --git a/qemu-img.c b/qemu-img.c index efb744c..e2d1a0a 100644 --- a/qemu-img.c +++ b/qemu-img.c @@ -105,7 +105,6 @@ stat

[Qemu-devel] [PATCH 3/3] qemu-iotests: Clean up all extents for vmdk

2013-11-25 Thread Fam Zheng
This modifies _cleanup_test_img to remove all the extent files listed by "qemu-img info"'s format specific information. Signed-off-by: Fam Zheng --- tests/qemu-iotests/common.rc | 17 ++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/tests/qemu-iotests/common.rc b/

[Qemu-devel] [PATCH 0/3] qemu-iotests: Improvements for vmdk

2013-11-25 Thread Fam Zheng
Patch 1 and 2 add _unsupported_imgopts declaration for vmdk subformats, so the cases can be skipped if the subformat is not supported. Patch 3 adds clean up for vmdk extents. Fam Zheng (3): qemu-iotests: Introduce _unsupported_imgopts qemu-iotests: Add _unsupported_imgopts for vmdk subformats

[Qemu-devel] [PATCH V9 4/4] blockdev: Add infinite loop check in drive_init()

2013-11-25 Thread Xu Wang
Check the backing file for a loop during image boot, to avoid a lack or response or segfault. Signed-off-by: Xu Wang --- blockdev.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/blockdev.c b/blockdev.c index 330aa4a..e39fc27 100644 --- a/blockdev.c +++ b/blockdev.c @@ -511,6 +511,13

[Qemu-devel] [PATCH V9 3/4] block: Add backing file loop check in change_backing_file()

2013-11-25 Thread Xu Wang
Backing file loop should be checked before calling change_backing_ file(). If loop appeared, this calling should be stopped and an error printed. Signed-off-by: Xu Wang --- block.c | 9 + 1 file changed, 9 insertions(+) diff --git a/block.c b/block.c index b8cea1c..87f7018 100644 --- a/

[Qemu-devel] [PATCH 1/3] qemu-iotests: Introduce _unsupported_imgopts

2013-11-25 Thread Fam Zheng
Introduce _unsupported_imgopts that causes _notrun for specific image options. Signed-off-by: Fam Zheng --- tests/qemu-iotests/common.rc | 11 +++ 1 file changed, 11 insertions(+) diff --git a/tests/qemu-iotests/common.rc b/tests/qemu-iotests/common.rc index 7f62457..d465c48 100644 ---

[Qemu-devel] [PATCH 2/3] qemu-iotests: Add _unsupported_imgopts for vmdk subformats

2013-11-25 Thread Fam Zheng
Some cases are not applicable for vmdk subformats those don't support certain features, e.g. backing file, and some others can't run on mult-file image, e.g. monolithicFlat. This adds declaration in test cases to skip them automatically, so that iotests on vmdk can go more smoothly (without manuall

[Qemu-devel] [PATCH V9 2/4] block: Add check infinite loop in bdrv_img_create()

2013-11-25 Thread Xu Wang
Backing file loop should be checked before qemu-img create command execution. If loop is found, qemu-img create should be stopped and an error printed. Signed-off-by: Xu Wang --- block.c | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/block.c b/block.c ind

[Qemu-devel] [PATCH V9 1/4] block/qemu-img: Refine and export infinite loop checking in collect_image_info_list()

2013-11-25 Thread Xu Wang
If there is a loop in the backing file chain, it could cause problems such as no response or a segfault during system boot. Hence detecting a backing file loop is necessary. This patch extracts the loop check from collect_image_info_list() in block.c into independent functions bdrv_backing_chain_ok

[Qemu-devel] [PATCH V9 0/4] Refine and export backing file loop check

2013-11-25 Thread Xu Wang
If there is loop exists in the backing file chain, many problems could be caused by it, such as no response and segment fault during system boot. Hence stopping backing file loop appear is very necessary. These patches refine and export loop checking function from collect_image_ info_list() to bloc

Re: [Qemu-devel] [PATCH 1.7 v2 2/2] PPC: BookE: Make FIT/WDT timers at best millisecond grained

2013-11-25 Thread Stefan Weil
Am 25.11.2013 22:46, schrieb Alexander Graf: > The default granularity for the FIT timer on 440 is on every 0x1000th > transition of TB from 0 to 1. Translated that means 48828 times a second. > > Since interrupts are quite expensive for 440 and we don't really care > about the accuracy of the FIT

[Qemu-devel] [PATCH v6 6/6] commit: remove unused check

2013-11-25 Thread Fam Zheng
We support top == active for commit now, remove the check and add an assertion here. Signed-off-by: Fam Zheng --- block/commit.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/block/commit.c b/block/commit.c index d4090cb..acec4ac 100644 --- a/block/commit.c +++ b/blo

[Qemu-devel] [PATCH v6 4/6] commit: support commit active layer

2013-11-25 Thread Fam Zheng
If active is top, it will be mirrored to base, (with block/mirror.c code), then the image is switched when user completes the block job. QMP documentation is updated. Signed-off-by: Fam Zheng --- block/mirror.c | 11 +++ blockdev.c | 9 +++-- qapi-schema.json | 5 +++-- 3

[Qemu-devel] [PATCH v6 3/6] block: add commit_active_start()

2013-11-25 Thread Fam Zheng
commit_active_start is implemented in block/mirror.c, It will create a job with "commit" type and designated base in block-commit command. This will be used for committing active layer of device. Sync mode is removed from MirrorBlockJob because there's no proper type for commit. The used informati

[Qemu-devel] [PATCH v6 2/6] mirror: move base to MirrorBlockJob

2013-11-25 Thread Fam Zheng
This allows setting the base before entering mirror_run, commit will make use of it. Signed-off-by: Fam Zheng --- block/mirror.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/block/mirror.c b/block/mirror.c index 01a795a..cbdcc21 100644 --- a/block/mirror.c ++

[Qemu-devel] [PATCH v6 5/6] qemu-iotests: update test cases for commit active

2013-11-25 Thread Fam Zheng
Factor out commit test common logic into super class, and update test of committing the active image. Signed-off-by: Fam Zheng --- tests/qemu-iotests/040 | 74 ++ 1 file changed, 32 insertions(+), 42 deletions(-) diff --git a/tests/qemu-iotests/04

[Qemu-devel] [PATCH v6 1/6] mirror: don't close target

2013-11-25 Thread Fam Zheng
Let reference count manage target and don't call bdrv_close here. Signed-off-by: Fam Zheng --- block/mirror.c | 1 - 1 file changed, 1 deletion(-) diff --git a/block/mirror.c b/block/mirror.c index 7b95acf..01a795a 100644 --- a/block/mirror.c +++ b/block/mirror.c @@ -479,7 +479,6 @@ immediate_e

[Qemu-devel] [PATCH v6 0/6] block: allow commit active as top

2013-11-25 Thread Fam Zheng
Previously live commit of active block device is not supported, this series implements it and updates corresponding qemu-iotests cases. This series is based on BlockJobType enum QAPI series. v6: Address comments from Stefan: [04/06] commit: support commit active layer Fix wording

Re: [Qemu-devel] [PATCH 1.7] configure: re-add current options in config-host.mak

2013-11-25 Thread Fam Zheng
On 2013年11月25日 20:04, Markus Armbruster wrote: Peter Maydell writes: On 25 November 2013 09:53, Paolo Bonzini wrote: I think anything that makes it easier for users to do bisections instead of us, and anything that makes it easier to script bisections ("git bisect run"), is valuable. Perso

Re: [Qemu-devel] [PATCH 2/5] machine: introduce get_fw_dev_path() callback

2013-11-25 Thread Alexey Kardashevskiy
Hi! btw there is a problem with this patch - it does not compile for "linux-user" as there is no current-machine global variable defined in vl.c which is not compiled for linux-user. How to solve this problem correctly? On 11/25/2013 06:27 PM, Alexey Kardashevskiy wrote: > QEMU supports firmwar

[Qemu-devel] [PATCH v2] spapr: define get_fw_dev_path() callback

2013-11-25 Thread Alexey Kardashevskiy
This introduces a get_fw_dev_path() callback. This fixes SCSI disks device node names (which are wildcard nodes in the device-tree). This fixes PHB name from "pci" to "pci@" where is a BUID as there is no bus on top of sPAPRPHBState where PHB firmware name could be fixed using the BusCla

[Qemu-devel] [Bug 1254940] [NEW] qemu-KVM guest OS occurs many ext3-fs errors after multiple forced shutdown

2013-11-25 Thread benjamin_zb
Public bug reported: Hi: I met some filesysterm errors in a sles guest on KVM. My system environment is: HOST:    suse 10, the kernel version is 2.6.32.43    Qemu-KVM 1.2    Libvirt 1.0 guest OS:    suse 10, the kernel version is 2.6.32.43 VMs use a qcow2 disk. Description of problem: I have 20+

[Qemu-devel] [PATCH v5 7/7] block: Allow backup on referenced named BlockDriverState

2013-11-25 Thread Fam Zheng
Drive backup is a read only operation on source bs. We want to allow this specific case to enable image-fleecing. Note that when image-fleecing job starts, the job still add its blocker to source bs, and any other operation on it will be blocked by that. Signed-off-by: Fam Zheng --- block.c | 2

[Qemu-devel] [PATCH v5 6/7] qmp: add command 'blockdev-backup'

2013-11-25 Thread Fam Zheng
Similar to drive-backup, but this command uses a device id as target instead of creating/opening an image file. Also add blocker on target bs, since the target is also a named device now. Signed-off-by: Fam Zheng --- block/backup.c | 21 + blockdev.c | 47 +++

[Qemu-devel] [PATCH v5 4/7] block: Add checks of blocker in block operations

2013-11-25 Thread Fam Zheng
Before operate on a BlockDriverState, respective types are checked against bs->op_blockers and it will error out if there's a blocker. Signed-off-by: Fam Zheng --- blockdev.c | 17 + 1 file changed, 17 insertions(+) diff --git a/blockdev.c b/blockdev.c index 1efa806..cfb815f 100

[Qemu-devel] [PATCH v5 1/7] qapi: Add BlockOperationType enum

2013-11-25 Thread Fam Zheng
This adds the enum of all the operations that can be taken on a block device. Signed-off-by: Fam Zheng --- qapi-schema.json | 49 + 1 file changed, 49 insertions(+) diff --git a/qapi-schema.json b/qapi-schema.json index 83fa485..c9e513c 100644 ---

[Qemu-devel] [PATCH v5 5/7] block: Parse "backing" option to reference existing BDS

2013-11-25 Thread Fam Zheng
Signed-off-by: Fam Zheng --- block.c | 31 --- block/mirror.c| 2 +- include/block/block.h | 3 ++- include/block/block_int.h | 3 +++ 4 files changed, 34 insertions(+), 5 deletions(-) diff --git a/block.c b/block.c index c2ab6d8..

[Qemu-devel] [PATCH v5 2/7] block: Introduce op_blockers to BlockDriverState

2013-11-25 Thread Fam Zheng
BlockDriverState.op_blockers is an array of lists with BLOCK_OP_TYPE_MAX elements. Each list is a list of blockers of an operation type (BlockOpType), that marks this BDS as currently blocked for a certain type of operation with reason errors stored in the list. The rule of usage is: * BDS user w

[Qemu-devel] [PATCH v5 3/7] block: Replace in_use with operation blocker

2013-11-25 Thread Fam Zheng
This drops BlockDriverState.in_use with op_blockers: - Call bdrv_op_block_all in place of bdrv_set_in_use(bs, 1). - Call bdrv_op_unblock_all in place of bdrv_set_in_use(bs, 0). - Check bdrv_op_is_blocked() in place of bdrv_in_use(bs). The specific types are used, e.g. in place of startin

[Qemu-devel] [PATCH v5 0/7] Drop in_use from BlockDriverState and enable point-in-time snapshot exporting over NBD

2013-11-25 Thread Fam Zheng
This series adds for point-in-time snapshot NBD exporting based on blockdev-backup (variant of drive-backup with existing device as target). We get a thin point-in-time snapshot by COW mechanism of drive-backup, and export it through built in NBD server. The steps are as below: 1. (SHELL) qemu-i

[Qemu-devel] [Bug 1187121] Re: segfault with -vga vmware and -display gtk

2013-11-25 Thread Bug Watch Updater
** Changed in: qemu (Debian) Status: Confirmed => Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1187121 Title: segfault with -vga vmware and -display gtk Status in QEMU: Fix

Re: [Qemu-devel] [PATCH v4 7/7] block: Allow backup on referenced named BlockDriverState

2013-11-25 Thread Fam Zheng
On 2013年11月25日 19:23, Kevin Wolf wrote: Am 22.11.2013 um 06:24 hat Fam Zheng geschrieben: Drive backup is a read only operation on source bs. We want to allow this specific case to enable image-fleecing. Note that when image-fleecing job starts, the job still add its blocker to source bs, and an

Re: [Qemu-devel] [PATCH 4/4] tpm: Provide libtpms software TPM backend

2013-11-25 Thread Xu, Quan
Thanks Bryant, this problem has been solved by following "http://www.mail-archive.com/qemu-devel@nongnu.org/msg200808.html";. But there is another problem when run configure with "./configure --target-list=x86_64-softmmu --enable-tpm". The value of "libtpms" is still "no". when I modif

Re: [Qemu-devel] [PATCH v4 3/7] block: Replace in_use with operation blocker

2013-11-25 Thread Fam Zheng
On 2013年11月26日 01:11, Paolo Bonzini wrote: Il 22/11/2013 06:24, Fam Zheng ha scritto: @@ -41,13 +41,11 @@ void *block_job_create(const BlockJobDriver *driver, BlockDriverState *bs, { BlockJob *job; -if (bs->job || bdrv_in_use(bs)) { +if (bs->job) { error_set(errp, QER

Re: [Qemu-devel] [PATCH v4 4/7] block: Add checks of blocker in block operations

2013-11-25 Thread Fam Zheng
On 2013年11月26日 01:15, Paolo Bonzini wrote: Il 22/11/2013 06:24, Fam Zheng ha scritto: Before operate on a BlockDriverState, respective types are checked against bs->op_blockers and it will error out if there's a blocker. How did you choose them? I understand blocking change (and eject?), but

Re: [Qemu-devel] [PATCH v4 2/7] block: Introduce op_blockers to BlockDriverState

2013-11-25 Thread Fam Zheng
On 2013年11月26日 01:13, Paolo Bonzini wrote: Il 22/11/2013 06:24, Fam Zheng ha scritto: +void bdrv_op_block(BlockDriverState *bs, BlockOpType op, Error *reason) +{ +BdrvOpBlocker *blocker; +assert(op >=0 && op < BLOCK_OP_TYPE_MAX); + +blocker = g_malloc0(sizeof(BdrvOpBlocker)); +bl

Re: [Qemu-devel] [PATCH v4 1/7] qapi: Add BlockOperationType enum

2013-11-25 Thread Fam Zheng
On 2013年11月25日 19:26, Kevin Wolf wrote: Am 22.11.2013 um 06:24 hat Fam Zheng geschrieben: This adds the enum of all the operations that can be taken on a block device. Signed-off-by: Fam Zheng Okay, so now I've read the whole series and I still couldn't solve this mystery: Why is this a QAPI

[Qemu-devel] [PATCH v4 6/6] qemu-iotests: Split qcow2 only cases in 048

2013-11-25 Thread Fam Zheng
Format "raw" doesn't always work on certain file systems (e.g. tmpfs). Use qcow2 to make the allocation status explicit and split into a new case. Signed-off-by: Fam Zheng --- tests/qemu-iotests/048 | 27 --- tests/qemu-iotests/048.out | 16 - tests/qemu-iotests/074 |

[Qemu-devel] [PATCH v4 4/6] qemu-iotests: Change default cache mode to "writeback"

2013-11-25 Thread Fam Zheng
So that the tests can run faster. Signed-off-by: Fam Zheng --- tests/qemu-iotests/common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/qemu-iotests/common b/tests/qemu-iotests/common index 26390a6..804ac92 100644 --- a/tests/qemu-iotests/common +++ b/tests/qemu-iotest

[Qemu-devel] [PATCH v4 3/6] qemu-iotests: Add _default_cache_mode and _supported_cache_modes

2013-11-25 Thread Fam Zheng
This replaces _unsupported_qemu_io_options and check for support of current cache mode, and allow to provide a default if user didn't specify. Signed-off-by: Fam Zheng --- tests/qemu-iotests/026 | 3 ++- tests/qemu-iotests/039 | 3 ++- tests/qemu-iotests/052 | 4 ++-- tests/

[Qemu-devel] [PATCH v4 1/6] qemu-iotests: Add "-c " option

2013-11-25 Thread Fam Zheng
The option sets cache mode used in the tests. "-nocache" is changed to an alias to "-c none", and internally passes "-t none" to qemu-io. Python scripts will make use of option this in the next commit. Signed-off-by: Fam Zheng --- tests/qemu-iotests/check | 2 +- tests/qemu-iotests/common | 2

[Qemu-devel] [PATCH v4 0/6] Add cache mode option to qemu-iotests, and change default mode to "writeback"

2013-11-25 Thread Fam Zheng
This series adds cache mode option in the iotests framework. Test cases are updated to make use of cache mode and mask supported modes. v4: Address Stefan's comments: Add _default_cache_mode. Split last two cases in 048 to 074. Use long option "--cache" instead of "-t" for qemu-io. v3

[Qemu-devel] [PATCH v4 5/6] qemu-iotests: Clean up spaces in usage output

2013-11-25 Thread Fam Zheng
Whitespace changes to align columns. Signed-off-by: Fam Zheng --- tests/qemu-iotests/common | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/qemu-iotests/common b/tests/qemu-iotests/common index 804ac92..55a6f72 100644 --- a/tests/qemu-iotests/common +++

[Qemu-devel] [PATCH v4 2/6] qemu-iotests: Honour cache mode in iotests.py

2013-11-25 Thread Fam Zheng
This will allow overriding cache mode from the "-c mode" option. Signed-off-by: Fam Zheng --- tests/qemu-iotests/iotests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/qemu-iotests/iotests.py b/tests/qemu-iotests/iotests.py index fb10ff4..c84a1a5 100644 --- a/test

Re: [Qemu-devel] [PATCH v3 1/4] hw/timer: add sunxi timer device

2013-11-25 Thread Li Guang
Peter Crosthwaite wrote: Hi, On Mon, Nov 25, 2013 at 5:41 PM, liguang wrote: Signed-off-by: liguang --- default-configs/arm-softmmu.mak |2 + hw/timer/Makefile.objs |1 + hw/timer/sunxi-pit.c| 260 +++ include/hw/timer/

Re: [Qemu-devel] [PATCH v3 2/4] hw/intc: add sunxi interrupt controller device

2013-11-25 Thread Li Guang
Peter Crosthwaite wrote: On Mon, Nov 25, 2013 at 5:41 PM, liguang wrote: Signed-off-by: liguang --- default-configs/arm-softmmu.mak |1 + hw/intc/Makefile.objs |1 + hw/intc/sunxi-pic.c | 301 +++ include/hw/intc/sunxi-

Re: [Qemu-devel] [PATCH 16/27] acpi: ich9: allow guest to clear SCI rised by GPE

2013-11-25 Thread Li Guang
Igor Mammedov wrote: On Fri, 22 Nov 2013 08:57:40 +0800 Li Guang wrote: Michael S. Tsirkin wrote: On Thu, Nov 21, 2013 at 04:32:27PM +0800, Li Guang wrote: Michael S. Tsirkin wrote: On Thu, Nov 21, 2013 at 04:18:45PM +0800, Li Guang wrote: Hu Tao

Re: [Qemu-devel] [PATCH v3 07/11] AARCH64: Add boot support for aarch64 processor

2013-11-25 Thread Peter Maydell
On 27 September 2013 11:10, Mian M. Hamayun wrote: > From: "Mian M. Hamayun" > > This commit adds support for booting a single AArch64 CPU by setting > appropriate registers. The bootloader includes placehoders for Board-ID > that are used to implement uniform indexing across different bootloader

[Qemu-devel] [RFC PATCH 3/3] pci: move vmstate_pcibus registration/unregistration to realize and unrealize interfaces

2013-11-25 Thread Bandan Das
Relocate some stuff to avoid forward declarations and use the realize and unrealize hooks to call into register and unregister vmstate_pcibus respectively Signed-off-by: Bandan Das --- hw/pci/pci.c | 49 - 1 file changed, 28 insertions(+), 21 dele

[Qemu-devel] [RFC PATCH 2/3] qdev: Integrate the bus realized property to get

2013-11-25 Thread Bandan Das
This introduces three changes - first, it sets the realized property for BusState in the setter functions for DeviceState so that a call to the (device) setter will also set the value for any children buses appropriately. Second, it introduces a bool called realized_cache that tracks the most re

[Qemu-devel] [RFC PATCH 1/3] qdev: add realize/unrealize interfaces for BusState

2013-11-25 Thread Bandan Das
Add simple set/get functions for bus. The setter also checks if it has children devices and sets "realize" accordingly. Signed-off-by: Bandan Das --- hw/core/qdev.c | 67 ++ include/hw/qdev-core.h | 7 ++ 2 files changed, 74 insertion

[Qemu-devel] [RFC PATCH 0/3] Add realize unrealize interfaces for BusState

2013-11-25 Thread Bandan Das
These patches add realize and unrealize interfaces to BusState just like we have for DeviceState. 1/3 and 2/3 implement the interface and attempt to integrate it to the existing DeviceState call path. 3/3 is an example user of the interface, pci in this case. Please see individual patches for mor

Re: [Qemu-devel] [PULL for-1.7 v2 4/6] acpi-build: fix build on glib < 2.14

2013-11-25 Thread Erik Rull
Richard Henderson wrote: On 11/26/2013 07:01 AM, Michael S. Tsirkin wrote: Can you confirm this works? I can confirm that with this follow-on I can once again build on RHEL 5.3. r~ Sorry, a bit late, but yes, it compiles on my Debian 4.0. My test target is down at the moment, I try to ge

[Qemu-devel] [Bug 1254672] Re: ps segfaults with qemu-arm-static

2013-11-25 Thread Peter Maydell
I suspect this is a NULL pointer access that happens in procps where it isn't handling an error path that it's not expecting somehow (either a syscall we're not implementing, or perhaps something like /proc not being mounted in your chroot environment, or something about qemu's emulation of some fi

[Qemu-devel] [Bug 1254672] Re: ps segfaults with qemu-arm-static

2013-11-25 Thread Ken Sharp
qemu-powerpc-static on i386: # ps Invalid data memory access: 0x NIP 0feb05e4 LR 0feb1440 CTR 0feb13f0 XER MSR 6040 HID0 HF 6000 idx 0 TB GPR00 0ffc178c 407fffa0 4083f720 0001 GPR04 29292929

Re: [Qemu-devel] [PULL for-1.7 v2 3/6] acpi-build: fix build on glib < 2.22

2013-11-25 Thread Laszlo Ersek
On 11/25/13 22:33, Michael S. Tsirkin wrote: > I queued other things on top and it's 11:30pm here. > Guys, go discuss the color of some other bikeshed. (Just to be clear, I deliberately didn't address how the code in question *should* be formulated. I'll leave that to you all to figure out. I onl

[Qemu-devel] [PATCH for-1.7] acpi-build: fix support for glib < 2.22

2013-11-25 Thread Michael S. Tsirkin
glib < 2.22 does not have g_array_get_element_size, limit it's use (to check all elements are 1 byte in size) to newer glib. This fixes build on RHEL 5.3. Reported-by: Richard Henderson Reported-by: Erik Rull Tested-by: Richard Henderson Signed-off-by: Michael S. Tsirkin --- hw/i386/acpi-bui

Re: [Qemu-devel] QEMU dies on any attempt to load a Linux kernel module when using a 9P rootfs

2013-11-25 Thread Richard Yao
I figured out the problem. There is zerocopy IO is being done via DMA to a buffer allocated with valloc(). Right now, I am running a hack-fix locally so I can get some other stuff done first. I will propose a proper fix to the list in a few days. On 11/25/2013 10:49 AM, Richard Yao wrote: > I boot

[Qemu-devel] [PATCH 1.7 v2 0/2] PPC: Fix BookE timer performance regression

2013-11-25 Thread Alexander Graf
Thanks to the new timer infrastructure we are now able to trigger timer events and ridiculous granularities in sub-microsecond orders. However, the BookE targets were quite unhappy about that change, showing up to x10 slowdown on a simple Linux guest bootup test. This patch set makes the constant

Re: [Qemu-devel] [PULL for-1.7 v2 4/6] acpi-build: fix build on glib < 2.14

2013-11-25 Thread Richard Henderson
On 11/26/2013 07:01 AM, Michael S. Tsirkin wrote: > Can you confirm this works? I can confirm that with this follow-on I can once again build on RHEL 5.3. r~

[Qemu-devel] [PATCH 1.7 v2 1/2] PPC: Make BookE FIT/WDT timers more lazy

2013-11-25 Thread Alexander Graf
Today we fire FIT and WDT timer events every time the respective bit position in TB flips from 0 -> 1. However, there is no need to do this if the end result would be that we're changing a TSR bit that is set to 1 to 1 again. No guest visible change would have occured. So whenever we see that the

[Qemu-devel] [PATCH 1.7 v2 2/2] PPC: BookE: Make FIT/WDT timers at best millisecond grained

2013-11-25 Thread Alexander Graf
The default granularity for the FIT timer on 440 is on every 0x1000th transition of TB from 0 to 1. Translated that means 48828 times a second. Since interrupts are quite expensive for 440 and we don't really care about the accuracy of the FIT to that significance, let's force FIT and WDT to at be

Re: [Qemu-devel] [PULL for-1.7 v2 3/6] acpi-build: fix build on glib < 2.22

2013-11-25 Thread Michael S. Tsirkin
On Tue, Nov 26, 2013 at 07:21:52AM +1000, Richard Henderson wrote: > On 11/26/2013 07:02 AM, Michael S. Tsirkin wrote: > > In any case it's too late to play with cosmetic changes for 1.7. > > We can revisit for 1.8. > > I beg your pardon? I didn't realize your patch had already been applied. Whe

[Qemu-devel] [Bug 1254672] Re: ps segfaults with qemu-arm-static

2013-11-25 Thread Ken Sharp
Same thing with qemu-mips-static too by the looks of things. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1254672 Title: ps segfaults with qemu-arm-static Status in QEMU: New Status in Linaro Q

Re: [Qemu-devel] [PULL for-1.7 v2 3/6] acpi-build: fix build on glib < 2.22

2013-11-25 Thread Michael S. Tsirkin
On Tue, Nov 26, 2013 at 07:18:04AM +1000, Richard Henderson wrote: > On 11/26/2013 06:54 AM, Michael S. Tsirkin wrote: > > +char s[] = ""; > > char s[5]; > > >> > >> Then do something like > >> > >> char s[sizeof("")]; > >> > >> so that the actual initialization doe

Re: [Qemu-devel] [PULL for-1.7 v2 3/6] acpi-build: fix build on glib < 2.22

2013-11-25 Thread Eric Blake
On 11/25/2013 02:15 PM, Laszlo Ersek wrote: >> +char s[] = ""; > > char s[5]; > > Initializing it is a waste of time. And storage - the string literal occupies space in the binary image. >>> Then do something like >>> >>> char s[sizeof("")]; Not to mention we a

Re: [Qemu-devel] [PULL for-1.7 v2 3/6] acpi-build: fix build on glib < 2.22

2013-11-25 Thread Richard Henderson
On 11/26/2013 07:02 AM, Michael S. Tsirkin wrote: > In any case it's too late to play with cosmetic changes for 1.7. > We can revisit for 1.8. I beg your pardon? I didn't realize your patch had already been applied. And since it has mistakes that require respin anyway, why can't we change this t

Re: [Qemu-devel] [PULL for-1.7 v2 3/6] acpi-build: fix build on glib < 2.22

2013-11-25 Thread Richard Henderson
On 11/26/2013 06:54 AM, Michael S. Tsirkin wrote: > +char s[] = ""; char s[5]; >> >> Then do something like >> >> char s[sizeof("")]; >> >> so that the actual initialization doesn't happen. > Why? As an optimization? How about failing to pessimize? With your initi

Re: [Qemu-devel] [PATCH v3 06/11] target-arm: Parameterize the bootloader selection and setup mechanism

2013-11-25 Thread Peter Maydell
On 27 September 2013 11:10, Mian M. Hamayun wrote: > From: "Mian M. Hamayun" > > This commit replaces the constant indices used in bootloaders, such as for > specifying the Board ID and kernel arguments with variable parameters. > This change is used as mechanism to minimize code changes for diff

Re: [Qemu-devel] [PULL for-1.7 v2 3/6] acpi-build: fix build on glib < 2.22

2013-11-25 Thread Laszlo Ersek
On 11/25/13 21:54, Michael S. Tsirkin wrote: > On Tue, Nov 26, 2013 at 06:37:43AM +1000, Richard Henderson wrote: >> On 11/26/2013 06:31 AM, Michael S. Tsirkin wrote: >>> On Tue, Nov 26, 2013 at 06:24:53AM +1000, Richard Henderson wrote: On 11/25/2013 09:48 PM, Michael S. Tsirkin wrote: >

Re: [Qemu-devel] [PATCH rebased for-1.8] i386: pc: align gpa<->hpa on 1GB boundary (v6)

2013-11-25 Thread Michael S. Tsirkin
On Mon, Nov 25, 2013 at 06:43:13PM +0100, Paolo Bonzini wrote: > v2: condition enablement of new mapping to new machine types (Paolo) > v3: fix changelog > v4: rebase > v5: ensure alignment of piecetwo on 2MB GPA (Igor) > do not register zero-sized piece-one(Igor) > v6: fix memory leak

Re: [Qemu-devel] [PULL for-1.7 v2 3/6] acpi-build: fix build on glib < 2.22

2013-11-25 Thread Michael S. Tsirkin
On Tue, Nov 26, 2013 at 06:37:43AM +1000, Richard Henderson wrote: > On 11/26/2013 06:31 AM, Michael S. Tsirkin wrote: > > On Tue, Nov 26, 2013 at 06:24:53AM +1000, Richard Henderson wrote: > >> On 11/25/2013 09:48 PM, Michael S. Tsirkin wrote: > >>> g_string_vprintf was only introduced in 2.24 so

Re: [Qemu-devel] [PULL for-1.7 v2 4/6] acpi-build: fix build on glib < 2.14

2013-11-25 Thread Michael S. Tsirkin
On Mon, Nov 25, 2013 at 09:14:19PM +0100, Erik Rull wrote: > Michael S. Tsirkin wrote: > >g_array_get_element_size was only added in glib 2.14, > >there's no way to find element size in with an older glib. > > > >Fortunately we only use a single table (linker) where element size > 1. > >Switch elem

Re: [Qemu-devel] [PATCH rebased for-1.8] i386: pc: align gpa<->hpa on 1GB boundary (v6)

2013-11-25 Thread Laszlo Ersek
On 11/25/13 18:43, Paolo Bonzini wrote: > v2: condition enablement of new mapping to new machine types (Paolo) > v3: fix changelog > v4: rebase > v5: ensure alignment of piecetwo on 2MB GPA (Igor) > do not register zero-sized piece-one(Igor) > v6: fix memory leak (Ig

Re: [Qemu-devel] [PULL for-1.7 v2 4/6] acpi-build: fix build on glib < 2.14

2013-11-25 Thread Michael S. Tsirkin
On Mon, Nov 25, 2013 at 09:14:19PM +0100, Erik Rull wrote: > Michael S. Tsirkin wrote: > >g_array_get_element_size was only added in glib 2.14, > >there's no way to find element size in with an older glib. > > > >Fortunately we only use a single table (linker) where element size > 1. > >Switch elem

Re: [Qemu-devel] [PULL for-1.7 v2 3/6] acpi-build: fix build on glib < 2.22

2013-11-25 Thread Michael S. Tsirkin
On Tue, Nov 26, 2013 at 06:37:43AM +1000, Richard Henderson wrote: > On 11/26/2013 06:31 AM, Michael S. Tsirkin wrote: > > On Tue, Nov 26, 2013 at 06:24:53AM +1000, Richard Henderson wrote: > >> On 11/25/2013 09:48 PM, Michael S. Tsirkin wrote: > >>> g_string_vprintf was only introduced in 2.24 so

Re: [Qemu-devel] [PULL for-1.7 v2 3/6] acpi-build: fix build on glib < 2.22

2013-11-25 Thread Richard Henderson
On 11/26/2013 06:31 AM, Michael S. Tsirkin wrote: > On Tue, Nov 26, 2013 at 06:24:53AM +1000, Richard Henderson wrote: >> On 11/25/2013 09:48 PM, Michael S. Tsirkin wrote: >>> g_string_vprintf was only introduced in 2.24 so switch to vsnprintf >>> instead. A bit uglier but name size is fixed at 4

Re: [Qemu-devel] GIT master fails compilation for ACPI

2013-11-25 Thread Michael S. Tsirkin
On Mon, Nov 25, 2013 at 09:08:20PM +0100, Erik Rull wrote: > Michael S. Tsirkin wrote: > >On Fri, Nov 22, 2013 at 09:19:49PM +0100, Erik Rull wrote: > >>Paolo Bonzini wrote: > >>>Il 22/11/2013 12:16, Erik Rull ha scritto: > It's getting more and more complex to build qemu, is there a reason why

Re: [Qemu-devel] [PULL for-1.7 v2 3/6] acpi-build: fix build on glib < 2.22

2013-11-25 Thread Michael S. Tsirkin
On Tue, Nov 26, 2013 at 06:24:53AM +1000, Richard Henderson wrote: > On 11/25/2013 09:48 PM, Michael S. Tsirkin wrote: > > g_string_vprintf was only introduced in 2.24 so switch to vsnprintf > > instead. A bit uglier but name size is fixed at 4 bytes here so it's > > easy. > > You list 2.24 here,

Re: [Qemu-devel] [PULL for-1.7 v2 4/6] acpi-build: fix build on glib < 2.14

2013-11-25 Thread Richard Henderson
On 11/25/2013 09:48 PM, Michael S. Tsirkin wrote: > +#if GLIB_CHECK_VERSION(2, 14, 0) > +assert(g_array_get_element_size(table) == 1); > +#endif https://developer.gnome.org/glib/2.28/glib-Arrays.html#g-array-get-element-size says "Since 2.22", not 2.14. r~

Re: [Qemu-devel] [PULL for-1.7 v2 3/6] acpi-build: fix build on glib < 2.22

2013-11-25 Thread Richard Henderson
On 11/25/2013 09:48 PM, Michael S. Tsirkin wrote: > g_string_vprintf was only introduced in 2.24 so switch to vsnprintf > instead. A bit uglier but name size is fixed at 4 bytes here so it's > easy. You list 2.24 here, > -GString *s = g_string_new(""); > +/* It would be nicer to use g_st

Re: [Qemu-devel] [qemu PATCH] hw/i386/pc_sysfw: support more than one flash drive

2013-11-25 Thread Laszlo Ersek
On 11/25/13 16:32, Markus Armbruster wrote: > Laszlo Ersek writes: > >> This patch allows the user to usefully specify >> >> -drive file=img_1,if=pflash,format=raw,readonly \ >> -drive file=img_2,if=pflash,format=raw >> >> on the command line. The flash images will be mapped under 4G in their

Re: [Qemu-devel] [PULL for-1.7 v2 4/6] acpi-build: fix build on glib < 2.14

2013-11-25 Thread Erik Rull
Michael S. Tsirkin wrote: g_array_get_element_size was only added in glib 2.14, there's no way to find element size in with an older glib. Fortunately we only use a single table (linker) where element size > 1. Switch element size to 1 everywhere, then we can just look at len field to get table

Re: [Qemu-devel] [PATCH v2 7/7] blkverify: Don't require protocol filename

2013-11-25 Thread Max Reitz
On 25.11.2013 15:40, Kevin Wolf wrote: Am 22.11.2013 um 17:10 hat Max Reitz geschrieben: If the filename is not prefixed by "blkverify:" in blkverify_parse_filename(), the blkverify driver was not selected through that protocol prefix, but by an explicit command line option (like file.driver=blk

Re: [Qemu-devel] GIT master fails compilation for ACPI

2013-11-25 Thread Erik Rull
Michael S. Tsirkin wrote: On Fri, Nov 22, 2013 at 09:19:49PM +0100, Erik Rull wrote: Paolo Bonzini wrote: Il 22/11/2013 12:16, Erik Rull ha scritto: It's getting more and more complex to build qemu, is there a reason why everyone needs to build the acpi stuff by himself? It is only attempted

[Qemu-devel] [PATCH for-1.7 2/2] qemu-iotests: Fix test 041

2013-11-25 Thread Max Reitz
Performing multiple drive-mirror blockjobs on the same qemu instance results in the image file used for the block device being replaced by the newly mirrored file, which is not what we want. Fix this by performing one dedicated test per sync mode. Signed-off-by: Max Reitz --- tests/qemu-iotests

[Qemu-devel] [PATCH for 1.7] qga: Fix two format strings for MinGW

2013-11-25 Thread Stefan Weil
Both code locations cause a compiler warning. Using "%s" instead of "%lu" would result in a program crash if the wrong code were executed. Signed-off-by: Stefan Weil --- qga/commands-win32.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qga/commands-win32.c b/qga/com

[Qemu-devel] [PULL 2/3] acpi-build: Fix compiler warning (missing gnu_printf format attribute)

2013-11-25 Thread Michael Tokarev
From: Stefan Weil gcc 4.8.2 reports this warning when extra warnings are enabled (-Wextra): CCm68k-softmmu/hw/m68k/mcf5206.o hw/i386/acpi-build.c: In function ‘build_append_nameseg’: hw/i386/acpi-build.c:294:5: error: function might be possible candidate for ‘gnu_printf’ format attribute

[Qemu-devel] [PULL 3/3] .gitignore: Ignore config.status

2013-11-25 Thread Michael Tokarev
From: Fam Zheng Signed-off-by: Fam Zheng Reviewed-by: Stefan Weil Signed-off-by: Michael Tokarev --- .gitignore |1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 5584b5f..1c9d63d 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ config-all-devices.*

Re: [Qemu-devel] [qemu PATCH] hw/i386/pc_sysfw: support more than one flash drive

2013-11-25 Thread Laszlo Ersek
On 11/25/13 16:22, Markus Armbruster wrote: > Laszlo Ersek writes: > >> On 11/22/13 13:21, Markus Armbruster wrote: >>> Laszlo Ersek writes: >>> This patch allows the user to usefully specify -drive file=img_1,if=pflash,format=raw,readonly \ -drive file=img_2,if=pflash,fo

[Qemu-devel] [PATCH] migration: Fix rate limit

2013-11-25 Thread Matthew Garrett
The migration thread appears to want to allow writeout to occur at full speed rather than being rate limited during completion of state saving, but sets the limit to INT_MAX when xfer_limit is INT64_MAX. This causes problems if there's more than 2GB of state left to save at this point. It probably

[Qemu-devel] [PULL 1/3] qobject: Fix compiler warning (missing gnu_printf format attribute)

2013-11-25 Thread Michael Tokarev
From: Stefan Weil gcc 4.8.2 reports this warning when extra warnings are enabled (-Wextra): CCqobject/qerror.o qobject/qerror.c: In function ‘qerror_from_info’: qobject/qerror.c:53:5: error: function might be possible candidate for ‘gnu_printf’ format attribute [-Werror=suggest-attribute

Re: [Qemu-devel] [PATCH v2 1/7] blkdebug: Use errp for read_config()

2013-11-25 Thread Max Reitz
On 25.11.2013 14:40, Kevin Wolf wrote: Am 22.11.2013 um 17:10 hat Max Reitz geschrieben: Use an Error variable in the read_config() function. Signed-off-by: Max Reitz --- block/blkdebug.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/block/blkdebug.c b/blo

[Qemu-devel] [PULL For-1.7 0/3] Trivial patches for 2013-11-25

2013-11-25 Thread Michael Tokarev
Here are a few remaining bits from the trivial patches queue. Paolo already picked some so this time the queue is smaller than usual. Please pull. The following changes since commit c0caec178eadbbac4c672110c3914313091e0588: Merge remote-tracking branch 'mst/tags/for_anthony' into staging (2013

Re: [Qemu-devel] [PATCH for-1.7 2/2] qemu-iotests: Fix test 041

2013-11-25 Thread Eric Blake
On 11/25/2013 12:28 PM, Max Reitz wrote: > Performing multiple drive-mirror blockjobs on the same qemu instance > results in the image file used for the block device being replaced by > the newly mirrored file, which is not what we want. > > Fix this by performing one dedicated test per sync mode.

  1   2   3   >