[Qemu-devel] [Bug 1588328] Re: Qemu 2.6 Solaris 9 Sparc Segmentation Fault

2016-07-02 Thread Zhen Ning Lim
Hi Mark, We are finally in:) By the way, how do you figure out which slice its in? >From solaris 8 dvd onwards, i seems to see 2 disk label options: SMI and EFI. Not sure why you didnt see those. 0 > boot disk:a Not a bootable ELF image Loading a.out image... Loaded 7680 bytes entry point is 0x

Re: [Qemu-devel] [PATCH v8 11/12] vfio: register aer resume notification handler for aer resume

2016-07-02 Thread Zhou Jie
Hi Alex, On 2016/6/30 9:45, Zhou Jie wrote: Hi Alex, On 2016/6/30 2:22, Alex Williamson wrote: On Wed, 29 Jun 2016 16:54:05 +0800 Zhou Jie wrote: Hi Alex, And yet we have struct pci_dev.broken_intx_masking and we test for working DisINTx via pci_intx_mask_supported() rather than simply lo

[Qemu-devel] [PATCH v8 12/16] qapi: Change Netdev into a flat union

2016-07-02 Thread Eric Blake
This is a mostly-mechanical conversion that creates a new flat union 'Netdev' QAPI type that covers all the branches of the former 'NetClientOptions' simple union, where the branches are now listed in a new 'NetClientDriver' enum rather than generated from the simple union. The existence of a flat

[Qemu-devel] [PATCH v8 10/16] block: Simplify drive-mirror

2016-07-02 Thread Eric Blake
Now that we can support boxed commands, use it to greatly reduce the number of parameters (and likelihood of getting out of sync) when adjusting drive-mirror parameters. Signed-off-by: Eric Blake --- v8: rebase, drop stale sentence in docs, don't rearrange initialiation v7: new patch --- qapi/b

[Qemu-devel] [PATCH v8 16/16] schema: Drop pointless empty type CpuInfoOther

2016-07-02 Thread Eric Blake
Now that we can represent an empty type anonymously in a flat union, we can drop one such empty types that existed solely for CpuInfo. However, we can't drop Abort or NetdevNoneOptions, as those were used by simple unions (remember, for simple unions, we still have to create a wrapper around a typ

[Qemu-devel] [PATCH v8 13/16] net: Use correct type for bool flag

2016-07-02 Thread Eric Blake
is_netdev is only used as a bool, so make it one. Signed-off-by: Eric Blake --- v8: no change v7: no change v6: rebase to latest context --- include/net/net.h| 2 +- hw/usb/dev-network.c | 2 +- net/net.c| 12 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff

[Qemu-devel] [PATCH v8 09/16] block: Simplify block_set_io_throttle

2016-07-02 Thread Eric Blake
Now that we can support boxed commands, use it to greatly reduce the number of parameters (and likelihood of getting out of sync) when adjusting throttle parameters. Signed-off-by: Eric Blake Reviewed-by: Alberto Garcia --- v8: tweak doc wording v7: new patch --- qapi/block-core.json | 20 +++

[Qemu-devel] [PATCH v8 15/16] qapi: Allow anonymous branch types in flat union

2016-07-02 Thread Eric Blake
Recent commits added support for an anonymous type as the base of a flat union; with a bit more work, we can also allow an anonymous struct as a branch of a flat union. This probably most useful when a branch adds no additional members beyond the common elements of the base (that is, the branch st

[Qemu-devel] [PATCH v8 11/16] qapi-event: Reduce chance of collision with event data

2016-07-02 Thread Eric Blake
When an unboxed event has accompanying data, we are exposing all of its members alongside our local variables in the generated qapi_event_send_FOO() function. So far, we haven't hit a collision, but it may be a matter of time before someone wants to name a QMP data element 'err' or similar. We ca

[Qemu-devel] [PATCH v8 06/16] qapi-event: Simplify visit of non-implicit data

2016-07-02 Thread Eric Blake
Commit 7ce106a9 documented why we don't generated a visit_type_FOO() for implicit types; and therefore events with an anonymous type for 'data' have to open-code a visit. Note that the open-coded visit in qapi-event.c is slightly different from what is done in qapi-visit.c for normal types, in par

[Qemu-devel] [PATCH v8 07/16] qapi: Plumb in 'box' to qapi generator lower levels

2016-07-02 Thread Eric Blake
The next patch will add support for passing a qapi union type as the 'data' of a command. But to do that, the user function for implementing the command, as called by the generated marshal command, must take the corresponding C struct as a single boxed pointer, rather than a breakdown into one par

[Qemu-devel] [PATCH v8 01/16] net: use Netdev instead of NetClientOptions in client init

2016-07-02 Thread Eric Blake
From: Kővágó, Zoltán This way we no longer need NetClientOptions and can convert Netdev into a flat union. Signed-off-by: Kővágó, Zoltán Reviewed-by: Eric Blake Message-Id: <93ffdfed7054529635e6acb935150d95dc173a12.1441627176.git.dirty.ice...@gmail.com> [rework net_client_init1() to pass Net

[Qemu-devel] [PATCH v8 14/16] net: Complete qapi-fication of netdev_add

2016-07-02 Thread Eric Blake
We finally have all the required pieces for doing a type-safe representation of netdev_add as a flat union, where the discriminator 'type' now selects which additional members may appear in the "arguments" JSON object sent over QMP, and exposes those types through introspection, and without breakin

[Qemu-devel] [PATCH v8 03/16] qapi: Hide tag_name data member of variants

2016-07-02 Thread Eric Blake
Clean up the only remaining external use of the tag_name field of QAPISchemaObjectTypeVariants, by explicitly listing the generated 'type' tag for all variants in the testsuite (you can still tell simple unions by the -wrapper types). Then we can mark the tag_name field as private by adding a lead

[Qemu-devel] [PATCH v8 04/16] qapi: Add type.is_empty() helper

2016-07-02 Thread Eric Blake
In the near future, we want to lift our artificial restriction of no variants at the top level of an event, at which point the currently open-coded check for empty members will become insufficient. Factor it out into a new helper method is_empty() now, and future-proof it by checking variants, too

[Qemu-devel] [PATCH v8 08/16] qapi: Implement boxed types for commands/events

2016-07-02 Thread Eric Blake
Turn on the ability to pass command and event arguments in a single boxed parameter, which must name a non-empty type (although the type can be a struct with all optional members). For structs, it makes it possible to pass a single qapi type instead of a breakout of all struct members (useful if th

[Qemu-devel] [PATCH v8 02/16] qapi: Require all branches of flat union enum to be covered

2016-07-02 Thread Eric Blake
We were previously enforcing that all flat union branches were found in the corresponding enum, but not that all enum values were covered by branches. The resulting generated code would abort() if the user passes the uncovered enum value. We don't automatically treat non-present branches in a fla

[Qemu-devel] [PATCH for-2.7 v8 00/16] qapi netdev_add introspection (post-introspection cleanups subset F)

2016-07-02 Thread Eric Blake
It's time to expose QMP 'netdev_add' through introspection, and to add boxed commands/events so that we can drastically reduce the number of C parameters needed to implement a command that matches a large QAPI type. Prerequistes: Markus' qapi-next branch (including my clone visitor) available as

[Qemu-devel] [PATCH v8 05/16] qapi: Drop useless gen_err_check()

2016-07-02 Thread Eric Blake
Ever since commit 12f254f removed the last parameterization of gen_err_check(), it no longer makes sense to hide the three lines of generated C code behind a macro call. Just inline it into the remaining users. No change to generated code. Signed-off-by: Eric Blake --- v8: new patch --- script

Re: [Qemu-devel] [PATCH v7 03/15] qapi: Require all branches of flat union enum to be covered

2016-07-02 Thread Eric Blake
On 06/14/2016 07:46 AM, Eric Blake wrote: >> I'd let the cases not mentioned default to the empty type (ample >> precedence in other languages), but I can live with making the user ask >> for the empty type explicitly. But we should then make that less >> cumbersome than now: you have to define a

Re: [Qemu-devel] [PATCH] target-i386: Use struct X86XSaveArea in fpu_helper.c

2016-07-02 Thread Richard Henderson
On 07/02/2016 01:02 PM, Eduardo Habkost wrote: On Sat, Jul 02, 2016 at 09:44:31AM -0700, Richard Henderson wrote: [...] @@ -1402,9 +1409,8 @@ void helper_xrstor(CPUX86State *env, target_ulong ptr, uint64_t rfbm) } /* The XCOMP field must be zero. */ -xcomp_bv0 = cpu_ldq_data_ra(

Re: [Qemu-devel] [PATCH v7 13/15] net: Complete qapi-fication of netdev_add

2016-07-02 Thread Eric Blake
On 06/16/2016 07:40 AM, Markus Armbruster wrote: > Eric Blake writes: > >> We finally have all the required pieces for doing a type-safe >> representation of netdev_add as a flat union, where the >> discriminator 'type' now selects which additional members may >> appear in the "arguments" JSON ob

Re: [Qemu-devel] [PATCH] linux-user: fix signal() syscall on x86_64

2016-07-02 Thread Laurent Vivier
Le 02/07/2016 à 23:20, Peter Maydell a écrit : > On 2 July 2016 at 22:17, Laurent Vivier wrote: >> Le 02/07/2016 à 22:12, Peter Maydell a écrit : >>> (1) Define neither NR_select nor NR__newselect >>> (and use pselect6 syscall for select): >>> aarch64, openrisc, tilegx, unicore32, presumably a

Re: [Qemu-devel] [PATCH] linux-user: fix signal() syscall on x86_64

2016-07-02 Thread Peter Maydell
On 2 July 2016 at 22:17, Laurent Vivier wrote: > Le 02/07/2016 à 22:12, Peter Maydell a écrit : >> (1) Define neither NR_select nor NR__newselect >> (and use pselect6 syscall for select): >> aarch64, openrisc, tilegx, unicore32, presumably any future arch > > They use: > > kernel/sys.c: > > #und

Re: [Qemu-devel] [PATCH] linux-user: fix signal() syscall on x86_64

2016-07-02 Thread Laurent Vivier
Le 02/07/2016 à 22:12, Peter Maydell a écrit : > On 2 July 2016 at 17:41, Laurent Vivier wrote: >> Sadly, this can't work: >> >> sparc/sparc64/cris use sys_select for NR_select AND NR_newselect. > >> Not sure all is correct, but it's what I've found: >> >> | __NR_select| __NR__n

Re: [Qemu-devel] [PATCH] linux-user: fix signal() syscall on x86_64

2016-07-02 Thread Peter Maydell
On 2 July 2016 at 17:41, Laurent Vivier wrote: > Sadly, this can't work: > > sparc/sparc64/cris use sys_select for NR_select AND NR_newselect. > Not sure all is correct, but it's what I've found: > > | __NR_select| __NR__newselect > ++-+

Re: [Qemu-devel] [PATCH] target-i386: Use struct X86XSaveArea in fpu_helper.c

2016-07-02 Thread Eduardo Habkost
On Sat, Jul 02, 2016 at 09:44:31AM -0700, Richard Henderson wrote: [...] > @@ -1402,9 +1409,8 @@ void helper_xrstor(CPUX86State *env, target_ulong ptr, > uint64_t rfbm) > } > > /* The XCOMP field must be zero. */ > -xcomp_bv0 = cpu_ldq_data_ra(env, ptr + 520, ra); > -xcomp_bv1

Re: [Qemu-devel] [PATCH v9 00/10] 8bit AVR cores

2016-07-02 Thread Michael Rolnik
for ADIW, SBIW instructions I modified address calculation. On Sat, Jul 2, 2016 at 9:20 PM, Michael Rolnik wrote: > Hi Richard. > > I folded all my changes into prevous commits. > > 1. I meant EOR, which is actually XOR. Prevously it did not save the > result into the register > 2. my mistake I

Re: [Qemu-devel] failed kpartx on qemu-aarch64-static

2016-07-02 Thread Peter Maydell
On 2 July 2016 at 17:25, Chanho Park wrote: > I've got a kpartx crash frin qemu-aarch64 user emulation. > The version of qemu-aarch64-static is 2.5.0 and it was also occurred > on 2.5.1 version. > > /usr/bin/qemu-aarch64-static --version > qemu-aarch64 version 2.5.0 (Debian 1:2.5+dfsg-5ubuntu10.1)

Re: [Qemu-devel] [PATCH v9 00/10] 8bit AVR cores

2016-07-02 Thread Michael Rolnik
Hi Richard. I folded all my changes into prevous commits. 1. I meant EOR, which is actually XOR. Prevously it did not save the result into the register 2. my mistake I meant ORI and LDS and not ADIW, SBIW 3. when there is a call to tlb_fill for [0x: 0x0100) region it a. sets env->fullwr

[Qemu-devel] [Bug 1588328] Re: Qemu 2.6 Solaris 9 Sparc Segmentation Fault

2016-07-02 Thread Mark Cave-Ayland
Hmmm I've just tried a second installation of Solaris 9 with a completely blank disk image and now it appears that "boot disk:a" is correct, i.e. boot from slice a. Not sure yet if this is the correct convention for HDs. -- You received this bug notification because you are a member of qemu- deve

Re: [Qemu-devel] [PATCH v5 9/9] tests: add a m25p80 test

2016-07-02 Thread mar.krzeminski
W dniu 28.06.2016 o 20:24, Cédric Le Goater pisze: This test uses the palmetto platform and the AST2400 SPI controller to test the m25p80 flash module device model. The flash model is defined by the platform (n25q256a) and it would be nice to find way to control it, using a property probably.

Re: [Qemu-devel] [PATCH v5 7/9] ast2400: add SPI flash slaves

2016-07-02 Thread mar.krzeminski
W dniu 02.07.2016 o 19:08, mar.krzeminski pisze: W dniu 28.06.2016 o 20:24, Cédric Le Goater pisze: Each controller on the ast2400 has a memory range on which it maps its flash module slaves. Each slave is assigned a memory segment for its mapping that can be changed at bootime with the Segm

Re: [Qemu-devel] [PATCH v5 7/9] ast2400: add SPI flash slaves

2016-07-02 Thread mar.krzeminski
W dniu 28.06.2016 o 20:24, Cédric Le Goater pisze: Each controller on the ast2400 has a memory range on which it maps its flash module slaves. Each slave is assigned a memory segment for its mapping that can be changed at bootime with the Segment Address Register. This is not supported in the c

Re: [Qemu-devel] [PATCH v5 6/9] ast2400: add SMC controllers (FMC and SPI)

2016-07-02 Thread mar.krzeminski
W dniu 29.06.2016 o 09:58, Cédric Le Goater pisze: On 06/28/2016 08:24 PM, Cédric Le Goater wrote: The Aspeed AST2400 soc includes a static memory controller for the BMC which supports NOR, NAND and SPI flash memory modules. This controller has two modes : the SMC for the legacy interface whic

[Qemu-devel] [PATCH] target-i386: Use struct X86XSaveArea in fpu_helper.c

2016-07-02 Thread Richard Henderson
This avoids a double hand-full of magic numbers in the xsave and xrstor helper functions. Signed-off-by: Richard Henderson --- target-i386/cpu.c| 7 +++- target-i386/cpu.h| 7 target-i386/fpu_helper.c | 99 +--- 3 files changed,

Re: [Qemu-devel] [PATCH] linux-user: fix signal() syscall on x86_64

2016-07-02 Thread Laurent Vivier
Le 02/07/2016 à 11:56, Peter Maydell a écrit : > On 2 July 2016 at 09:20, Laurent Vivier wrote: >> >> >> Le 01/07/2016 à 15:35, Peter Maydell a écrit : >>> On 1 July 2016 at 12:59, Wirth, Allan wrote: Linux on X86_64 does not use sel_arg_struct for select(), the args are passed direct

Re: [Qemu-devel] [PATCH v2 6/6] block: Remove BB options from blockdev-add

2016-07-02 Thread Max Reitz
On 30.06.2016 16:13, Kevin Wolf wrote: > werror/rerror are now available as qdev options. The stats-* options are > removed without an existing replacement; they should probably be > configurable with a separate QMP command like I/O throttling settings. I'm not sure I agree with removing the stats

[Qemu-devel] failed kpartx on qemu-aarch64-static

2016-07-02 Thread Chanho Park
Hi all, I've got a kpartx crash frin qemu-aarch64 user emulation. The version of qemu-aarch64-static is 2.5.0 and it was also occurred on 2.5.1 version. /usr/bin/qemu-aarch64-static --version qemu-aarch64 version 2.5.0 (Debian 1:2.5+dfsg-5ubuntu10.1), Copyright (c) 2003-2008 Fabrice Bellard == B

Re: [Qemu-devel] [PATCH v2 5/6] qemu-iotests: Test setting WCE with qdev

2016-07-02 Thread Max Reitz
On 30.06.2016 16:13, Kevin Wolf wrote: > Signed-off-by: Kevin Wolf > --- > tests/qemu-iotests/157 | 92 > ++ > tests/qemu-iotests/157.out | 22 +++ > tests/qemu-iotests/group | 1 + > 3 files changed, 115 insertions(+) > create mode 100

Re: [Qemu-devel] [PATCH 0/2] Reduce lock contention on TCG hot-path

2016-07-02 Thread Paolo Bonzini
On 02/07/2016 09:08, Alex Bennée wrote: > Hmm I was doing from memory but it should be the mean of the sum of the > squares of the deviation: > > # calculate deviation > deviation = 0 > for r in res: > deviation += (r.time - avg_time)**2 > > deviation

Re: [Qemu-devel] [PATCH v2 4/6] block/qdev: Allow configuring rerror/werror with qdev properties

2016-07-02 Thread Max Reitz
On 30.06.2016 16:13, Kevin Wolf wrote: > The rerror/werror policies are implemented in the devices, so that's > where they should be configured. In comparison to the old options in > -drive, the qdev properties are only added to those devices that > actually support them. > > If the option isn't g

Re: [Qemu-devel] [PATCH v2 3/6] commit: Fix use of error handling policy

2016-07-02 Thread Max Reitz
On 30.06.2016 16:13, Kevin Wolf wrote: > Commit implemented the 'enospc' policy as 'ignore' if the error was not > ENOSPC. The QAPI documentation promises that it's treated as 'stop'. > Using the common block job error handling function fixes this. > > Signed-off-by: Kevin Wolf > --- > block/com

Re: [Qemu-devel] [PATCH v2 2/6] block/qdev: Allow configuring WCE with qdev properties

2016-07-02 Thread Max Reitz
On 30.06.2016 16:13, Kevin Wolf wrote: > As cache.writeback is a BlockBackend property and as such more related > to the guest device than the BlockDriverState, we already removed it > from the blockdev-add interface. This patch adds the new way to set it, > as a qdev property of the corresponding

Re: [Qemu-devel] [PATCH v2 1/6] block/qdev: Allow node name for drive properties

2016-07-02 Thread Max Reitz
On 30.06.2016 16:13, Kevin Wolf wrote: > If a node name instead of a BlockBackend name is specified as the driver > for a guest device, an anonymous BlockBackend is created now. > > Signed-off-by: Kevin Wolf > --- > hw/core/qdev-properties-system.c | 22 +++--- > 1 file changed,

[Qemu-devel] [Bug 1588328] Re: Qemu 2.6 Solaris 9 Sparc Segmentation Fault

2016-07-02 Thread Mark Cave-Ayland
It works here as per my post above, so I think the problem is still with the disk label. With the above ISO image, I don't get asked for the type of label which makes me think you are using a newer version of Solaris for labelling than you are for installation. Can you re-label the disk using the

Re: [Qemu-devel] [PATCH v2 1/6] block/qdev: Allow node name for drive properties

2016-07-02 Thread Max Reitz
On 30.06.2016 16:13, Kevin Wolf wrote: > If a node name instead of a BlockBackend name is specified as the driver > for a guest device, an anonymous BlockBackend is created now. > > Signed-off-by: Kevin Wolf > --- > hw/core/qdev-properties-system.c | 22 +++--- > 1 file changed,

Re: [Qemu-devel] [PATCH v3 11/11] blockjob: Update description of the 'device' field in the QMP API

2016-07-02 Thread Max Reitz
On 01.07.2016 17:52, Alberto Garcia wrote: > The 'device' field in all BLOCK_JOB_* events and 'block-job-*' command > is no longer the device name, but the ID of the job. This patch > updates the documentation to clarify that. > > Signed-off-by: Alberto Garcia > --- > docs/qmp-events.txt | 12 +

Re: [Qemu-devel] [PATCH v3 06/11] mirror: Add 'job-id' parameter to 'blockdev-mirror' and 'drive-mirror'

2016-07-02 Thread Max Reitz
On 01.07.2016 17:52, Alberto Garcia wrote: > This patch adds a new optional 'job-id' parameter to 'blockdev-mirror' > and 'drive-mirror', allowing the user to specify the ID of the block > job to be created. > > The HMP 'drive_mirror' command remains unchanged. > > Signed-off-by: Alberto Garcia

Re: [Qemu-devel] [PATCH v3 10/11] qemu-img: Set the ID of the block job in img_commit()

2016-07-02 Thread Max Reitz
On 01.07.2016 17:52, Alberto Garcia wrote: > img_commit() creates a block job without an ID. This is no longer > allowed now that we require it to be unique and well-formed. We were > solving this by having a fallback in block_job_create(), but now that > we extended the API of commit_active_start(

Re: [Qemu-devel] [PATCH v3 05/11] blockjob: Add 'job_id' parameter to block_job_create()

2016-07-02 Thread Max Reitz
On 01.07.2016 17:52, Alberto Garcia wrote: > When a new job is created, the job ID is taken from the device name of > the BDS. This patch adds a new 'job_id' parameter to let the caller > provide one instead. > > This patch also verifies that the ID is always unique and well-formed. > This causes

Re: [Qemu-devel] [PATCH v3 04/11] block: Use block_job_get() in find_block_job()

2016-07-02 Thread Max Reitz
On 01.07.2016 17:52, Alberto Garcia wrote: > find_block_job() looks for a block backend with a specified name, > checks whether it has a block job and acquires its AioContext. > > We want to identify jobs by their ID and not by the block backend > they're attached to, so this patch ignores the bac

Re: [Qemu-devel] [PATCH v3 02/11] blockjob: Update description of the 'id' field

2016-07-02 Thread Max Reitz
On 01.07.2016 17:52, Alberto Garcia wrote: > The 'id' field of the BlockJob structure will be able to hold any ID, > not only a device name. This patch updates the description of that > field and the error messages where it is being used. > > Soon we'll add the ability to set an arbitrary ID when

Re: [Qemu-devel] [PATCH 2/2 V3] hmp: show all of snapshot info on every block dev in output of 'info snapshots'

2016-07-02 Thread Max Reitz
On 29.06.2016 09:43, Lin Ma wrote: > Currently, the output of 'info snapshots' shows fully available snapshots. > It's opaque, hides some snapshot information to users. It's not convenient > if users want to know more about all of snapshot information on every block > device via monitor. > > Follo

Re: [Qemu-devel] [PATCH 1/2 V3] hmp: use snapshot name to determine whether a snapshot is 'fully available'

2016-07-02 Thread Max Reitz
On 29.06.2016 09:43, Lin Ma wrote: > Currently qemu uses snapshot id to determine whether a snapshot is fully > available, It causes incorrect output in some scenario. > > For instance: > (qemu) info block > drive_image1 (#block113): /opt/vms/SLES12-SP1-JeOS-x86_64-GM/disk0.qcow2 > (qcow2) > C

Re: [Qemu-devel] [PATCH 1/1] Improve block job rate limiting for small bandwidth values

2016-07-02 Thread Max Reitz
On 28.06.2016 17:28, Sascha Silbe wrote: > ratelimit_calculate_delay() previously reset the accounting every time > slice, no matter how much data had been processed before. This had (at > least) two consequences: > > 1. The minimum speed is rather large, e.g. 5 MiB/s for commit and stream. > >

Re: [Qemu-devel] [PATCH] quorum: Only compile when supported

2016-07-02 Thread Max Reitz
On 28.06.2016 03:47, Fam Zheng wrote: > This was the only exceptional module init function that does something > else than a simple list of bdrv_register() calls, in all the block > drivers. This sounds like this patch specifically wants to drop the check from bdrv_quorum_init(). I think keeping

[Qemu-devel] [Bug 1588328] Re: Qemu 2.6 Solaris 9 Sparc Segmentation Fault

2016-07-02 Thread Zhen Ning Lim
Hi Mark, I have tried boot diisk:d. After this Not a bootable ELF image Not a bootable a.out image No valid state has been set by load or init-program 0 > boot disk:d No valid state has been set by load or init-program ok 0 > Somehow I am getting invalid boot -- You received this bug notif

Re: [Qemu-devel] [PATCH v2 0/7] ppc: compute cpu_dt_id in the machine code

2016-07-02 Thread Greg Kurz
On Sat, 2 Jul 2016 15:25:07 +0530 Bharata B Rao wrote: > On Sat, Jul 02, 2016 at 12:41:14AM +0200, Greg Kurz wrote: > > This series is a sequel to the discussion on a patch from Ben's powernv > > patchset: > > > > http://patchwork.ozlabs.org/patch/597153/ > > > > Indeed, since the DT is

Re: [Qemu-devel] [PATCH] linux-user: fix signal() syscall on x86_64

2016-07-02 Thread Peter Maydell
On 2 July 2016 at 09:20, Laurent Vivier wrote: > > > Le 01/07/2016 à 15:35, Peter Maydell a écrit : >> On 1 July 2016 at 12:59, Wirth, Allan wrote: >>> Linux on X86_64 does not use sel_arg_struct for select(), the args are >>> passed directly. This patch switches a define so X86_64 uses the corre

Re: [Qemu-devel] [PATCH v2 0/7] ppc: compute cpu_dt_id in the machine code

2016-07-02 Thread Bharata B Rao
On Sat, Jul 02, 2016 at 12:41:14AM +0200, Greg Kurz wrote: > This series is a sequel to the discussion on a patch from Ben's powernv > patchset: > > http://patchwork.ozlabs.org/patch/597153/ > > Indeed, since the DT is a machine abstraction, it should definitely sit > under hw/ppc and not

Re: [Qemu-devel] [PATCH v3 1/1] target-arm: Use Neon for zero checking

2016-07-02 Thread Peter Maydell
On 1 July 2016 at 23:07, Richard Henderson wrote: > On 06/30/2016 06:45 AM, Peter Maydell wrote: >> >> On 29 June 2016 at 09:47, wrote: >>> >>> From: Vijay >>> >>> Use Neon instructions to perform zero checking of >>> buffer. This is helps in reducing total migration time. >> >> >>> diff --git

[Qemu-devel] [Bug 1594239] Re: After adding more scsi disks for Aarch64 virtual machine, start the VM and got Qemu Error

2016-07-02 Thread Laszlo Ersek (Red Hat)
The issue is that virtio-mmio devices don't distinguish themselves on the sysbus level. Using the small reproducer from Cole, and setting a breakpoint on virtio_bus_get_dev_path(), for the second virtio-scsi-device we get: ... qdev_get_dev_path() virtio_bus_get_dev_path()

Re: [Qemu-devel] [PATCH v2 7/7] ppc: move the cpu_dt_id logic to machine code

2016-07-02 Thread Greg Kurz
On Sat, 2 Jul 2016 13:45:44 +0530 Bharata B Rao wrote: > On Sat, Jul 02, 2016 at 12:42:12AM +0200, Greg Kurz wrote: > > Now that every supported machine type is able to provide a cpu_index, we > > can safely move all the cpu_dt_id bits to the machine code. > > > > TODO: the cpu_dt_id logic remai

Re: [Qemu-devel] [PATCH v2 6/7] spapr: use ppc_set_vcpu_dt_id() in CPU hotplug code

2016-07-02 Thread Greg Kurz
On Sat, 2 Jul 2016 13:44:08 +0530 Bharata B Rao wrote: > On Sat, Jul 02, 2016 at 12:42:04AM +0200, Greg Kurz wrote: > > Starting with version 2.7, pseries machine now support hotplug of > > cpu cores. The implementation requires to open code cpu creation > > and thus does not call ppc_cpu_init().

Re: [Qemu-devel] [PATCH v2 4/7] ppc: open code cpu creation for machine types

2016-07-02 Thread Greg Kurz
On Sat, 2 Jul 2016 13:36:22 +0530 Bharata B Rao wrote: > On Sat, Jul 02, 2016 at 12:41:48AM +0200, Greg Kurz wrote: > > If we want to generate cpu_dt_id in the machine code, this must occur > > before the cpu gets realized. We must open code the cpu creation to be > > able to do this. > > > > Th

Re: [Qemu-devel] [PATCH] linux-user: fix signal() syscall on x86_64

2016-07-02 Thread Laurent Vivier
Le 01/07/2016 à 15:35, Peter Maydell a écrit : > On 1 July 2016 at 12:59, Wirth, Allan wrote: >> Linux on X86_64 does not use sel_arg_struct for select(), the args are >> passed directly. This patch switches a define so X86_64 uses the correct >> calling convention. >> >> Signed-off-by: Allan Wi

Re: [Qemu-devel] [PATCH v2 7/7] ppc: move the cpu_dt_id logic to machine code

2016-07-02 Thread Bharata B Rao
On Sat, Jul 02, 2016 at 12:42:12AM +0200, Greg Kurz wrote: > Now that every supported machine type is able to provide a cpu_index, we > can safely move all the cpu_dt_id bits to the machine code. > > TODO: the cpu_dt_id logic remains the same wannabe generic one as before > because of its target c

Re: [Qemu-devel] [PATCH v2 6/7] spapr: use ppc_set_vcpu_dt_id() in CPU hotplug code

2016-07-02 Thread Bharata B Rao
On Sat, Jul 02, 2016 at 12:42:04AM +0200, Greg Kurz wrote: > Starting with version 2.7, pseries machine now support hotplug of > cpu cores. The implementation requires to open code cpu creation > and thus does not call ppc_cpu_init(). > > This patch does all the plumbing to allow pseries machine t

Re: [Qemu-devel] [PATCH v2 4/7] ppc: open code cpu creation for machine types

2016-07-02 Thread Bharata B Rao
On Sat, Jul 02, 2016 at 12:41:48AM +0200, Greg Kurz wrote: > If we want to generate cpu_dt_id in the machine code, this must occur > before the cpu gets realized. We must open code the cpu creation to be > able to do this. > > This patch just does that. It borrows some lines from previous work > f

Re: [Qemu-devel] [RFC v3 11/19] tcg: add options for enabling MTTCG

2016-07-02 Thread Sergey Fedorov
On 02/07/16 10:11, Alex Bennée wrote: > Richard Henderson writes: > >> On 06/03/2016 01:40 PM, Alex Bennée wrote: >>> +bool qemu_tcg_mttcg_enabled(void) >>> +{ >>> +return mttcg_enabled; >>> +} >> Is there a good reason to expose this via function call, rather than just >> test >> the variabl

Re: [Qemu-devel] [RFC v3 12/19] tcg: add kick timer for single-threaded vCPU emulation

2016-07-02 Thread Sergey Fedorov
On 02/07/16 03:17, Richard Henderson wrote: > On 06/27/2016 02:20 PM, Sergey Fedorov wrote: >> On 03/06/16 23:40, Alex Bennée wrote: >>> diff --git a/cpus.c b/cpus.c >>> index 1694ce9..12e04c9 100644 >>> --- a/cpus.c >>> +++ b/cpus.c >>> @@ -1208,9 +1208,29 @@ static int tcg_cpu_exec(CPUState *cpu)

Re: [Qemu-devel] [RFC v3 11/19] tcg: add options for enabling MTTCG

2016-07-02 Thread Alex Bennée
Richard Henderson writes: > On 06/03/2016 01:40 PM, Alex Bennée wrote: >> +bool qemu_tcg_mttcg_enabled(void) >> +{ >> +return mttcg_enabled; >> +} > > Is there a good reason to expose this via function call, rather than just test > the variable? It was in Fred's original patch. I guess ther

Re: [Qemu-devel] [PATCH 1/2] tcg: Ensure safe tb_jmp_cache lookup out of 'tb_lock'

2016-07-02 Thread Alex Bennée
Emilio G. Cota writes: > On Fri, Jul 01, 2016 at 17:16:09 +0100, Alex Bennée wrote: >> From: Sergey Fedorov > (snip) >> @@ -333,7 +338,7 @@ static inline TranslationBlock *tb_find_fast(CPUState >> *cpu, >> is executed. */ >> cpu_get_tb_cpu_state(env, &pc, &cs_base, &flags); >>

Re: [Qemu-devel] [PATCH 0/2] Reduce lock contention on TCG hot-path

2016-07-02 Thread Alex Bennée
Emilio G. Cota writes: > On Fri, Jul 01, 2016 at 17:16:08 +0100, Alex Bennée wrote: > (snip) >> run 1: ret=0 (PASS), time=4.755824 (1/1) >> run 2: ret=0 (PASS), time=4.756076 (2/2) >> run 3: ret=0 (PASS), time=4.755916 (3/3) >> run 4: ret=0 (PASS), time=4.755853 (4/4) >> run 5: ret=0 (PASS), tim