Re: [Qemu-devel] [PATCH v4 2/3] arm: qmp: add query-gic-capabilities interface

2016-03-19 Thread Peter Xu
On Wed, Mar 16, 2016 at 10:24:39AM +, Peter Maydell wrote: > On 8 March 2016 at 07:36, Peter Xu wrote: > > diff --git a/target-arm/machine.c b/target-arm/machine.c > > index 03a73d9..813909e 100644 > > --- a/target-arm/machine.c > > +++ b/target-arm/machine.c > > @@ -5,6

Re: [Qemu-devel] [PATCH 3/3] hw/net/spapr_llan: Enable the RX buffer pools by default for new machines

2016-03-19 Thread David Gibson
On Wed, Mar 16, 2016 at 01:16:51PM +0100, Thomas Huth wrote: > RX buffer pools are now enabled by default for new machine types. > For older machine types, they are still disabled to avoid breaking > migration. > > Signed-off-by: Thomas Huth Reviewed-by: David Gibson

Re: [Qemu-devel] [PATCH v3 00/13] tests: Introducing docker tests

2016-03-19 Thread Fam Zheng
On Thu, 03/17 10:38, Alex Bennée wrote: > > Daniel P. Berrange writes: > > > On Fri, Mar 11, 2016 at 04:16:58PM +, Alex Bennée wrote: > >> > >> Fam Zheng writes: > >> > >> > v3 changes: > >> > >> I think we are almost there. There a just a few tweaks

Re: [Qemu-devel] [PATCH] loader: fix potential memory leak

2016-03-19 Thread Michael Tokarev
24.02.2016 12:12, Cao jin wrote: > +if (fw_dir) { > +g_free(rom->fw_dir); > +g_free(rom->fw_file); > +} Applied to -trivial, thanks! /mjt

Re: [Qemu-devel] [PATCH 6/9] log: log QMP commands and replies

2016-03-19 Thread Denis V. Lunev
On 03/14/2016 07:40 PM, Paolo Bonzini wrote: On 14/03/2016 17:16, Denis V. Lunev wrote: BTW, I'm not against adding this to QEMU in general - just pointing out that in the context of libvirt usage reference in the commit message, it is not really needed. I'm totally ambivalent wrt adding this

[Qemu-devel] [PATCH] vpc: use current_size field for XenServer VHD images

2016-03-19 Thread Stefan Hajnoczi
The vpc driver has two methods of determining virtual disk size. The correct one to use depends on the software that generated the image file. Add the XenServer creator_app signature so that image size is correctly detected for those images. Reported-by: Grant Wu

[Qemu-devel] Is 'hwclock -u -s' in a modern Linux guest necessary?

2016-03-19 Thread Richard W.M. Jones
I've been examining the time taken to launch the libguestfs appliance[1]. One of the commands we run in our custom init is: hwclock -u -s This takes 0.3 seconds, which is over 10% of the total launch time, and as far as I can tell it does nothing useful. It was added many years ago, and no

[Qemu-devel] [PATCH v2 03/16] block: introduce bdrv_no_throttling_begin/end

2016-03-19 Thread Paolo Bonzini
Extract the handling of throttling from bdrv_flush_io_queue. Signed-off-by: Paolo Bonzini --- block.c | 1 - block/io.c| 56 +-- block/throttle-groups.c | 4 include/block/block_int.h |

[Qemu-devel] [PULL 17/40] ivshmem: Failed realize() can leave migration blocker behind

2016-03-19 Thread Markus Armbruster
If pci_ivshmem_realize() fails after it created its migration blocker, the blocker is left in place. Fix that by creating it last. Likewise, if it fails after it called fifo8_create(), it leaks fifo memory. Fix that the same way. Signed-off-by: Markus Armbruster

[Qemu-devel] [PATCH v4 02/17] block: Use blk_next() in block-backend.c

2016-03-19 Thread Max Reitz
Instead of iterating directly through blk_backends, we can use blk_next() instead. This gives us some abstraction from the list itself which we can use to rename it, for example. Signed-off-by: Max Reitz --- block/block-backend.c | 12 ++-- 1 file changed, 6

[Qemu-devel] [Bug 1558175] Re: virtio: vm killed (Guest moved used index)

2016-03-19 Thread Laszlo Ersek (Red Hat)
(The iPXE commit in question is 755d2b8f6be6.) -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1558175 Title: virtio: vm killed (Guest moved used index) Status in QEMU: New Bug description:

Re: [Qemu-devel] [PATCH] vfio/pci: replace 1 with PCI_CAP_LIST_NEXT to make code self-explain

2016-03-19 Thread Wei Yang
On Wed, Mar 16, 2016 at 12:52:52PM +0100, Paolo Bonzini wrote: > > >On 16/03/2016 12:27, Michael Tokarev wrote: >>> > for (tmp = pdev->config[PCI_CAPABILITY_LIST]; tmp; >>> > - tmp = pdev->config[tmp + 1]) { >>> > + tmp = pdev->config[tmp + PCI_CAP_LIST_NEXT]) { >>> > -

Re: [Qemu-devel] [PATCH v4 2/3] arm: qmp: add query-gic-capabilities interface

2016-03-19 Thread Peter Maydell
On 17 March 2016 at 04:09, Peter Xu wrote: > Thanks for the review comments. Do you have any suggestion on which > file should I add this in (or create a new one)? I failed to figure > it out myself. :( I suggest target-arm/monitor.c (we have a monitor.c for other target-*

[Qemu-devel] [PATCH 12/15] nvdimm acpi: support Get Namespace Label Size function

2016-03-19 Thread Xiao Guangrong
Function 4 is used to get Namespace label size Signed-off-by: Xiao Guangrong --- hw/acpi/nvdimm.c | 130 +-- 1 file changed, 126 insertions(+), 4 deletions(-) diff --git a/hw/acpi/nvdimm.c b/hw/acpi/nvdimm.c

[Qemu-devel] [PULL 0/5] ui: input-linux + spice fixes, switch cocoa to QKeyCode

2016-03-19 Thread Gerd Hoffmann
Hi, Here comes the ui patch queue, with input-linux and spice fixes. Most notably this changes the input-linux command line as it is switched over to -object instead of adding a new switch. Also with the first part (host side in cocoa) for switching mac kbd handling over to QKeyCode, so we are

[Qemu-devel] [PATCH 06/20] xen_disk: Call blk_set_enable_write_cache() explicitly

2016-03-19 Thread Kevin Wolf
Signed-off-by: Kevin Wolf --- hw/block/xen_disk.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hw/block/xen_disk.c b/hw/block/xen_disk.c index 635328f..c358709 100644 --- a/hw/block/xen_disk.c +++ b/hw/block/xen_disk.c @@ -888,12 +888,14 @@ static int

[Qemu-devel] [PATCH 09/20] block: Handle flush error in bdrv_pwrite_sync()

2016-03-19 Thread Kevin Wolf
We don't want to silently ignore a flush error. Also, there is little point in avoiding the flush for writethrough modes and once WCE is moved to the BB layer, we definitely need the flush here because bdrv_pwrite() won't involve one any more. Signed-off-by: Kevin Wolf ---

[Qemu-devel] [PATCH 05/15] acpi: add aml_object_type

2016-03-19 Thread Xiao Guangrong
Implement ObjectType which is used by NVDIMM _DSM method in later patch Signed-off-by: Xiao Guangrong --- hw/acpi/aml-build.c | 8 include/hw/acpi/aml-build.h | 1 + 2 files changed, 9 insertions(+) diff --git a/hw/acpi/aml-build.c

Re: [Qemu-devel] [PATCH v12 2/3] quorum: implement bdrv_add_child() and bdrv_del_child()

2016-03-19 Thread Wen Congyang
On 03/17/2016 05:10 PM, Alberto Garcia wrote: > On Thu 17 Mar 2016 02:22:40 AM CET, Wen Congyang wrote: >> @@ -81,6 +82,8 @@ typedef struct BDRVQuorumState { >> bool rewrite_corrupted;/* true if the driver must rewrite-on-read >> corrupted >>

Re: [Qemu-devel] [PATCH V6 1/2] net/filter-mirror: implement filter-redirector

2016-03-19 Thread Jason Wang
On 03/17/2016 03:50 PM, Li Zhijian wrote: >> >> +static void filter_redirector_fini(Object *obj) >> +{ >> +MirrorState *s = FILTER_REDIRECTOR(obj); >> + >> +qemu_chr_add_handlers(s->chr_in, NULL, NULL, NULL, NULL); > > hi, Jason > Do we reset the chardev handler here is reasonable ? >

[Qemu-devel] [PATCH v5 1/5] arm: qmp: add GICCapability struct

2016-03-19 Thread Peter Xu
Define new struct to describe whether we support specific GIC version. Signed-off-by: Peter Xu --- qapi-schema.json | 22 ++ 1 file changed, 22 insertions(+) diff --git a/qapi-schema.json b/qapi-schema.json index f253a37..da9671a 100644 ---

Re: [Qemu-devel] [PATCH v5 1/4] ui/cocoa.m: switch to QKeyCode

2016-03-19 Thread Peter Maydell
On 18 March 2016 at 07:58, Gerd Hoffmann wrote: > On Di, 2016-03-15 at 13:14 -0400, Programmingkid wrote: >> This patch removes the pc/xt keycode map and replaces it with the QKeyCode >> keymap. >> >> Signed-off-by: John Arbuckle >> Reviewed-by:

[Qemu-devel] Interested in QEMU Poject for Outreachy 2016

2016-03-19 Thread Veronia Bahaa
Hello, My name is Veronia. I'm a graduate student studying Computer and Systems Engineering. I have used QEMU in my undergraduate graduation project and I'm very interested in contributing to it through Outreachy. I'm interested in the qtest-os project. Could you point me to any additional

Re: [Qemu-devel] [PATCH 2/3] hw/net/spapr_llan: Fix receive buffer handling for better performance

2016-03-19 Thread David Gibson
On Thu, Mar 17, 2016 at 04:15:38PM +0100, Thomas Huth wrote: > On 17.03.2016 08:30, Thomas Huth wrote: > > On 17.03.2016 07:23, David Gibson wrote: > >> On Wed, Mar 16, 2016 at 01:16:50PM +0100, Thomas Huth wrote: > >>> > >>> This patch introduces an alternate way of handling the receive > >>>

[Qemu-devel] [PULL 14/40] ivshmem: Drop ivshmem_event() stub

2016-03-19 Thread Markus Armbruster
Signed-off-by: Markus Armbruster Reviewed-by: Marc-André Lureau Message-Id: <1458066895-20632-15-git-send-email-arm...@redhat.com> --- hw/misc/ivshmem.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/hw/misc/ivshmem.c

Re: [Qemu-devel] [PATCH] config.status: Pass extra parameters

2016-03-19 Thread Dr. David Alan Gilbert
Can someone pick this tiny patch up that I sent in January: (adding in qemu-trivial) Dave * Dr. David Alan Gilbert (git) (dgilb...@redhat.com) wrote: > From: "Dr. David Alan Gilbert" > > This allows you to do: > ./config.status --the-option-you-forgot > >

Re: [Qemu-devel] [PATCH v4] socket: Allocating Large sized arrays to heap

2016-03-19 Thread Stefan Hajnoczi
On Thu, Mar 17, 2016 at 11:50:15PM +0100, Paolo Bonzini wrote: > > > On 17/03/2016 16:31, Pooja Dhannawat wrote: > > > > > > On Thu, Mar 17, 2016 at 8:20 PM, Stefan Hajnoczi > > wrote: > > > > On Tue, Mar 15, 2016 at 09:29:58PM +0530, Pooja

Re: [Qemu-devel] [PATCH 00/17] ppc: preparing pnv landing

2016-03-19 Thread Cédric Le Goater
On 03/17/2016 03:45 AM, David Gibson wrote: > On Wed, Mar 16, 2016 at 10:08:19AM +0100, Cédric Le Goater wrote: >> On 03/16/2016 02:19 AM, David Gibson wrote: >>> On Tue, Mar 15, 2016 at 09:11:31AM +0100, Cédric Le Goater wrote: On 03/15/2016 01:39 AM, David Gibson wrote: > On Mon, Mar

[Qemu-devel] [PATCH 25/49] mips: use MIPSCPU instead of CPUMIPSState

2016-03-19 Thread Paolo Bonzini
This changes a cpu.h dependency into a cpu-qom.h dependency. Signed-off-by: Paolo Bonzini --- hw/mips/cputimer.c| 4 +++- hw/mips/mips_fulong2e.c | 4 ++-- hw/mips/mips_int.c| 3 ++- hw/mips/mips_jazz.c | 4 ++-- hw/mips/mips_malta.c | 9

[Qemu-devel] [PATCH] qdev_try_create(): Assert that devices we put onto the system bus are SysBusDevices

2016-03-19 Thread Peter Maydell
If qdev_try_create() is passed NULL for the bus, it will automatically put the newly created device onto the default system bus. However if the device is not actually a SysBusDevice then this will result in later crashes (for instance when running the monitor "info qtree" command) because code

[Qemu-devel] [PATCH 1/2] trace: do not always call exit() in trace_enable_events

2016-03-19 Thread Denis V. Lunev
The problem is that virsh qemu-monitor-command --hmp VM log trace:help forces QEMU to exit even when running VM normally. Signed-off-by: Denis V. Lunev CC: Stefan Hajnoczi Reviewed-by: Paolo Bonzini --- trace/control.c | 5 - 1

Re: [Qemu-devel] [PATCH 00/15] Clean up around osdep.h and qemu-common.h

2016-03-19 Thread Markus Armbruster
Paolo Bonzini writes: > On 15/03/2016 16:03, Markus Armbruster wrote: >> This series tackles two issues: >> >> * qapi/error.h and therefore qapi-types.h get included into every file >> via qemu/osdep.h. Touch the QAPI schema, recompile the world. As >> the QAPI

Re: [Qemu-devel] [PATCH v2] Sort the fw_cfg file list

2016-03-19 Thread Paolo Bonzini
On 16/03/2016 16:21, Corey Minyard wrote: > One more thing here. I've realized that this is used for > non-x86, too, and I'm wondering how much those matter. > It's going to be really hard to figure out an order for these, > as different boards/arches use the same names and install > them in

Re: [Qemu-devel] Our use of #include is undisciplined, and what to do about it

2016-03-19 Thread Dr. David Alan Gilbert
* Paolo Bonzini (pbonz...@redhat.com) wrote: > On 17/03/2016 17:29, Dr. David Alan Gilbert wrote: > > OK, so I see TraceEvent has a TraceEventID field; so yes that works easily; > > it turns out to be a little more expensive though since what was a: > > > >trace_events_dstate[id] > > > > is

Re: [Qemu-devel] [Qemu-block] [PATCH v16 2/8] Backup: clear all bitmap when doing block checkpoint

2016-03-19 Thread Jeff Cody
On Fri, Mar 11, 2016 at 06:34:09PM +0800, Changlong Xie wrote: > From: Wen Congyang > > Signed-off-by: Wen Congyang > Signed-off-by: zhanghailiang > Signed-off-by: Gonglei > Signed-off-by:

Re: [Qemu-devel] [PATCH v2] vl.c: disallow command line fw cfg without opt/

2016-03-19 Thread Laszlo Ersek
On 03/17/16 14:30, Paolo Bonzini wrote: > On 17/03/2016 14:13, Michael S. Tsirkin wrote: >> OVMF: >> Can use the compatible opt/ovmf/ for now. [snip] >> Long term: Gradually transition OVMF to look up paths in usr/org.uefi/: >> if nothing is found there, look up in opt/ovmf/ for

Re: [Qemu-devel] Ubuntu 14.04 LTS Arm for Raspberry - QEMU Support

2016-03-19 Thread Andrew Baumann
Hi Vincenzo, > From: Vincenzo Calabrò [mailto:muawi...@moosth.net] > Sent: Wednesday, 16 March 2016 12:39 PM [...] > 1. I'm using the "official" arm ubuntu 14.04 > (https://wiki.ubuntu.com/ARM/RaspberryPi) - you can download the image from > that link and follow the instruction to flash a SD

Re: [Qemu-devel] [PATCH 2/5] trace: [all] Add "guest_vmem" event

2016-03-19 Thread Peter Maydell
On 23 February 2016 at 18:22, Lluís Vilanova wrote: > Signed-off-by: Lluís Vilanova > +### Guest events, keep at bottom > + > +# @vaddr: Access' virtual address. > +# @size : Access' size (bytes). > +# @store: Whether the access is a store. > +# > +#

[Qemu-devel] [PATCH] char: ensure all clients are in non-blocking mode

2016-03-19 Thread Daniel P. Berrange
Only some callers of tcp_chr_new_client are putting the socket client into non-blocking mode. Move the call to qio_channel_set_blocking() into the tcp_chr_new_client method to guarantee that all code paths set non-blocking mode Reported-by: Andrew Baumann

Re: [Qemu-devel] [PATCH 08/16] blockjob: introduce .drain callback for jobs

2016-03-19 Thread Stefan Hajnoczi
On Tue, Feb 16, 2016 at 06:56:20PM +0100, Paolo Bonzini wrote: > This is required to decouple block jobs from running in an > AioContext. With multiqueue block devices, a BlockDriverState > does not really belong to a single AioContext. > > The solution is to first wait until all I/O operations

[Qemu-devel] [PATCH v4 11/17] blockdev: Remove blk_hide_on_behalf_of_hmp_drive_del()

2016-03-19 Thread Max Reitz
We can basically inline it in hmp_drive_del(); monitor_remove_blk() is called already, so we just need to call bdrv_make_anon(), too. Signed-off-by: Max Reitz --- block/block-backend.c | 17 - blockdev.c | 11 ++-

[Qemu-devel] [PATCH 0/3] hw/net/spapr_llan: Fix bad RX performance of the spapr-vlan device

2016-03-19 Thread Thomas Huth
These patches fix the bad receive performance of the spapr-vlan device by introducing proper receive buffer pools of different sizes. Details can be found in the patch description of the second patch. David: Not sure whether this is still suitable for QEMU 2.6 since we're in soft-freeze already.

[Qemu-devel] Timer interrupts for -M raspi2

2016-03-19 Thread Antonio Huete Jiménez
Hi, I am experiencing what I think it's an issue with -M raspi2 and interrupts in a baremetal application. According to this document (https://www.raspberrypi.org/documentation/hardware/raspberrypi/bcm2836/QA7_rev3.4.pdf), and if I understood it correctly, you can enable timer interrupts

Re: [Qemu-devel] Our use of #include is undisciplined, and what to do about it

2016-03-19 Thread Stefan Hajnoczi
On Wed, Mar 16, 2016 at 06:27:48PM +, Dr. David Alan Gilbert wrote: > * Stefan Hajnoczi (stefa...@redhat.com) wrote: > > On Tue, Mar 15, 2016 at 01:56:47PM +, Dr. David Alan Gilbert wrote: > > > > This would put trace_foo() in generated-tracers-virtio-blk.h and > > > > trace_bar() in

Re: [Qemu-devel] [PATCH 9/9] hw/arm: QOM'ify versatilepb.c

2016-03-19 Thread Peter Maydell
On 7 March 2016 at 07:05, xiaoqiang zhao wrote: > Drop the use of old SysBus init function and use instance_init > > Signed-off-by: xiaoqiang zhao > --- > hw/arm/versatilepb.c | 13 ++--- > 1 file changed, 6 insertions(+), 7 deletions(-)

Re: [Qemu-devel] [PATCH 2/3] hw/net/spapr_llan: Fix receive buffer handling for better performance

2016-03-19 Thread Thomas Huth
On 17.03.2016 08:30, Thomas Huth wrote: > On 17.03.2016 07:23, David Gibson wrote: >> On Wed, Mar 16, 2016 at 01:16:50PM +0100, Thomas Huth wrote: >>> >>> This patch introduces an alternate way of handling the receive >>> buffers of the spapr-vlan device, resulting in much better >>> receive

[Qemu-devel] [PATCH 3/5] tcg: always keep jump target and tb->jmp_next consistent

2016-03-19 Thread sergey . fedorov
From: Paolo Bonzini Simple code simplification. Signed-off-by: Paolo Bonzini Signed-off-by: Sergey Fedorov --- translate-all.c | 19 +-- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git

[Qemu-devel] [Bug 1558175] Re: virtio: vm killed (Guest moved used index)

2016-03-19 Thread Laszlo Ersek (Red Hat)
Stefan, I too had the same immediate idea upon seeing this bug report. But, after I skimmed the DPDK code briefly, I think it does reset the virtio-net device correctly, before it tries to use it. Instead, at least based on the extensive log that Julien pasted, I believe the following happens:

[Qemu-devel] [PULL 12/40] ivshmem: Compile debug prints unconditionally to prevent bit-rot

2016-03-19 Thread Markus Armbruster
Signed-off-by: Markus Armbruster Reviewed-by: Marc-André Lureau Message-Id: <1458066895-20632-13-git-send-email-arm...@redhat.com> --- hw/misc/ivshmem.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git

[Qemu-devel] [PATCH v5 14/28] migration: convert tcp socket protocol to use QIOChannel

2016-03-19 Thread Daniel P. Berrange
Drop the current TCP socket migration driver and extend the new generic socket driver to cope with the TCP address format Reviewed-by: Dr. David Alan Gilbert Signed-off-by: Daniel P. Berrange --- migration/Makefile.objs | 2 +- migration/socket.c

Re: [Qemu-devel] [PATCH] target-tilegx: Support dumping working flow instructions and registers

2016-03-19 Thread Chen Gang
Hello all: It is only for analyzing issues, I guess it is helpful, so I send it, welcome any other ideas, suggestions, and completions. And next, I shall continue to improve the floating point instruction features: "remove (u)int64_to_float64 from fdouble implementation". Thanks. On 3/16/16

Re: [Qemu-devel] [PATCH] hw/acpi: fix GSI links UID

2016-03-19 Thread Michael S. Tsirkin
On Wed, Mar 16, 2016 at 02:17:04PM +0200, Marcel Apfelbaum wrote: > On 03/15/2016 07:27 PM, Paolo Bonzini wrote: > > > > > >On 13/03/2016 12:40, Marcel Apfelbaum wrote: > >>According to the ACPI spec, each UID must be unique. > >>Use the irq number as UID for GSI links. > >> > >>Suggested-by:

[Qemu-devel] [PULL 2/2] MAINTAINERS: Fix typo, block/stream.h -> block/stream.c

2016-03-19 Thread Jeff Cody
There is no block/stream.h, the intended filename is block/stream.c instead. Signed-off-by: Jeff Cody Reviewed-by: Fam Zheng Message-id: b9feeac95301c1b0b1c28a485da5e3781370c31a.1457578261.git.jc...@redhat.com --- MAINTAINERS | 2 +- 1 file changed, 1

[Qemu-devel] [PATCH v3 08/10] ppc: Add POWER8 IAMR register

2016-03-19 Thread Cédric Le Goater
From: Benjamin Herrenschmidt With appropriate AMR-like masks. Not actually used by the translation logic at that point Signed-off-by: Benjamin Herrenschmidt [clg: changed spr_register_hv(SPR_IAMR) to spr_register_kvm_hv(SPR_IAMR)

Re: [Qemu-devel] [PULL v2 00/13] Merge crypto code for LUKS encryption

2016-03-19 Thread Peter Maydell
On 17 March 2016 at 14:43, Daniel P. Berrange wrote: > The following changes since commit 8c4575472494a5dfedfe05e7b58ca9ce3872ad56: > > Merge remote-tracking branch 'remotes/ehabkost/tags/machine-pull-request' > into staging (2016-03-17 08:52:58 +) > > are available in

[Qemu-devel] [PULL 09/29] blockdev: Rename blk_backends

2016-03-19 Thread Kevin Wolf
From: Max Reitz The blk_backends list does not contain all BlockBackends but only the ones which are referenced by the monitor, and that is not necessarily true for every BlockBackend. Rename the list to monitor_block_backends to make that fact clear. Signed-off-by: Max Reitz

Re: [Qemu-devel] [Qemu-ppc] [PATCH qemu v13 11/16] vfio: spapr: Add SPAPR IOMMU v2 support (DMA memory preregistering)

2016-03-19 Thread David Gibson
On Thu, Mar 17, 2016 at 04:04:29PM +1100, Alexey Kardashevskiy wrote: > On 03/15/2016 04:42 PM, David Gibson wrote: > >On Tue, Mar 15, 2016 at 01:53:48PM +1100, Alexey Kardashevskiy wrote: > >>On 03/03/2016 05:30 PM, David Gibson wrote: > >>>On Tue, Mar 01, 2016 at 08:10:36PM +1100, Alexey

Re: [Qemu-devel] [PATCH 10/15] nvdimm acpi: abstract the operations for root device and nvdimm devices

2016-03-19 Thread Stefan Hajnoczi
On Thu, Mar 17, 2016 at 04:32:56PM +0800, Xiao Guangrong wrote: > +static void > +nvdimm_dsm_function0(uint32_t supported_func, hwaddr dsm_mem_addr) > +{ > +NvdimmDsmFunc0Out func0 = { > +.len = cpu_to_le32(sizeof(func0)), > +.supported_func = cpu_to_le32(supported_func), > +

[Qemu-devel] [PULL v1 01/13] crypto: add cryptographic random byte source

2016-03-19 Thread Daniel P. Berrange
There are three backend impls provided. The preferred is gnutls, which is backed by nettle in modern distros. The gcrypt impl is provided for cases where QEMU build against gnutls is disabled, but crypto is still desired. No nettle impl is provided, since it is non-trivial to use the nettle APIs

[Qemu-devel] [PULL 06/29] block: Use blk_{commit, flush}_all() consistently

2016-03-19 Thread Kevin Wolf
From: Max Reitz Replace bdrv_commmit_all() and bdrv_flush_all() by their BlockBackend equivalents. Signed-off-by: Max Reitz Reviewed-by: Kevin Wolf Signed-off-by: Kevin Wolf --- blockdev.c | 2 +- cpus.c | 5

Re: [Qemu-devel] [PATCH v2] vl.c: disallow command line fw cfg without opt/

2016-03-19 Thread Michael S. Tsirkin
On Thu, Mar 17, 2016 at 08:35:25PM +0100, Paolo Bonzini wrote: > > > On 17/03/2016 18:17, Gerd Hoffmann wrote: > > Hi, > > > >> Alternative: fail on: > >> > >> - a blacklist of etc/* files including etc/system-states, > >> etc/smbios/smbios-tables, etc/smbios/smbios-anchor, > >>

[Qemu-devel] [RFC v1 08/11] tcg: add kick timer for single-threaded vCPU emulation

2016-03-19 Thread Alex Bennée
Currently we rely on the side effect of the main loop grabbing the iothread_mutex to give any long running basic block chains a kick to ensure the next vCPU is scheduled. As this code is being re-factored and rationalised we now do it explicitly here. Signed-off-by: Alex Bennée

[Qemu-devel] [Bug 1556306] Re: vhost-user: qemu stops processing packets under high load of traffic

2016-03-19 Thread cargonza
apologize but I was corrected that for qemu issues. The bug should be in the following: Distribution: ubuntu package: qemu <--instead of project. I will correct this in the bug. ** Project changed: qemu => qemu (Ubuntu) -- You received this bug notification because you are a member of qemu-

[Qemu-devel] [PATCH v6 14/16] qapi: Allow anonymous base for flat union

2016-03-19 Thread Eric Blake
Rather than requiring all flat unions to explicitly create a separate base struct, we can allow the qapi schema to specify the common members via an inline dictionary. This is similar to how commands can specify an inline anonymous type for its 'data'. We already have several struct types that

Re: [Qemu-devel] Google Summer of Code 2016: Make Mac OS 9 boot successfully with all Apple extensions

2016-03-19 Thread Stefan Hajnoczi
On Sun, Mar 06, 2016 at 03:20:29PM -0500, Programmingkid wrote: > === TITLE === > > Make all versions of Mac OS 9 boot successfully in QEMU with all Apple > extensions > > '''Summary:''' Short description of the project > > Mac OS 9.2 does boot in QEMU without extensions, but certain

[Qemu-devel] [PULL 14/15] qapi: Allow anonymous base for flat union

2016-03-19 Thread Markus Armbruster
From: Eric Blake Rather than requiring all flat unions to explicitly create a separate base struct, we can allow the qapi schema to specify the common members via an inline dictionary. This is similar to how commands can specify an inline anonymous type for its 'data'. We

Re: [Qemu-devel] [PATCH 0/4] Tweaks around virtio-blk start/stop

2016-03-19 Thread Cornelia Huck
On Thu, 17 Mar 2016 13:39:18 +0100 Christian Borntraeger wrote: > On 03/17/2016 01:22 PM, tu bo wrote: > > > > On 03/16/2016 09:38 PM, Christian Borntraeger wrote: > >> On 03/16/2016 01:55 PM, Paolo Bonzini wrote: > >>> > >>> > >>> On 16/03/2016 12:24, Christian

[Qemu-devel] [PATCH v2 00/10] ppc: preparing pnv landing

2016-03-19 Thread Cédric Le Goater
Hello, This is a first mini-serie of patches adding support for new ppc SPRs. They were taken from Ben's larger patchset adding the ppc powernv platform and they should already be useful for the pseries guest migration. Initial patches come from :

[Qemu-devel] [PATCH v4 16/17] block: Use bdrv_next() instead of bdrv_states

2016-03-19 Thread Max Reitz
There is no point in manually iterating through the bdrv_states list when there is bdrv_next(). Signed-off-by: Max Reitz Reviewed-by: Kevin Wolf --- block.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/block.c b/block.c

[Qemu-devel] [PULL 06/15] qapi-event: Drop qmp_output_get_qobject() null check

2016-03-19 Thread Markus Armbruster
From: Eric Blake qmp_output_get_qobject() was changed never to return null some time ago (in commit 6c2f9a15), but the qapi_event_send_FOO() functions still check. Clean that up: |@@ -28,7 +28,6 @@ void qapi_event_send_acpi_device_ost(ACP | QMPEventFuncEmit emit; |

[Qemu-devel] [RFC v1 01/11] tcg: move tb_find_fast outside the tb_lock critical section

2016-03-19 Thread Alex Bennée
From: KONRAD Frederic Signed-off-by: KONRAD Frederic Signed-off-by: Paolo Bonzini [AJB: minor checkpatch fixes] Signed-off-by: Alex Bennée --- v1(ajb) - checkpatch fixes --- cpu-exec.c

[Qemu-devel] [PATCH 2/2] Revert "e1000: fix hang of win2k12 shutdown with flood ping"

2016-03-19 Thread Sameeh Jubran
This reverts commit 9596ef7c7b8528bedb240792ea1fb598543ad3c4. This workaround in order to fix endless interrupts is no longer needed because it was superseded by the previous patch (e1000: Fixing interrupt pace). Signed-off-by: Sameeh Jubran --- hw/net/e1000.c | 5 - 1

Re: [Qemu-devel] [PATCH] input-linux: fix Coverity warning

2016-03-19 Thread Stefan Weil
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Am 16.03.2016 um 12:50 schrieb Gerd Hoffmann: > Signed-off-by: Gerd Hoffmann --- > ui/input-linux.c | 7 +++ 1 file changed, 7 insertions(+) > > diff --git a/ui/input-linux.c b/ui/input-linux.c index > 76a2abb..f884c00

[Qemu-devel] [PATCH v5 4/5] kvm: add kvm_support_device() helper function

2016-03-19 Thread Peter Xu
This can be used when probing whether KVM support specific device. Here, a raw vmfd is used. Signed-off-by: Peter Xu --- include/sysemu/kvm.h | 9 + kvm-all.c| 15 +++ 2 files changed, 24 insertions(+) diff --git a/include/sysemu/kvm.h

Re: [Qemu-devel] [PATCH 43/49] arm: move arm_log_exception into .c file

2016-03-19 Thread Peter Maydell
On 16 March 2016 at 10:46, Paolo Bonzini wrote: > Avoid need for qemu/log.h inclusion. > > Signed-off-by: Paolo Bonzini > --- > target-arm/helper.c| 14 ++ > target-arm/internals.h | 15 +-- > 2 files changed, 15

[Qemu-devel] [PATCH 0/2] e1000: Introducing an upper bound of interrupts

2016-03-19 Thread Sameeh Jubran
This patch series introduces an upper bound for the number of interrupts per second. This feature is supported by the real hardware, however up until now it wasn't implemented in e1000. This feature is very significant, it can prevent an interrupt storm by giving the driver a bounded

Re: [Qemu-devel] [PATCH v2] vl.c: disallow command line fw cfg without opt/

2016-03-19 Thread Markus Armbruster
"Michael S. Tsirkin" writes: > Allowing arbitary file names on command line is setting us up for > failure: future guests will look for a specific QEMU-specified name and > will get confused finding a user file there. > > We do warn but people are conditioned to ignore warnings

[Qemu-devel] [PATCH V6 0/2] Introduce filter-redirector

2016-03-19 Thread Zhang Chen
Filter-redirector is a netfilter plugin. It gives qemu the ability to redirect net packet. redirector can redirect filter's net packet to outdev. and redirect indev's packet to filter. filter + redirector | +--+

Re: [Qemu-devel] [ Patch 0/2] Support Receive-Segment-Offload(RSC) for WHQL test of Window guest

2016-03-19 Thread Michael S. Tsirkin
On Thu, Mar 17, 2016 at 11:21:28PM +0800, Wei Xu wrote: > > > On 2016年03月17日 14:47, Jason Wang wrote: > >On 03/15/2016 05:17 PM,w...@redhat.com wrote: > >>From: Wei Xu > >> > >>Fixed issues based on rfc patch v2: > >>1. Removed big param list, replace it with 'NetRscUnit' >

Re: [Qemu-devel] [PATCH v5 13/14] qapi: Allow anonymous base for flat union

2016-03-19 Thread Markus Armbruster
Eric Blake writes: > On 03/10/2016 01:22 PM, Markus Armbruster wrote: >> Eric Blake writes: >> >>> Rather than requiring all flat unions to explicitly create >>> a separate base struct, we can allow the qapi schema to specify >>> the common members via an

[Qemu-devel] [PATCH 13/49] target-ppc: do not use target_ulong in cpu-qom.h

2016-03-19 Thread Paolo Bonzini
Using vaddr makes the cpu-qom.h file target independent Signed-off-by: Paolo Bonzini --- target-ppc/cpu-qom.h| 3 +-- target-ppc/mmu-hash32.c | 2 +- target-ppc/mmu-hash32.h | 2 +- target-ppc/mmu-hash64.c | 2 +- target-ppc/mmu-hash64.h | 2 +- 5 files changed, 5

Re: [Qemu-devel] [PATCH v3 12/12] i.MX: Add sabrelite i.MX6 emulation.

2016-03-19 Thread Peter Maydell
On 16 March 2016 at 06:32, Peter Maydell wrote: > On 15 March 2016 at 21:40, Jean-Christophe DUBOIS > wrote: >> So do you mean I should define the 20 external lines (properties) and wire >> all of them up with sysbus_connect_irq() in the i.MX6 SOC

Re: [Qemu-devel] [PATCH v2] vl.c: disallow command line fw cfg without opt/

2016-03-19 Thread Michael S. Tsirkin
On Thu, Mar 17, 2016 at 02:12:56PM +0100, Paolo Bonzini wrote: > > > On 17/03/2016 12:32, Michael S. Tsirkin wrote: > > > 1) files should actually be named etc/ovmf/foo. OVMF could optionally > > > accept both the old and the new names for a while, you would decide > > > whether this is useful.

Re: [Qemu-devel] [PATCH v5 6/7] block: add generic full disk encryption driver

2016-03-19 Thread Kevin Wolf
Am 17.03.2016 um 18:51 hat Daniel P. Berrange geschrieben: > Add a block driver that is capable of supporting any full disk > encryption format. This utilizes the previously added block > encryption code, and at this time supports the LUKS format. > > The driver code is capable of supporting any

[Qemu-devel] [Bug 1557033] Re: Persistent malfunction after guest shutdown/reboot

2016-03-19 Thread Piknik
I've just recently experienced drive corruption and BIOS issues. After a reformat (to ext4 from f2fs), a BIOS re-flash and reinstall with linux- lts, this issue isn't appearing anymore so it was an issue specific to me. ** Changed in: qemu Status: New => Invalid -- You received this bug

[Qemu-devel] ODP: [PATCH v4 06/11] block: m25p80: Add configuration registers

2016-03-19 Thread Krzeminski, Marcin (Nokia - PL/Wroclaw)
W dniu 17.03.2016 o 18:24, Peter Crosthwaite pisze: > On Mon, Feb 22, 2016 at 12:03 AM, wrote: >> From: Marcin Krzeminski >> >> This patch adds both volatile and non volatile configuration registers >> and commands to allow modify

[Qemu-devel] [PULL 22/29] block: Use blk_co_pwritev() for blk_write()

2016-03-19 Thread Kevin Wolf
Signed-off-by: Kevin Wolf --- block/block-backend.c | 39 ++- block/io.c| 5 + include/block/block_int.h | 3 +++ 3 files changed, 34 insertions(+), 13 deletions(-) diff --git a/block/block-backend.c

Re: [Qemu-devel] [PATCH 3/5] tcg: always keep jump target and tb->jmp_next consistent

2016-03-19 Thread Sergey Fedorov
On 17/03/16 23:45, Sergey Fedorov wrote: On 17/03/16 22:31, Paolo Bonzini wrote: On 17/03/2016 18:57, Richard Henderson wrote: @@ -951,18 +959,10 @@ static inline void tb_jmp_remove(TranslationBlock *tb, int n) } /* now we can suppress tb(n) from the list */

Re: [Qemu-devel] [PATCH v4 00/17] blockdev: Further BlockBackend work

2016-03-19 Thread Kevin Wolf
Am 16.03.2016 um 19:54 hat Max Reitz geschrieben: > This series appears to reinvent itself with every revision. This time, > its main implication is that BBs are no longer automatically treated as > monitor-owned, and that a BB's name is tightly tied to the monitor > reference (it is considered

Re: [Qemu-devel] [PATCH v5 6/7] block: add generic full disk encryption driver

2016-03-19 Thread Kevin Wolf
Am 18.03.2016 um 15:45 hat Daniel P. Berrange geschrieben: > On Fri, Mar 18, 2016 at 01:09:35PM +0100, Kevin Wolf wrote: > > Am 17.03.2016 um 18:51 hat Daniel P. Berrange geschrieben: > > > Add a block driver that is capable of supporting any full disk > > > encryption format. This utilizes the

Re: [Qemu-devel] [Qemu-ppc] [PATCH 3/3] hw/net/spapr_llan: Enable the RX buffer pools by default for new machines

2016-03-19 Thread Laurent Vivier
On 16/03/2016 13:16, Thomas Huth wrote: > RX buffer pools are now enabled by default for new machine types. > For older machine types, they are still disabled to avoid breaking > migration. > > Signed-off-by: Thomas Huth Reviewed-by: Laurent Vivier >

[Qemu-devel] [PATCH v5 19/28] migration: delete QEMUFile buffer implementation

2016-03-19 Thread Daniel P. Berrange
The qemu_bufopen() method is no longer used, so the memory buffer based QEMUFile backend can be deleted entirely. Reviewed-by: Dr. David Alan Gilbert Signed-off-by: Daniel P. Berrange --- include/migration/qemu-file.h | 6 ---

Re: [Qemu-devel] [Patch v2 1/1] blizzard: Remove support for DEPTH != 32

2016-03-19 Thread Gerd Hoffmann
On Mo, 2016-03-14 at 15:22 +, Peter Maydell wrote: > On 14 March 2016 at 15:04, Pooja Dhannawat wrote: > > Removing support for DEPTH != 32 from blizzard template header > > and file that includes it, as macro DEPTH == 32 only used. > > > > Signed-off-by: Pooja

[Qemu-devel] [PULL v1 00/13] Merge crypto code for LUKS encryption

2016-03-19 Thread Daniel P. Berrange
The following changes since commit 8c4575472494a5dfedfe05e7b58ca9ce3872ad56: Merge remote-tracking branch 'remotes/ehabkost/tags/machine-pull-request' into staging (2016-03-17 08:52:58 +) are available in the git repository at: git://github.com/berrange/qemu

[Qemu-devel] [PATCH for-2.6 00/14] s390-ccw bios patches

2016-03-19 Thread Cornelia Huck
A final round of patches for the s390-ccw bios that allow us to boot from virtio-scsi devices. They have been through our internal testing for some months now (so they should be stable), but I can only send them now due to factors beyond our control. I plan to send a pull request next week.

Re: [Qemu-devel] [PATCH v4 2/3] arm: qmp: add query-gic-capabilities interface

2016-03-19 Thread Peter Xu
On Thu, Mar 17, 2016 at 08:50:38AM +, Peter Maydell wrote: > On 17 March 2016 at 04:09, Peter Xu wrote: > > Thanks for the review comments. Do you have any suggestion on which > > file should I add this in (or create a new one)? I failed to figure > > it out myself. :( > >

[Qemu-devel] [RFC v1 06/11] tcg: cpus rm tcg_exec_all()

2016-03-19 Thread Alex Bennée
In preparation for multi-threaded TCG we remove tcg_exec_all and move all the CPU cycling into the main thread function. When MTTCG is enabled we shall use a separate thread function which only handles one vCPU. Signed-off-by: Alex Bennée --- cpus.c | 64

Re: [Qemu-devel] [PATCH 11/17] ppc: Initialize AMOR in PAPR mode

2016-03-19 Thread David Gibson
On Mon, Mar 14, 2016 at 05:56:34PM +0100, Cédric Le Goater wrote: > From: Benjamin Herrenschmidt > > Make sure we give the guest full authorization > > Signed-off-by: Benjamin Herrenschmidt So my guess is that this is essential for 2.6 if

[Qemu-devel] [PATCH 13/15] nvdimm acpi: support Get Namespace Label Data function

2016-03-19 Thread Xiao Guangrong
Function 5 is used to get Namespace Label Data Signed-off-by: Xiao Guangrong --- hw/acpi/nvdimm.c | 81 +++- 1 file changed, 80 insertions(+), 1 deletion(-) diff --git a/hw/acpi/nvdimm.c b/hw/acpi/nvdimm.c

[Qemu-devel] [PULL 15/21] hw/arm: Add palmetto-bmc machine

2016-03-19 Thread Peter Maydell
From: Andrew Jeffery The new machine is a thin layer over the AST2400 ARM926-based SoC[1]. Between the minimal machine and the current SoC implementation there is enough functionality to boot an aspeed_defconfig Linux kernel to userspace. Nothing yet is specific to the

<    1   2   3   4   5   6   7   8   >