Re: [Qemu-devel] [PATCH] qemu-doc.texi: Add usb sound card info

2015-08-05 Thread Markus Armbruster
Programmingkid writes: > Add info on usb sound card to qemu documentation. > > Note: please update the documentation here: > http://qemu.weilnetz.de/qemu-doc.html Since this is not of permanent interest, it belongs... > Signed-off-by: John Arbuckle > > --- ... here. > qemu-doc.texi |5

[Qemu-devel] [Bug 1481750] Re: qemu-system-ppc hangs when running -M ppce500 -bios u-boot.e500

2015-08-05 Thread thh
Looks like this has been broken by this commit here: http://git.qemu.org/?p=qemu.git;a=commitdiff;h=e6b4e5f4795b2591fd91bea671e3e22e08fd0e75 ("PPC: e500: Move CCSR and MMIO space to upper end of address space") -- You received this bug notification because you are a member of qemu- devel-ml, whic

Re: [Qemu-devel] [PATCH RFC v3 32/32] qapi-introspect: Hide type names

2015-08-05 Thread Markus Armbruster
Eric Blake writes: > On 08/04/2015 09:58 AM, Markus Armbruster wrote: >> To eliminate the temptation for clients to look up types by name >> (which are not ABI), replace all type names by meaningless strings. >> >> Reduces output of query-schema by 13 out of 85KiB. > > I'm starting to be more in

Re: [Qemu-devel] [PATCH RFC v3 30/32] qapi: New QMP command query-schema for QMP schema introspection

2015-08-05 Thread Markus Armbruster
Eric Blake writes: > On 08/04/2015 09:58 AM, Markus Armbruster wrote: >> * All type references are by name. >> > >> Dictionary argument/result or list result is an implicit type >> definition. >> > >> >> * Clients should *not* look up types by name, because type names are >> not ABI. Lo

Re: [Qemu-devel] [PATCH qemu 2/2] target-ppc: Define get_monitor_def

2015-08-05 Thread Thomas Huth
On 06/08/15 07:25, Alexey Kardashevskiy wrote: > At the moment get_monitor_def() prints only registers from monitor_defs. > However there is a lot of BOOK3S SPRs which are not in the list and > cannot be printed. > > This makes use of the new get_monitor_def() callback and prints all > registered

[Qemu-devel] [RFC PATCH v4 03/11] cpus: Reclaim vCPU objects

2015-08-05 Thread Bharata B Rao
From: Gu Zheng In order to deal well with the kvm vcpus (which can not be removed without any protection), we do not close KVM vcpu fd, just record and mark it as stopped into a list, so that we can reuse it for the appending cpu hot-add request if possible. It is also the approach that kvm guys

[Qemu-devel] [RFC PATCH v4 00/11] sPAPR CPU hotplug

2015-08-05 Thread Bharata B Rao
Hi, This is the next version of CPU hotplug support patchset for PowerPC sPAPR guests. This is a split-out from the previous version (v3) that was carrying CPU and memory hotplug together. This patchset applies on spapr-next branch of David Gibson's tree. In the previous version, I was doing CPU

[Qemu-devel] [RFC PATCH v4 09/11] spapr: Support topologies with unfilled cores

2015-08-05 Thread Bharata B Rao
QEMU currently supports CPU topologies where there can be cores which are not completely filled with all the threads as per the specifed SMT mode. Restore support for such topologies (Eg -smp 15,cores=4,threads=4) The last core will always have the deficit even when -device options are used to col

[Qemu-devel] [RFC PATCH v4 08/11] spapr: CPU hotplug support

2015-08-05 Thread Bharata B Rao
Support CPU hotplug via device-add command. Set up device tree entries for the hotplugged CPU core and use the exising EPOW event infrastructure to send CPU hotplug notification to the guest. Create only cores explicitly from boot path as well as hotplug path and let the ->plug() handler of the co

Re: [Qemu-devel] [PATCH RFC v3 30/32] qapi: New QMP command query-schema for QMP schema introspection

2015-08-05 Thread Markus Armbruster
Eric Blake writes: > On 08/04/2015 09:58 AM, Markus Armbruster wrote: >> Caution, rough edges. >> >> qapi/introspect.json defines the introspection schema. It should do >> for uses other than QMP. >> FIXME it's almost entirely devoid of comments. >> > > That part explains why this is still RFC

[Qemu-devel] [RFC PATCH v4 01/11] exec: Remove cpu from cpus list during cpu_exec_exit()

2015-08-05 Thread Bharata B Rao
CPUState *cpu gets added to the cpus list during cpu_exec_init(). It should be removed from cpu_exec_exit(). cpu_exec_init() is called from generic CPU::instance_finalize and some archs like PowerPC call it from CPU unrealizefn. So ensure that we dequeue the cpu only once. Instead of introducing

[Qemu-devel] [RFC PATCH v4 07/11] spapr: Enable CPU hotplug for pseries-2.5 and add CPU DRC DT entries

2015-08-05 Thread Bharata B Rao
Start supporting CPU hotplug from pseries-2.5 onwards. Add CPU DRC (Dynamic Resource Connector) device tree entries. Signed-off-by: Bharata B Rao --- hw/ppc/spapr.c | 23 +++ include/hw/ppc/spapr.h | 1 + 2 files changed, 24 insertions(+) diff --git a/hw/ppc/spapr.c

[Qemu-devel] [PATCH qemu 2/2] target-ppc: Define get_monitor_def

2015-08-05 Thread Alexey Kardashevskiy
At the moment get_monitor_def() prints only registers from monitor_defs. However there is a lot of BOOK3S SPRs which are not in the list and cannot be printed. This makes use of the new get_monitor_def() callback and prints all registered SPRs and fails on unregistered ones proving the user inform

Re: [Qemu-devel] [PATCH RFC v3 18/32] qapi: Replace dirty is_c_ptr() by method c_null()

2015-08-05 Thread Markus Armbruster
Eric Blake writes: > On 08/04/2015 09:58 AM, Markus Armbruster wrote: >> is_c_ptr() looks whether the end of the C text for the type looks like >> a pointer. Works, but is fragile. >> >> We now have a better tool: use QAPISchemaType method c_null(). The >> initializers for non-pointers become

Re: [Qemu-devel] [PATCH RFC v3 10/32] qapi-types: Convert to QAPISchemaVisitor, fixing flat unions

2015-08-05 Thread Markus Armbruster
Eric Blake writes: > On 08/04/2015 09:57 AM, Markus Armbruster wrote: >> Fixes flat unions to get the base's base members. Test case is from >> commit 2fc0043, in qapi-schema-test.json: >> > >> >> Flat union visitors remain broken. They'll be fixed next. >> >> Signed-off-by: Markus Armbruste

Re: [Qemu-devel] [PATCH RFC v3 02/32] qapi: New QAPISchema intermediate reperesentation

2015-08-05 Thread Markus Armbruster
Eric Blake writes: > On 08/05/2015 12:23 AM, Markus Armbruster wrote: >> Eric Blake writes: >> >>> On 08/04/2015 09:57 AM, Markus Armbruster wrote: The QAPI code generators work with a syntax tree (nested dictionaries) plus a few symbol tables (also dictionaries) on the side. > >

Re: [Qemu-devel] [PATCH 21/26] qapi: Command returning anonymous type doesn't work, outlaw

2015-08-05 Thread Markus Armbruster
Eric Blake writes: > On 08/04/2015 11:29 PM, Markus Armbruster wrote: >> Eric Blake writes: >> >>> On 08/04/2015 03:18 AM, Markus Armbruster wrote: Reproducer: with { 'command': 'user_def_cmd4', 'returns': { 'a': 'int' } } added to qapi-schema-test.json, qapi-comman

[Qemu-devel] [RFC PATCH v4 10/11] spapr: CPU hot unplug support

2015-08-05 Thread Bharata B Rao
Support hot removal of CPU for sPAPR guests by sending the hot unplug notification to the guest via EPOW interrupt. Release the vCPU object after CPU hot unplug so that vCPU fd can be parked and reused. Signed-off-by: Bharata B Rao --- hw/ppc/spapr.c | 72

[Qemu-devel] [RFC PATCH v4 04/11] cpus: Add a sync version of cpu_remove()

2015-08-05 Thread Bharata B Rao
This sync API will be used by the CPU hotplug code to wait for the CPU to completely get removed before flagging the failure to the device_add command. Sync version of this call is needed to correctly recover from CPU realization failures when ->plug() handler fails. Signed-off-by: Bharata B Rao

[Qemu-devel] [RFC PATCH v4 06/11] spapr: Create pseries-2.5 machine

2015-08-05 Thread Bharata B Rao
Add pseries-2.5 machine version. Signed-off-by: Bharata B Rao --- hw/ppc/spapr.c | 21 - 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index dfd808f..1d8a12a 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -2356,7 +2356,7 @@

[Qemu-devel] [RFC PATCH v4 02/11] exec: Do vmstate unregistration from cpu_exec_exit()

2015-08-05 Thread Bharata B Rao
cpu_exec_init() does vmstate_register and register_savevm for the CPU device. These need to be undone from cpu_exec_exit(). These changes are needed to support CPU hot removal and also to correctly fail hotplug attempts beyond max_cpus. Signed-off-by: Bharata B Rao --- exec.c | 19 ++

[Qemu-devel] [RFC PATCH v4 05/11] xics_kvm: Add cpu_destroy method to XICS

2015-08-05 Thread Bharata B Rao
XICS is setup for each CPU during initialization. Provide a routine to undo the same when CPU is unplugged. This allows reboot of a VM that has undergone CPU hotplug and unplug to work correctly. Signed-off-by: Bharata B Rao Reviewed-by: David Gibson --- hw/intc/xics.c| 12

[Qemu-devel] [RFC PATCH v4 11/11] target-ppc: Enable CPU hotplug for POWER8 CPU family

2015-08-05 Thread Bharata B Rao
Support CPU hotplug on POWER8 by enabling device_add semantics. Signed-off-by: Bharata B Rao --- target-ppc/translate_init.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index c19d630..62ef687 100644 --- a/target-ppc/translate_in

[Qemu-devel] [PATCH qemu 0/2] monitor/ppc: Print correct SPRs

2015-08-05 Thread Alexey Kardashevskiy
QEMU's monitor can only print registers described in monitor.c but in fact we got lot, lot more in POWER7/8, instead of adding all of these into monitor, we better print only registered SPR so here are the patches. Please comment. Thanks! ps. about coding style. In PPC code we name CPUPPCState*

[Qemu-devel] [PATCH qemu 1/2] monitor: Add CPU class callback to read registers for monitor

2015-08-05 Thread Alexey Kardashevskiy
At the moment the monitor only prints registers from monitor_defs. Some may not be supported but it will print those anyway, other may be missing in the list so monitor_defs needs an update every time new register is added. This defines a CPUClass callback to read various registers from CPU. Next

[Qemu-devel] [PATCH qemu] spapr: Use QEMU limit for maximum CPUs number

2015-08-05 Thread Alexey Kardashevskiy
sPAPR uses hard coded limit of maximum 255 supported CPUs which is exactly the same as QEMU-wide limit which is MAX_CPUMASK_BITS and also defined as 255. This makes use of a global CPU number limit for the "pseries" machine. In order to anticipate future increase of the MAX_CPUMASK_BITS (or to he

Re: [Qemu-devel] [RFC PATCH qemu 0/4] vfio: SPAPR IOMMU v2 (memory preregistration support)

2015-08-05 Thread Alexey Kardashevskiy
On 07/29/2015 10:27 AM, Alexey Kardashevskiy wrote: Oh, just noticed, this is missing "v4" in the subject line. Anyone, ping? Thanks On 07/20/2015 05:46 PM, Alexey Kardashevskiy wrote: Yet another try, reworked the whole patchset. Here are few patches to prepare an existing listener for

Re: [Qemu-devel] [PATCH COLO-BLOCK v8 02/18] quorum: implement block driver interfaces add/delete a BDS's child

2015-08-05 Thread Wen Congyang
On 08/05/2015 08:19 PM, Alberto Garcia wrote: > On Tue 07 Jul 2015 10:43:00 AM CEST, Wen Congyang wrote: >> Signed-off-by: Wen Congyang >> Signed-off-by: zhanghailiang >> Signed-off-by: Gonglei >> Cc: Alberto Garcia > > Sorry for being so late with this, I was on holidays during July. > >> +s

Re: [Qemu-devel] [PATCH v2 2/5] block: Avoid BlockDriverState.filename

2015-08-05 Thread Wen Congyang
On 08/06/2015 04:52 AM, Max Reitz wrote: > In places which directly pass a filename to the OS, we should not use > the filename field at all but exact_filename instead (although the > former currently equals the latter if that is set). > > In qemu-img's map command, we should be using the filename

Re: [Qemu-devel] [PATCH v2 1/5] block: Change bdrv_get_encrypted_filename()

2015-08-05 Thread Wen Congyang
On 08/06/2015 04:52 AM, Max Reitz wrote: > Instead of returning a pointer to the filename, copy it into a buffer > specified by the caller. > > Signed-off-by: Max Reitz > --- > block.c | 24 +--- > include/block/block.h | 2 +- > monitor.c | 4 +++-

[Qemu-devel] [PATCH v2 0/2] fw_cfg: documentation updates for v2.4

2015-08-05 Thread Gabriel L. Somlo
Patch 1/2 is a re-submission of an earlier v1 which may have fallen through the cracks (or gotten accidentally stuck with semi-unrelated code-change RFC patches). It documents a fix commited at 48779e501810c5046ff8af7b9cf9c99bec2928a1 Patch 2/2 documents the current MMIO register addresses on arm,

[Qemu-devel] [PATCH v2 1/2] fw_cfg: document fw_cfg_modify_iXX() update functions

2015-08-05 Thread Gabriel L. Somlo
Document the behavior of fw_cfg_modify_iXX() for leak-free update of integer fw_cfg blobs; this function was added as a bug fix with commit 48779e501810c5046ff8af7b9cf9c99bec2928a1. Currently only fw_cfg_modify_i16() is coded, but 32- and 64-bit versions may be added later if necessary. Signed-of

[Qemu-devel] [PATCH v2 2/2] fw_cfg: document MMIO registers for arm, sun4*, and ppc/mac_*

2015-08-05 Thread Gabriel L. Somlo
Signed-off-by: Gabriel Somlo --- docs/specs/fw_cfg.txt | 22 +++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/docs/specs/fw_cfg.txt b/docs/specs/fw_cfg.txt index 5bc7b96..f37e1ad 100644 --- a/docs/specs/fw_cfg.txt +++ b/docs/specs/fw_cfg.txt @@ -72,10 +72,26 @

Re: [Qemu-devel] [ARM SMBIOS V1 PATCH 0/6] SMBIOS Support for ARM

2015-08-05 Thread Jean Delvare
On Wed, 05 Aug 2015 22:39:57 +0300, Ivan Khoronzhuk wrote: > On 05.08.15 21:35, Laszlo Ersek wrote: > > The userspace tools are in a more messy state AFAICT. For example I'm > > unable to locate a *git* repository for upstream dmidecode. But, Ivan > > and Roy should know better (Cc'd). > > There i

Re: [Qemu-devel] [ARM SMBIOS V1 PATCH 0/6] SMBIOS Support for ARM

2015-08-05 Thread Ivan Khoronzhuk
Hi Laszlo On 05.08.15 21:35, Laszlo Ersek wrote: On 08/05/15 19:35, Peter Maydell wrote: On 5 August 2015 at 18:16, Laszlo Ersek wrote: On 07/28/15 08:00, Wei Huang wrote: SMBIOS tables present userful system hardware info to management applications, such as DMI tools. Even though SMBIOS was

Re: [Qemu-devel] [PATCH RFC v3 32/32] qapi-introspect: Hide type names

2015-08-05 Thread Eric Blake
On 08/05/2015 03:06 PM, Eric Blake wrote: > On 08/04/2015 09:58 AM, Markus Armbruster wrote: >> To eliminate the temptation for clients to look up types by name >> (which are not ABI), replace all type names by meaningless strings. >> >> Reduces output of query-schema by 13 out of 85KiB. > > I'm s

Re: [Qemu-devel] QEMU 2.4 for Windows - current status

2015-08-05 Thread Liviu Ionescu
> On 05 Aug 2015, at 23:30, Stefan Weil wrote: > > ... As I already said, this modification is needed for all versions > of QEMU, and it will stay unfixed in 2.4.0 which is nearly finished. your patch is already in my branch, and I already publicly released GNU ARM Eclipse QEMU for Windows 64-

Re: [Qemu-devel] [PATCH RFC v3 32/32] qapi-introspect: Hide type names

2015-08-05 Thread Eric Blake
On 08/04/2015 09:58 AM, Markus Armbruster wrote: > To eliminate the temptation for clients to look up types by name > (which are not ABI), replace all type names by meaningless strings. > > Reduces output of query-schema by 13 out of 85KiB. I'm starting to be more in favor of this patch, both for

Re: [Qemu-devel] [PATCH RFC v3 30/32] qapi: New QMP command query-schema for QMP schema introspection

2015-08-05 Thread Eric Blake
On 08/04/2015 09:58 AM, Markus Armbruster wrote: > * All type references are by name. > > Dictionary argument/result or list result is an implicit type > definition. > > > * Clients should *not* look up types by name, because type names are > not ABI. Look up the command or event you're

[Qemu-devel] [PATCH v2 5/5] iotests: Test changed Quorum filename

2015-08-05 Thread Max Reitz
After drive-mirror replacing a Quorum child, the filename of the Quorum BDS should reflect the change. This patch replaces the existing test for whether the operation did actually exchange the BDS (which simply tested whether the new BDS existed) by a test which examines the children list contained

[Qemu-devel] [PATCH v2 4/5] block: Drop BlockDriverState.filename

2015-08-05 Thread Max Reitz
That field is now only used during initialization of BlockDriverStates (opening images) and for error or warning messages. Performance is not that much of an issue here, so we can drop the field and replace its use by a call to bdrv_filename(). By doing so we can ensure the result always to be rece

[Qemu-devel] [PATCH v2 1/5] block: Change bdrv_get_encrypted_filename()

2015-08-05 Thread Max Reitz
Instead of returning a pointer to the filename, copy it into a buffer specified by the caller. Signed-off-by: Max Reitz --- block.c | 24 +--- include/block/block.h | 2 +- monitor.c | 4 +++- 3 files changed, 21 insertions(+), 9 deletions(-) diff

[Qemu-devel] [PATCH v2 3/5] block: Add bdrv_filename()

2015-08-05 Thread Max Reitz
Split the part which actually refreshes the BlockDriverState.filename field off of bdrv_refresh_filename() into a more generic function bdrv_filename(), which first calls bdrv_refresh_filename() and then stores a qemu-usable filename into the given buffer instead of BlockDriverState.filename. Sinc

[Qemu-devel] [PATCH v2 2/5] block: Avoid BlockDriverState.filename

2015-08-05 Thread Max Reitz
In places which directly pass a filename to the OS, we should not use the filename field at all but exact_filename instead (although the former currently equals the latter if that is set). In qemu-img's map command, we should be using the filename field; but since this commit prepares to remove th

[Qemu-devel] [PATCH v2 0/5] block: Drop BDS.filename

2015-08-05 Thread Max Reitz
The BDS filename field is generally only used when opening disk images or emitting error or warning messages, the only exception to this rule is the map command of qemu-img. However, using exact_filename there instead should not be a problem. Therefore, we can drop the filename field from the Block

Re: [Qemu-devel] QEMU 2.4 for Windows - current status

2015-08-05 Thread Stefan Weil
Am 05.08.2015 um 20:39 schrieb Liviu Ionescu: On 05 Aug 2015, at 19:56, Paolo Bonzini wrote: ... I am not sure why things break for Stefan... I confirm Stefan's conclusion, neither in my configuration adding #include "qemu-common.h" ... in cpu-exec.c makes any difference. however adding: #

Re: [Qemu-devel] [PATCH RFC v3 30/32] qapi: New QMP command query-schema for QMP schema introspection

2015-08-05 Thread Eric Blake
On 08/04/2015 09:58 AM, Markus Armbruster wrote: > Caution, rough edges. > > qapi/introspect.json defines the introspection schema. It should do > for uses other than QMP. > FIXME it's almost entirely devoid of comments. > That part explains why this is still RFC. > The introspection schema do

[Qemu-devel] [ANNOUNCE] QEMU 2.4.0-rc4 is now available

2015-08-05 Thread Michael Roth
Hello, On behalf of the QEMU Team, I'd like to announce the availability of the fifth release candidate for the QEMU 2.4 release. This release is meant for testing purposes and should not be used in a production environment. http://wiki.qemu.org/download/qemu-2.4.0-rc4.tar.bz2 You can help impr

[Qemu-devel] [Question] Static probe Qemu for CPU operation on KVM mode

2015-08-05 Thread Ady Wahyudi Paundu
Dear Qemu Masters, Please help. If I want to profile a VM's CPU load when running Qemu with KVM mode using static probe instrumentation, where (which file/function) should I put my trace points? I have tried to use the default trace-points (trace-events file) without any success. I have googling

Re: [Qemu-devel] [PATCH] block: don't register quorum driver if SHA256 support is unavailable

2015-08-05 Thread Sascha Silbe
Dear Peter, Peter Maydell writes: > Applied to master, thanks. Thanks everyone for the fast reviews and inclusion! Sascha -- Softwareentwicklung Sascha Silbe, Niederhofenstraße 5/1, 71229 Leonberg https://se-silbe.de/ USt-IdNr. DE281696641

Re: [Qemu-devel] [sheepdog] [PATCH] sheepdog: fix overlapping metadata update

2015-08-05 Thread Jeff Cody
On Tue, Aug 04, 2015 at 11:07:16AM +0300, Vasiliy Tolstov wrote: > 2015-08-03 3:41 GMT+03:00 Liu Yuan : > > What did you mean by 'not able to completely install'? It is a installation > > problem or something else? > > > > i have simple test that works as: > 1) boot 3.18.x kernel and initrd with s

Re: [Qemu-devel] QEMU 2.4 for Windows - current status

2015-08-05 Thread Liviu Ionescu
> On 05 Aug 2015, at 19:56, Paolo Bonzini wrote: > > ... I am not sure why things break for Stefan... I confirm Stefan's conclusion, neither in my configuration adding #include "qemu-common.h" ... in cpu-exec.c makes any difference. however adding: #if defined(_WIN64) #ifdef sigsetjmp #und

Re: [Qemu-devel] [PATCH v2 2/2] make: load only required dependency files.

2015-08-05 Thread Michael S. Tsirkin
On Wed, Aug 05, 2015 at 09:32:18PM +0300, Michael S. Tsirkin wrote: > On Wed, Aug 05, 2015 at 08:29:33PM +0300, Victor Kaplansky wrote: ... > > diff --git a/rules.mak b/rules.mak > > index 6e35c36..4551b9e 100644 > > --- a/rules.mak > > +++ b/rules.mak > > @@ -368,6 +368,6 @@ define unnest-vars > >

[Qemu-devel] RFC: ARM Semihosting, PMU, and BBV Changes

2015-08-05 Thread Christopher Covington
Hi, This series is a jumble of changes that I have found useful for creating samples of long-running applications. I do not expect any of these patches to be merged upstream as-is but I'm publishing them as a way to ask for high-level feedback, as there may very well be much better ways to achieve

[Qemu-devel] [RFC 05/14] Fixed TLB invalidate ops.

2015-08-05 Thread Christopher Covington
Prior to this patch, QEMU was only invalidating the TLB for the local processor on a TLB flush event, causing unstable behavoir in smp mode. This patch corrects the behavoir so that all TLBs are invalidated across the system. Written by Derek Hower. Signed-off-by: Christopher Covington --- targ

[Qemu-devel] [RFC 04/14] Modify load exclusive/store exclusive to use physical addresses with the monitor

2015-08-05 Thread Christopher Covington
Written by Derek Hower. Signed-off-by: Christopher Covington --- target-arm/helper-a64.h| 2 ++ target-arm/helper.c| 22 ++ target-arm/translate-a64.c | 25 +++-- 3 files changed, 47 insertions(+), 2 deletions(-) diff --git a/target-arm/helpe

[Qemu-devel] [PATCH v6 01/17] qcow2: Add new overlap check functions

2015-08-05 Thread Max Reitz
The existing qcow2 metadata overlap detection function used existing structures to determine the location of the image metadata, from plain fields such as l1_table_offset and l1_size in the BDRVQcowState, over image structures in memory such as the L1 table for the L2 tables' positions, or it even

[Qemu-devel] [PATCH v6 05/17] qcow2/overlaps: Protect refcount table

2015-08-05 Thread Max Reitz
Keep track of the refcount table in the metadata list to protect it against accidental modifications. Signed-off-by: Max Reitz Reviewed-by: Eric Blake --- block/qcow2-refcount.c | 18 ++ block/qcow2.c | 4 2 files changed, 22 insertions(+) diff --git a/block/qcow

Re: [Qemu-devel] [ARM SMBIOS V1 PATCH 0/6] SMBIOS Support for ARM

2015-08-05 Thread Laszlo Ersek
On 08/05/15 19:35, Peter Maydell wrote: > On 5 August 2015 at 18:16, Laszlo Ersek wrote: >> On 07/28/15 08:00, Wei Huang wrote: >>> SMBIOS tables present userful system hardware info to management >>> applications, such as DMI tools. Even though SMBIOS was originally >>> developed for Intel x86, i

Re: [Qemu-devel] [PATCH v2 2/2] make: load only required dependency files.

2015-08-05 Thread Michael S. Tsirkin
On Wed, Aug 05, 2015 at 08:29:33PM +0300, Victor Kaplansky wrote: > The old rules.mak loads dependency .d files using include directive > with file glob pattern "*.d". This breaks the build when build tree has > remanent *.d files from another build. > > This patch fixes this by > - loading prec

[Qemu-devel] [Bug 1481750] Re: qemu-system-ppc hangs when running -M ppce500 -bios u-boot.e500

2015-08-05 Thread Andreas Rasmusson
It is not qemu that hangs. The u-boot.e500 software falls into an eternal loop at the addresses 0x00f1f964 to 0x00f1f94c due to the registers r9 and r10 (both) being 0x0 in the newer versions and 0x40 in the working 2.2.1 version. Howerver, those values ought to have originated from the qemu

Re: [Qemu-devel] [PATCH] make: explicit dependencies for ACPI gen sources

2015-08-05 Thread Victor Kaplansky
> - Original Message - > From: "Michael S. Tsirkin" > To: "Paolo Bonzini" > Cc: "Victor Kaplansky" , qemu-devel@nongnu.org, "Richard > Henderson" , "Eduardo Habkost" > Sent: Wednesday, August 5, 2015 4:59:56 PM > Subject: Re: [PATCH] make: explicit dependencies for ACPI gen sources >

[Qemu-devel] [PATCH v6 14/17] qcow2/overlaps: Add memory usage limit

2015-08-05 Thread Max Reitz
This adds an adjustable limit for the total memory usage of the overlap prevention structures. Signed-off-by: Max Reitz --- block/qcow2-overlap.c | 183 +++--- block/qcow2.c | 2 +- block/qcow2.h | 2 +- 3 files changed, 177 inserti

Re: [Qemu-devel] [PATCH v2 2/2] make: load only required dependency files.

2015-08-05 Thread Victor kaplansky
On Wed, Aug 05, 2015 at 07:40:00PM +0200, Paolo Bonzini wrote: > > > On 05/08/2015 19:29, Victor Kaplansky wrote: > > diff --git a/hw/i386/Makefile.objs b/hw/i386/Makefile.objs > > index bd4f147..311d364 100644 > > --- a/hw/i386/Makefile.objs > > +++ b/hw/i386/Makefile.objs > > @@ -10,6 +10,8 @@

[Qemu-devel] [PATCH v6 15/17] qcow2: Add overlap structure memory size options

2015-08-05 Thread Max Reitz
Add runtime options to qcow2 to control the size of the structures used for metadata overlap prevention (one option to control the size of the bitmap cache, another one to control the total memory size limit). Signed-off-by: Max Reitz --- block/qcow2.c | 35 +-- b

[Qemu-devel] [PATCH v6 13/17] qcow2/overlaps: Add "memory limit reached" event

2015-08-05 Thread Max Reitz
Later, a mechanism to set a limit on how much memory may be used for the overlap prevention structures will be introduced. If that limit is about to be exceeded, a QMP event should be emitted. This very event is specified by this patch. Signed-off-by: Max Reitz --- docs/qmp/qmp-events.txt | 27 +

[Qemu-devel] [PATCH v6 07/17] qcow2/overlaps: Protect active L1 table

2015-08-05 Thread Max Reitz
Keep track of the active L1 table in the metadata list to protect it against accidental modifications. Signed-off-by: Max Reitz Reviewed-by: Eric Blake --- block/qcow2-cluster.c | 11 +++ block/qcow2-snapshot.c | 10 ++ block/qcow2.c | 4 3 files changed, 25 inse

Re: [Qemu-devel] [ARM SMBIOS V1 PATCH 0/6] SMBIOS Support for ARM

2015-08-05 Thread Peter Maydell
On 5 August 2015 at 18:16, Laszlo Ersek wrote: > On 07/28/15 08:00, Wei Huang wrote: >> SMBIOS tables present userful system hardware info to management >> applications, such as DMI tools. Even though SMBIOS was originally >> developed for Intel x86, it has been extended to both Itanium and >> ARM

[Qemu-devel] [RFC 03/14] Fix makefile

2015-08-05 Thread Christopher Covington
Fixes https://bugs.launchpad.net/qemu/+bug/1319493/ Signed-off-by: Christopher Covington --- Makefile | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 93af871..fcc6314 100644 --- a/Makefile +++ b/Makefile @@ -408,7 +408,11 @@ ifneq ($(CONFIG_MODU

[Qemu-devel] [RFC 13/14] Enable negative icount values for QEMU.

2015-08-05 Thread Christopher Covington
The icount setting specifies how far to shift the instruction count as a ratio of ns to tie system time to instruction count. Allow a negative value (i.e. a right shift instead of a left shift) to be used. Written by Pat Galizia. Signed-off-by: Christopher Covington --- cpus.c | 17

[Qemu-devel] [PATCH v6 16/17] qapi: Expose new qcow2 overlap check options

2015-08-05 Thread Max Reitz
Expose the two new options for controlling the memory usage of the overlap check implementation via QAPI. Signed-off-by: Max Reitz --- qapi/block-core.json | 31 +++ 1 file changed, 31 insertions(+) diff --git a/qapi/block-core.json b/qapi/block-core.json index 7b2ef

Re: [Qemu-devel] FW: about the bdrv_invalidate_cache_all()

2015-08-05 Thread Paolo Bonzini
On 05/08/2015 17:21, Li, Liang Z wrote: > I found the function bdrv_invalidate_cache_all() in the > process_incoming_migration_co() takes more the 10ms when doing live > migration with shared storage, which prolong the service down time. > > The bdrv_invalidate_cache_all() is needed when doing t

[Qemu-devel] [RFC 09/14] Implement remaining PMU functionality

2015-08-05 Thread Christopher Covington
This adds logic to increment PMEVCNTR's based on different event inputs, implements all remaining CP registers, and triggers an interrupt on event overflow. Written by Aaron Lindsay. Signed-off-by: Christopher Covington --- target-arm/cpu-qom.h | 2 + target-arm/cpu.c | 2 + target-arm/

[Qemu-devel] [PATCH v6 12/17] qcow2: Use new metadata overlap check function

2015-08-05 Thread Max Reitz
Make the static new overlap check function global and drop the old function. Signed-off-by: Max Reitz --- block/qcow2-overlap.c | 8 +--- block/qcow2-refcount.c | 120 - 2 files changed, 2 insertions(+), 126 deletions(-) diff --git a/block/qcow

[Qemu-devel] [PATCH v6 17/17] iotests: Test qcow2's overlap check memory limit

2015-08-05 Thread Max Reitz
This patch adds some test cases for the memory limit concerning the in-memory structures used to detect and prevent accidental metadata overlaps. Signed-off-by: Max Reitz --- tests/qemu-iotests/060 | 222 + tests/qemu-iotests/060.out | 47

Re: [Qemu-devel] [PATCH v2 2/2] make: load only required dependency files.

2015-08-05 Thread Paolo Bonzini
On 05/08/2015 19:29, Victor Kaplansky wrote: > The old rules.mak loads dependency .d files using include directive > with file glob pattern "*.d". This breaks the build when build tree has > remanent *.d files from another build. > > This patch fixes this by > - loading precise list of .d file

[Qemu-devel] [PATCH v6 09/17] qcow2/overlaps: Protect snapshot table

2015-08-05 Thread Max Reitz
Keep track of the snapshot table in the metadata list to protect it against accidental modifications. Signed-off-by: Max Reitz Reviewed-by: Eric Blake --- block/qcow2-snapshot.c | 10 ++ block/qcow2.c | 6 ++ 2 files changed, 16 insertions(+) diff --git a/block/qcow2-snap

[Qemu-devel] [PATCH v6 11/17] qcow2/overlaps: Protect inactive L2 tables

2015-08-05 Thread Max Reitz
Keep track of the inactive L2 tables in the metadata list to protect them against accidental modifications. Signed-off-by: Max Reitz --- block/qcow2-refcount.c | 20 block/qcow2-snapshot.c | 43 --- 2 files changed, 60 insertions(+), 3

[Qemu-devel] [PATCH v6 06/17] qcow2/overlaps: Protect refcount blocks

2015-08-05 Thread Max Reitz
Keep track of the refcount blocks in the metadata list to protect them against accidental modifications. Signed-off-by: Max Reitz Reviewed-by: Eric Blake --- block/qcow2-refcount.c | 38 +- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/block/q

[Qemu-devel] [PATCH v6 10/17] qcow2/overlaps: Protect inactive L1 tables

2015-08-05 Thread Max Reitz
Keep track of the inactive L1 tables in the metadata list to protect them against accidental modifications. Signed-off-by: Max Reitz Reviewed-by: Eric Blake --- block/qcow2-snapshot.c | 25 + 1 file changed, 25 insertions(+) diff --git a/block/qcow2-snapshot.c b/block/q

[Qemu-devel] [PATCH v6 08/17] qcow2/overlaps: Protect active L2 tables

2015-08-05 Thread Max Reitz
Keep track of the active L2 tables in the metadata list to protect them against accidental modifications. Signed-off-by: Max Reitz --- block/qcow2-cluster.c | 2 ++ block/qcow2-refcount.c | 6 ++ block/qcow2-snapshot.c | 21 + block/qcow2.c | 8 +++- 4 fi

[Qemu-devel] [PATCH v6 02/17] qcow2: Pull up overlap check option evaluation

2015-08-05 Thread Max Reitz
Pull up the absorption of the qcow2-relevant command line options and the evaluation of the overlap check options in qcow2_open(). Signed-off-by: Max Reitz Reviewed-by: Eric Blake --- block/qcow2.c | 96 +-- 1 file changed, 48 insertions(+

[Qemu-devel] [PATCH v6 03/17] qcow2: Create metadata list

2015-08-05 Thread Max Reitz
Create and destroy the metadata list on creation and destruction of a qcow2 BDS, respectively. Skip creation if no overlap checks should be performed. Signed-off-by: Max Reitz --- block/qcow2.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/block/qcow2.c b/block/qcow2.c index 9

[Qemu-devel] [PATCH v6 00/17] qcow2: Add new overlap check functions

2015-08-05 Thread Max Reitz
This is a continuation of previous versions of this series. v2's cover letter was the most elaborate, which you can find here (includes benchmarks): http://lists.nongnu.org/archive/html/qemu-devel/2014-11/msg03430.html See patch 1 for an explanation of why this series exists and what it does. Patc

[Qemu-devel] [PATCH v6 04/17] qcow2/overlaps: Protect image header

2015-08-05 Thread Max Reitz
Enter the image header into the metadata list to protect it against accidental modifications. Signed-off-by: Max Reitz Reviewed-by: Eric Blake --- block/qcow2.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/block/qcow2.c b/block/qcow2.c index d30d008..9815325 100644 --- a/block/qcow2.c

[Qemu-devel] [RFC 01/14] Make unknown semihosting calls non-fatal

2015-08-05 Thread Christopher Covington
Signed-off-by: Christopher Covington --- target-arm/arm-semi.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/target-arm/arm-semi.c b/target-arm/arm-semi.c index a8b83e6..bcc70ec 100644 --- a/target-arm/arm-semi.c +++ b/target-arm/arm-semi.c @@ -186,8 +186,6 @@ static

[Qemu-devel] [PATCH v2 2/2] make: load only required dependency files.

2015-08-05 Thread Victor Kaplansky
The old rules.mak loads dependency .d files using include directive with file glob pattern "*.d". This breaks the build when build tree has remanent *.d files from another build. This patch fixes this by - loading precise list of .d files made from *.o and *.mo. - specifying explicit list of r

[Qemu-devel] [PATCH v2 1/2] make: fix where dependency *.d are stored.

2015-08-05 Thread Victor Kaplansky
In rules like "bar/%.o: %.c" there is a difference between $(*D) and $(@D). It is cleaner to generate *.d next to appropriate *.o, because it allows precise including of dependency info from .d files. As a hack, we also touch two sources for generated *.hex files. This is to ensure *.hex rebuild,

[Qemu-devel] [RFC 08/14] Add instruction-counting infrastructure to target-arm

2015-08-05 Thread Christopher Covington
This (partially) divorces counting instructions from basic block collection so instructions can be counted without the bbv plugin being enabled. Written by Aaron Lindsay. Signed-off-by: Christopher Covington --- include/exec/cpu-defs.h| 2 ++ target-arm/helper.c| 43 +++

[Qemu-devel] [PATCH v2 0/2] make: Cleanup and fix of loading of dependency info

2015-08-05 Thread Victor Kaplansky
Hi, sometimes the make fails when one switches between commits without running "make clean". This is caused by loading old *.d dependency info files and is harmful for autogenerated sources with their own includes. This situation may significantly slow down the process of git bisect. These two

[Qemu-devel] [RFC 02/14] Added semihosting support for A64 in full-system mode

2015-08-05 Thread Christopher Covington
This is for full-system only; not implemented in user mode Written by Derek Hower. Signed-off-by: Christopher Covington --- include/exec/softmmu-semi.h | 21 ++- target-arm/arm-semi.c | 142 target-arm/cpu.h| 3 +- target-arm

Re: [Qemu-devel] [ARM SMBIOS V1 PATCH 0/6] SMBIOS Support for ARM

2015-08-05 Thread Laszlo Ersek
On 07/28/15 08:00, Wei Huang wrote: > SMBIOS tables present userful system hardware info to management > applications, such as DMI tools. Even though SMBIOS was originally > developed for Intel x86, it has been extended to both Itanium and > ARM (32bit & 64bit). More and more ARM server releases,

Re: [Qemu-devel] [PATCH RFC v3 29/32] qapi: Pseudo-type '**' is now unused, drop it

2015-08-05 Thread Eric Blake
On 08/04/2015 09:58 AM, Markus Armbruster wrote: > 'gen': false needs to stay for now, because netdev_add is still using > it. And the next patch will use it too. > > Signed-off-by: Markus Armbruster > --- > docs/qapi-code-gen.txt| 18 ++ > scripts/qapi.py

Re: [Qemu-devel] Logging number of translated instructions per basic block

2015-08-05 Thread Christopher Covington
Hi Anthony, On 07/28/2015 05:20 PM, Anthony Carno wrote: > Hi there, > > As the subject of my email suggests, is there a way to log the number of > translated instructions per basic block? I've dug into the debug code a bit > (specifically /target_disas /and the arch-specific /print_insn_*/) and

Re: [Qemu-devel] [PATCH RFC v3 18/32] qapi: Replace dirty is_c_ptr() by method c_null()

2015-08-05 Thread Eric Blake
On 08/04/2015 09:58 AM, Markus Armbruster wrote: > is_c_ptr() looks whether the end of the C text for the type looks like > a pointer. Works, but is fragile. > > We now have a better tool: use QAPISchemaType method c_null(). The > initializers for non-pointers become prettier: 0, false or the >

Re: [Qemu-devel] Segmentation Fault while running tests.

2015-08-05 Thread Alex Bennée
Peter Maydell writes: > On 4 August 2015 at 22:21, Julio Faracco wrote: >> Hi guys. >> >> I'm trying to run the QEMU tests for i386 and x86_64 architectures but >> they are returning some errors. >> I'm using the most update version from git tree and my system is Ubuntu >> 14.04. >> Take a loo

Re: [Qemu-devel] QEMU 2.4 for Windows - current status

2015-08-05 Thread Paolo Bonzini
On 05/08/2015 18:51, Liviu Ionescu wrote: > >> On 05 Aug 2015, at 14:03, Stefan Weil wrote: >> >> Fix sigsetjmp for w64 >> http://repo.or.cz/w/qemu/ar7.git/commit/8fa9c07c9a33174905e67589bea6be3e278712cb > > > I tried to apply your patch to my branch and I got: > > Running QEMU make install.

Re: [Qemu-devel] [PATCH RFC v3 23/32] qapi: De-duplicate parameter list generation

2015-08-05 Thread Eric Blake
On 08/04/2015 09:58 AM, Markus Armbruster wrote: > Generated qapi-event.[ch] lose line breaks. No change otherwise. > > Signed-off-by: Markus Armbruster --- > scripts/qapi-commands.py | 11 ++- scripts/qapi-event.py| > 18 +++--- scripts/qapi.py | 16 +

[Qemu-devel] [RFC 14/14] bbvec: Properly detect conditional thumb2 branching instructions

2015-08-05 Thread Christopher Covington
Add bbvec detection of thumb2 branch instructions via a stripped-down version of the thumb2 instruction decoding logic. Unfortunately, this code still called into disas_neon_ls_insn(), which is apparently not free from side effects. Therefore, calling into this function twice (once in the added bbv

[Qemu-devel] [RFC 06/14] Added support for block profiling for AArch32 and Aarch64

2015-08-05 Thread Christopher Covington
Blocks are split on all branch instructions. Code assumes a translation block does not end in a branch. When a branch instruction is identified, gen_store_is_jmp(1) is called to indicate that a split should happen on this instruction. The exit notifier is used to finalize the block profiler, ensuri

  1   2   >