Re: [Qemu-devel] qemu-coroutine.c: error: thread-local storage not supported for this target

2015-01-24 Thread Paolo Bonzini
On 23/01/2015 23:54, Programmingkid wrote: Sorry, I was wrong. I missed that you are using 10.6.x. Thread-local storage was introduced on Mac OS X in 10.7. For 10.6.x you'll have to compile GCC 4.3 or newer yourself (or take it from fink/homebrew/whatever the Mac folks use these days).

Re: [Qemu-devel] qemu-coroutine.c: error: thread-local storage not supported for this target

2015-01-24 Thread Peter Maydell
On 24 January 2015 at 18:54, Paolo Bonzini pbonz...@redhat.com wrote: Note that GCC 4.3 was released almost seven years ago; we've been requiring it on Windows for three years (commit 00dccaf, coroutine: introduce coroutines, 2011-01-17), and no one has ever complained. Apple is not providing

Re: [Qemu-devel] [PATCH v2 01/47] acpi: introduce AML composer aml_append()

2015-01-24 Thread Michael S. Tsirkin
On Fri, Jan 23, 2015 at 06:56:20PM +0100, Igor Mammedov wrote: On Fri, 23 Jan 2015 15:55:11 +0200 Michael S. Tsirkin m...@redhat.com wrote: On Fri, Jan 23, 2015 at 02:40:30PM +0100, Igor Mammedov wrote: On Fri, 23 Jan 2015 15:24:24 +0200 Michael S. Tsirkin m...@redhat.com wrote:

Re: [Qemu-devel] [RFC PATCH 02/11] hw/arm/virt-acpi-build: Basic framework for building ACPI tables

2015-01-24 Thread Michael S. Tsirkin
On Sat, Jan 24, 2015 at 05:21:11PM +0800, Shannon Zhao wrote: Introduce a preliminary framework in virt-acpi-build.c with the main ACPI build functions. It exposes the generated ACPI contents to guest over fw_cfg. Some codes borrowed from hw/i386/acpi-build.c. The minimum required ACPI v5.1

Re: [Qemu-devel] [RFC PATCH 04/11] hw/arm/virt-acpi-build: Generate XSDT table and add a build_header function

2015-01-24 Thread Laszlo Ersek
comments below, fix attached On 01/24/15 10:21, Shannon Zhao wrote: XDST points to other tables except FACS DSDT. Implement a common header helper functions for generating ACPI tables. Signed-off-by: Shannon Zhao zhaoshengl...@huawei.com --- hw/arm/virt-acpi-build.c| 34

Re: [Qemu-devel] qemu-coroutine.c: error: thread-local storage not supported for this target

2015-01-24 Thread Paolo Bonzini
The lack of emulated TLS on 10.6 is the consequence of a political choice, though. GCC 4.3 was released long before Snow Leopard, but users are stuck with 4.2.1 because of the license. Paolo -Original Message- From: Peter Maydell [peter.mayd...@linaro.org] Received: sabato, 24 gen

Re: [Qemu-devel] [RFC PATCH 07/11] hw/arm/virt-acpi-build: Generate FADT table and update ACPI headers

2015-01-24 Thread Laszlo Ersek
comments below On 01/24/15 10:21, Shannon Zhao wrote: FADT points to FACS and DSDT, in the case of mach virt, it is also used to set the Hardware Reduced bit and enable PSCI SMP booting through HVC. Update the header definitions for FADT taking into account the new additions of ACPI v5.1 in

Re: [Qemu-devel] [RFC PATCH 11/11] hw/arm/virt: Enable dynamic generation of ACPI v5.1 tables

2015-01-24 Thread Laszlo Ersek
On 01/24/15 10:21, Shannon Zhao wrote: Expose the needed device information to the table generation insfrastructure and register a machine_init_done notify to call virt_acpi_build(). Add CONFIG_ACPI to arm-softmmu.mak, but there is compile error. Don't include unnecessary file for ARM.

Re: [Qemu-devel] [PATCH 04/11] target-arm: Define correct mmu_idx values and pass them in TB flags

2015-01-24 Thread Peter Maydell
On 24 January 2015 at 16:36, Greg Bellows greg.bell...@linaro.org wrote: I understand what the code is doing, my point is that you rely on arm_is_secure_below_el3 to deal with EL2 when you could have just as easily checked for el2. Not a big deal though. Well, I rely on the architecture to

Re: [Qemu-devel] [RFC PATCH 00/11] Generate ACPI v5.1 tables and expose it to guest over fw_cfg on ARM

2015-01-24 Thread Laszlo Ersek
On 01/24/15 10:21, Shannon Zhao wrote: This patch series generate seven ACPI v5.1 tables for machine virt on ARM. The set of generated tables are: - RSDP - XSDT - MADT - GTDT - FADT - FACS - DSDT These tables are created dynamically using the function of acpi-build-utils.c, taking

[Qemu-devel] [PATCH v2] linux-user/syscall.c: Need call unlock_user() before go to failure return in default case

2015-01-24 Thread Chen Gang S
In abi_long do_ioctl_dm(), after calls lock_user(), it does not call unlock_user() before go to failure return in default case. Signed-off-by: Chen Gang gang.chen.5...@gmail.com --- linux-user/syscall.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/linux-user/syscall.c

Re: [Qemu-devel] [PATCH 04/11] target-arm: Define correct mmu_idx values and pass them in TB flags

2015-01-24 Thread Greg Bellows
On Jan 23, 2015 7:12 PM, Peter Maydell peter.mayd...@linaro.org wrote: On 23 January 2015 at 21:44, Greg Bellows greg.bell...@linaro.org wrote: On Fri, Jan 23, 2015 at 12:20 PM, Peter Maydell peter.mayd...@linaro.org wrote: +typedef enum ARMMMUIdx { +ARMMMUIdx_S12NSE0 = 0, +

Re: [Qemu-devel] [PATCH 2/2] hw/ppc/spapr Add qemu_register_boot_set for SPAPR

2015-01-24 Thread Dinar Valeev
On 01/24/2015 12:04 AM, Alexander Graf wrote: On 23.01.15 23:51, dval...@suse.de wrote: From: Dinar Valeev dval...@suse.com In order to have -boot once=d functioning, it is required to have qemu_register_boot_set qemu-system-ppc64 -enable-kvm -boot once=d Ready! 0 dev /chosen ok 0

[Qemu-devel] [RFC PATCH 02/11] hw/arm/virt-acpi-build: Basic framework for building ACPI tables

2015-01-24 Thread Shannon Zhao
Introduce a preliminary framework in virt-acpi-build.c with the main ACPI build functions. It exposes the generated ACPI contents to guest over fw_cfg. Some codes borrowed from hw/i386/acpi-build.c. The minimum required ACPI v5.1 tables for ARM are: - RSDP: Initial table that points to XSDT -

[Qemu-devel] [PATCH v1 1/2] target_arm: Remove memory region init from armv7m_init

2015-01-24 Thread Alistair Francis
This patch moves the memory region init code from the armv7m_init function to the stellaris_init function Signed-off-by: Alistair Francis alistai...@gmail.com Reviewed-by: Peter Crosthwaite peter.crosthwa...@xilinx.com --- This has been split from the Netduino 2 machine patch series.

[Qemu-devel] [RFC PATCH 08/11] hw/arm/virt-acpi-build: Generate FACS table and update ACPI headers

2015-01-24 Thread Shannon Zhao
FACS table is created as a mockup, as with the Hardware Reduced bit set it will not be used. Update the header definitions for FACS taking into account the new additions of ACPI v5.1 in `include/hw/acpi/acpi-defs.h` Signed-off-by: Shannon Zhao zhaoshengl...@huawei.com ---

[Qemu-devel] [RFC PATCH 09/11] hw/acpi/acpi-build-utils: Add acpi_fixed_memory32() and acpi_extended_irq()

2015-01-24 Thread Shannon Zhao
Add acpi_fixed_memory32() for describing device mmio region in resource template. Add acpi_extended_irq() for describing device interrupt in resource template. These can be used to generating DSDT table for ACPI on ARM. Signed-off-by: Shannon Zhao zhaoshengl...@huawei.com ---

[Qemu-devel] [RFC PATCH 06/11] hw/arm/virt-acpi-build: Generate GTDT table

2015-01-24 Thread Shannon Zhao
ACPI v5.1 defines GTDT for ARM devices as a place to describe timer related information in the system. The Arch Timer interrupts must be provided for GTDT Signed-off-by: Shannon Zhao zhaoshengl...@huawei.com --- hw/arm/virt-acpi-build.c| 21 +

[Qemu-devel] [RFC PATCH 01/11] hw/i386: Move ACPI header definitions in an arch-independent location

2015-01-24 Thread Shannon Zhao
The ACPI related header file acpi-defs.h, includes definitions that apply on other architectures as well. Move it in `include/hw/acpi/` to sanely include it from other architectures. Signed-off-by: Alvise Rigo a.r...@virtualopensystems.com Signed-off-by: Shannon Zhao zhaoshengl...@huawei.com ---

[Qemu-devel] [RFC PATCH 07/11] hw/arm/virt-acpi-build: Generate FADT table and update ACPI headers

2015-01-24 Thread Shannon Zhao
FADT points to FACS and DSDT, in the case of mach virt, it is also used to set the Hardware Reduced bit and enable PSCI SMP booting through HVC. Update the header definitions for FADT taking into account the new additions of ACPI v5.1 in `include/hw/acpi/acpi-defs.h` Signed-off-by: Shannon Zhao

[Qemu-devel] [RFC PATCH 05/11] hw/arm/virt-acpi-build: Generate MADT table

2015-01-24 Thread Shannon Zhao
MADT describes GIC enabled ARM platforms. The GICC and GICD subtables are used to define the GIC regions. Signed-off-by: Shannon Zhao zhaoshengl...@huawei.com --- hw/arm/virt-acpi-build.c| 30 ++ include/hw/acpi/acpi-defs.h | 37

[Qemu-devel] [RFC PATCH 03/11] hw/arm/virt-acpi-build: Generate RSDP table

2015-01-24 Thread Shannon Zhao
RSDP points to XSDT which in turn points to other tables. Signed-off-by: Shannon Zhao zhaoshengl...@huawei.com --- hw/arm/virt-acpi-build.c | 22 ++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/hw/arm/virt-acpi-build.c b/hw/arm/virt-acpi-build.c index

[Qemu-devel] [PATCH v1 2/2] target_arm: Parameterise the irq lines for armv7m_init

2015-01-24 Thread Alistair Francis
This patch allows the board to specifiy the number of NVIC interrupt lines when using armv7m_init. Signed-off-by: Alistair Francis alistai...@gmail.com Reviewed-by: Peter Crosthwaite peter.crosthwa...@xilinx.com --- This has been split from the Netduino 2 machine patch series. hw/arm/armv7m.c

[Qemu-devel] [RFC PATCH 11/11] hw/arm/virt: Enable dynamic generation of ACPI v5.1 tables

2015-01-24 Thread Shannon Zhao
Expose the needed device information to the table generation insfrastructure and register a machine_init_done notify to call virt_acpi_build(). Add CONFIG_ACPI to arm-softmmu.mak, but there is compile error. Don't include unnecessary file for ARM. Maybe this way is not right, fix me please.

[Qemu-devel] [RFC PATCH 04/11] hw/arm/virt-acpi-build: Generate XSDT table and add a build_header function

2015-01-24 Thread Shannon Zhao
XDST points to other tables except FACS DSDT. Implement a common header helper functions for generating ACPI tables. Signed-off-by: Shannon Zhao zhaoshengl...@huawei.com --- hw/arm/virt-acpi-build.c| 34 ++ include/hw/acpi/acpi-defs.h |9 + 2

[Qemu-devel] [RFC PATCH 10/11] hw/arm/virt-acpi-build: Generation of DSDT table for virt devices

2015-01-24 Thread Shannon Zhao
DSDT consists of the usual common table header plus a definition block in AML encoding which describes all devices in the platform. After initializing DSDT with header information the namespace is created which is followed by the device encodings. The devices are described using the Resource

[Qemu-devel] [RFC PATCH 00/11] Generate ACPI v5.1 tables and expose it to guest over fw_cfg on ARM

2015-01-24 Thread Shannon Zhao
This patch series generate seven ACPI v5.1 tables for machine virt on ARM. The set of generated tables are: - RSDP - XSDT - MADT - GTDT - FADT - FACS - DSDT These tables are created dynamically using the function of acpi-build-utils.c, taking into account the needed information passed from the

[Qemu-devel] [PATCH v2] vhost-user: add multi queue support

2015-01-24 Thread Nikolay Nikolaev
Vhost-user will implement the multiqueueu support in a similar way to what vhost already has - a separate thread for each queue. To enable the multiqueue funcionality - a new command line parameter queues is introduced for the vhost-user netdev. Changes since v1: - use s-nc.info_str when

Re: [Qemu-devel] [PATCH v3 0/13] migration: Add a new feature to do live migration

2015-01-24 Thread Li, Liang Z
Thanks Dave Eric for spending time to review my patches and giving the valuable comments, I will refine my patches in the later version according to your suggestions. * Liang Li (liang.z...@intel.com) wrote: This feature can help to reduce the data transferred about 60%, and the migration

Re: [Qemu-devel] [v3 12/13] migration: Add command to set migration parameter

2015-01-24 Thread Li, Liang Z
* Liang Li (liang.z...@intel.com) wrote: Add the qmp and hmp commands to tune the parameters used in live migration. If I understand correctly on the destination side we need to set the number of decompression threads very early on an incoming migration - I'm not clear how early that

[Qemu-devel] Qemu with GDB - Query

2015-01-24 Thread manish tiwari
Hello everyone, I am new to QEMU and trying to attach gdb with qemu on powepc host. I have tried below options qemu-system-ppc -enable-kvm -nographic -m 512 -M ppce500 -cpu e500mc -gdb tcp::1234 -s -S -kernel uImage -initrd rootfs.ext2.gz -append root=/dev/ram rw console=ttyS0,115200 -serial

[Qemu-devel] [Bug 1414293] [NEW] target-lm32/translate.c:336: bad ? : operator

2015-01-24 Thread dcb
Public bug reported: [qemu/target-lm32/translate.c:336]: (style) Same expression in both branches of ternary operator. int rY = (dc-format == OP_FMT_RR) ? dc-r0 : dc-r0; ** Affects: qemu Importance: Undecided Status: New -- You received this bug notification because you are a

Re: [Qemu-devel] [v3 04/13] qemu-file: Add tow function will be used in migration

2015-01-24 Thread Li, Liang Z
+size_t migrate_qemu_add_compression_data(QEMUFile *f, +const uint8_t *p, size_t size, int level) It's an odd name, QEMUFile is only used by migration anyway; maybe qemufile_add_compression_data ? +{ +size_t blen = IO_BUF_SIZE - f-buf_index - sizeof(int); + +if

Re: [Qemu-devel] [v3 05/13] arch_init: alloc and free data struct in multi-thread compression

2015-01-24 Thread Li, Liang Z
typedef struct compress_param compress_param; +enum { +DONE, +START, +}; + Do you really need any more than a 'bool busy' ? Good ideal. struct decompress_param { /* To be done */ }; typedef struct decompress_param decompress_param; static

Re: [Qemu-devel] [v3 08/13] migration: Add the core code of multi-thread compresion

2015-01-24 Thread Li, Liang Z
- +/* When starting the process of a new block, the first page of + * the block should be sent out before other pages in the same + * block, and all the pages in last block should have been sent + * out, keeping this order is important. Why? Is this just because of