Re: [Qemu-devel] [PATCH 0/5] qapi flattening + some miscellaneous patches

2015-07-03 Thread Gerd Hoffmann
On Do, 2015-07-02 at 20:00 +0200, Markus Armbruster wrote: > Gerd Hoffmann writes: > > > On Di, 2015-06-23 at 15:32 +0200, Kővágó, Zoltán wrote: > >> I've cherry-picked the qapi related parts from my previous -audiodev > >> patch series, we can hopefully concentrate on one thing at a time. The >

[Qemu-devel] [Bug 1470720] Re: high IRQ-TLB generates network interruptions

2015-07-03 Thread gustavo panizzo
overcommit ratio on latest server i had the problem is 3.6 (3.6 vcpu for each cpu), would that be part of the problem? i see other servers that never had the problem with over commit ratios as high as 4.1 -- You received this bug notification because you are a member of qemu- devel-ml, which is

Re: [Qemu-devel] [SeaBIOS] [PATCH 02/18] virtio: run drivers in 32bit mode

2015-07-03 Thread Gerd Hoffmann
On Fr, 2015-07-03 at 08:45 +0200, Paolo Bonzini wrote: > > On 29/06/2015 10:53, Gerd Hoffmann wrote: > > virtio version 1.0 registers can (and actually do in the qemu > > implementation) live in mmio space. So we must run the blk and > > scsi virtio drivers in 32bit mode, otherwise we can't acces

Re: [Qemu-devel] [SeaBIOS] [PATCH v3 00/25] virtio: add version 1.0 support, move to 32bit

2015-07-03 Thread Gerd Hoffmann
On Mi, 2015-07-01 at 11:21 -0400, Kevin O'Connor wrote: > On Wed, Jul 01, 2015 at 04:40:45PM +0200, Gerd Hoffmann wrote: > > Hi, > > > > This patch series adds virtio 1.0 support to the virtio blk and scsi > > drivers in seabios. With this series applied seabios happily boots > > in virtio 1.0

Re: [Qemu-devel] [PATCH] target-ppc: fix hugepage support when using memory-backend-file

2015-07-03 Thread David Gibson
On Thu, Jul 02, 2015 at 03:46:14PM -0500, Michael Roth wrote: > Current PPC code relies on -mem-path being used in order for > hugepage support to be detected. With the introduction of > MemoryBackendFile we can now handle this via: > -object memory-file-backend,mem-path=...,id=hugemem0 \ > -nu

[Qemu-devel] [PATCH v11 1/5] qemu-iotests: qemu machine type support

2015-07-03 Thread Bo Tu
This patch adds qemu machine type support to the io test suite. Based on the qemu default machine type and alias of the default machine type the reference output file can now vary from the default to a machine specific output file if necessary. When using a machine specific reference file if the de

[Qemu-devel] [PATCH v11 5/5] qemu-iotests: s390x: fix test 130

2015-07-03 Thread Bo Tu
The default device id of hard disk on the s390 platform is "virtio0" which differs to the "ide0-hd0" for the x86 platform. Setting id in the drive definition, ie:"qemu -drive id=testdisk", will be the same on all platforms. Reviewed-by: Max Reitz Signed-off-by: Bo Tu --- tests/qemu-iotests/130

[Qemu-devel] [PATCH v11 4/5] qemu-iotests: s390x: fix test 049, reject negative sizes in QemuOpts

2015-07-03 Thread Bo Tu
when creating an image qemu-img enable us specifying the size of the image using -o size=xx options. But when we specify an invalid size such as a negtive size then different platform gives different result. parse_option_size() function in util/qemu-option.c will be called to parse the size, a cas

[Qemu-devel] [PATCH v11 0/5] Update tests/qemu-iotests failing cases for the s390 platform

2015-07-03 Thread Bo Tu
v11. 1. Add Reviewed-by of Sascha 2. Refine code change in common.config in order to be easier to read and be shorter 3. Add more comments in patch description 4. Combine the fix for 041 and 055 in one patch since they address the same issue 5. Remove the fix for 051 since it fails now 6. checkp

[Qemu-devel] [PATCH v11 3/5] qemu-iotests: s390x: fix test 041 and 055

2015-07-03 Thread Bo Tu
There is no 'ide-cd' device defined on non-pc platform, so test_medium_not_found() test should be skipped. Reviewed-by: Max Reitz Reviewed-by: Michael Mueller Reviewed-by: Sascha Silbe Signed-off-by: Xiao Guang Chen --- tests/qemu-iotests/041 | 6 ++ tests/qemu-iotests/055 | 9 +

[Qemu-devel] [PATCH v11 2/5] qemu-iotests: disable default qemu devices for cross-platform compatibility

2015-07-03 Thread Bo Tu
This patch fixes an io test suite issue that was introduced with the commit c88930a6866e74953e931ae749781e98e486e5c8 'qemu-char: Permit only a single "stdio" character device'. The option supresses the creation of default devices such as the floopy and cdrom. Output files for test case 067, 071, 08

Re: [Qemu-devel] [PATCH v4 4/9] Add virt-v3 machine that uses GIC-500

2015-07-03 Thread Christoffer Dall
On Fri, Jul 3, 2015 at 8:52 AM, Pavel Fedin wrote: > Hi! > >> I think you should leave out the software emulation part for this >> series and let's concentrate on getting this in first. > > Ok. > >> Also, you should make sure you have an agreement with Shlomo about >> taking over his patches bef

Re: [Qemu-devel] virtio-pci msix error

2015-07-03 Thread Mark Cave-Ayland
On 13/06/15 16:06, Mark Cave-Ayland wrote: > On 20/05/15 13:10, Peter Maydell wrote: > >> On 20 May 2015 at 12:55, Fam Zheng wrote: >>> On Wed, 05/20 11:41, Peter Maydell wrote: On 20 May 2015 at 10:58, Michael S. Tsirkin wrote: > On Tue, May 19, 2015 at 09:11:26PM +0100, Peter Maydell

Re: [Qemu-devel] virtio-pci msix error

2015-07-03 Thread Peter Maydell
On 3 July 2015 at 09:13, Mark Cave-Ayland wrote: > On 13/06/15 16:06, Mark Cave-Ayland wrote: >> Ping? I've just done an OpenBIOS test run on qemu-system-sparc64 and I'm >> still seeing this message appear on the console. Any chance we can get >> this fixed for 2.4? > > Ping again? rth submitted

Re: [Qemu-devel] [PATCH v3 12/16] pc: Postpone SMBIOS table installation to post machine init

2015-07-03 Thread Michael S. Tsirkin
On Mon, Jun 08, 2015 at 08:12:07PM -0500, miny...@acm.org wrote: > From: Corey Minyard > > This is the same place that the ACPI SSDT table gets added, so that > devices can add themselves to the SMBIOS table. > > Signed-off-by: Corey Minyard This will change the order of fwcfg files, problemat

Re: [Qemu-devel] virtio-pci msix error

2015-07-03 Thread Mark Cave-Ayland
On 03/07/15 09:16, Peter Maydell wrote: > On 3 July 2015 at 09:13, Mark Cave-Ayland > wrote: >> On 13/06/15 16:06, Mark Cave-Ayland wrote: >>> Ping? I've just done an OpenBIOS test run on qemu-system-sparc64 and I'm >>> still seeing this message appear on the console. Any chance we can get >>> t

Re: [Qemu-devel] [PATCH v3 14/16] acpi: Add a way for devices to add ACPI tables

2015-07-03 Thread Michael S. Tsirkin
On Mon, Jun 08, 2015 at 08:12:09PM -0500, miny...@acm.org wrote: > From: Corey Minyard > > Some devices, like IPMI, need to add ACPI table entries to report > their presence. Add a method for adding these entries. > > Signed-off-by: Corey Minyard > --- > hw/acpi/Makefile.objs | 1

Re: [Qemu-devel] [PATCH] virtio: Notice when the system doesn't support MSIx at all

2015-07-03 Thread Mark Cave-Ayland
On 19/05/15 21:29, Richard Henderson wrote: > And do not issue an error_report in that case. > > Signed-off-by: Richard Henderson > --- > hw/virtio/virtio-pci.c | 15 ++- > 1 file changed, 10 insertions(+), 5 deletions(-) > -- > > This seems to be about the only sane way to test th

Re: [Qemu-devel] [PATCH v3 00/16] Add an IPMI device to QEMU

2015-07-03 Thread Michael S. Tsirkin
On Mon, Jun 08, 2015 at 08:11:55PM -0500, miny...@acm.org wrote: > I have reworked the QEMU IPMI patches, and I believe this design > improves greatly on the previous one. The suggestions made all > resulted in better design. To start an IPMI interface > with this, you would use: > > -device i

Re: [Qemu-devel] [PATCH v3 14/16] acpi: Add a way for devices to add ACPI tables

2015-07-03 Thread Michael S. Tsirkin
On Mon, Jun 08, 2015 at 08:12:09PM -0500, miny...@acm.org wrote: > From: Corey Minyard > > Some devices, like IPMI, need to add ACPI table entries to report > their presence. Add a method for adding these entries. > > Signed-off-by: Corey Minyard > --- > hw/acpi/Makefile.objs | 1

Re: [Qemu-devel] quorum: validate vote threshold against num_children even if read-pattern is fifo

2015-07-03 Thread Alberto Garcia
On Fri 03 Jul 2015 08:45:06 AM CEST, Wen Congyang wrote: > We need to use threshold to check if too many write operation fails. > If threshold is larger than num children, we always get write error > event even if all write operations success. > > Signed-off-by: Wen Congyang > --- > block/quorum

Re: [Qemu-devel] [PATCH v4 4/9] Add virt-v3 machine that uses GIC-500

2015-07-03 Thread Pavel Fedin
Hi! > Well, it can become a little messy for everyone if Shlomo is working > on refactoring and respinning his patches, and meanwhile new versions > of his patches go out embedded as part of another patch set Exactly for this reason i refactor his code as little as possible, so that he can mer

Re: [Qemu-devel] quorum: validate vote threshold against num_children even if read-pattern is fifo

2015-07-03 Thread Wen Congyang
On 07/03/2015 04:41 PM, Alberto Garcia wrote: > On Fri 03 Jul 2015 08:45:06 AM CEST, Wen Congyang wrote: > >> We need to use threshold to check if too many write operation fails. >> If threshold is larger than num children, we always get write error >> event even if all write operations success. >

Re: [Qemu-devel] [PATCH 0/5] qapi flattening + some miscellaneous patches

2015-07-03 Thread Markus Armbruster
Gerd Hoffmann writes: > On Do, 2015-07-02 at 20:00 +0200, Markus Armbruster wrote: >> Gerd Hoffmann writes: >> >> > On Di, 2015-06-23 at 15:32 +0200, Kővágó, Zoltán wrote: >> >> I've cherry-picked the qapi related parts from my previous -audiodev >> >> patch series, we can hopefully concentrate

[Qemu-devel] [PATCH v2 1/5] Implement GIC-500 base class

2015-07-03 Thread Pavel Fedin
From: Shlomo Pongratz This class is to be used by both software and KVM implementations of GICv3 Signed-off-by: Shlomo Pongratz Signed-off-by: Pavel Fedin --- hw/intc/Makefile.objs | 1 + hw/intc/arm_gicv3_common.c | 216 + hw/intc/gi

[Qemu-devel] [PATCH v2 0/5] vGICv3 support

2015-07-03 Thread Pavel Fedin
This series introduces support for GICv3 by KVM. Software emulation is currently not supported. Difference from previous series: - Base class included, taken from the series by Shlomo Pongratz: http://lists.nongnu.org/archive/html/qemu-devel/2015-06/msg01512.html The code is refactored as litt

[Qemu-devel] [PATCH v2 3/5] Introduce irqchip type specification for KVM

2015-07-03 Thread Pavel Fedin
This patch introduces kernel_irqchip_type member in Machine class, which it passed to kvm_arch_irqchip_create. It allows machine models to specify correct GIC type during KVM capability verification. The variable is defined as int in order to be architecture-agnostic for potential future uses by ot

[Qemu-devel] [PATCH v2 5/5] Add gicversion option to virt machine

2015-07-03 Thread Pavel Fedin
Set kernel_irqchip_type according to value of the option and pass it around where necessary. Instantiate devices and fdt nodes according to the choice. mac_cpus for virt machine increased to 64. GICv2 compatibility check happens inside arm_gic_common_realize(). Signed-off-by: Pavel Fedin --- hw

[Qemu-devel] [PATCH v2 2/5] Extract some reusable vGIC code

2015-07-03 Thread Pavel Fedin
These functions are useful also for vGICv3 implementation. Make them accessible from within other modules. Actually kvm_dist_get() and kvm_dist_put() could also be made reusable, but they would require two extra parameters (s->dev_fd and s->num_cpu) as well as lots of typecasts of 's' to DeviceSta

[Qemu-devel] [PATCH v2 4/5] Initial implementation of vGICv3

2015-07-03 Thread Pavel Fedin
Get/put routines are missing, live migration is not possible. Signed-off-by: Pavel Fedin --- hw/intc/Makefile.objs | 1 + hw/intc/arm_gicv3_kvm.c | 192 2 files changed, 193 insertions(+) create mode 100644 hw/intc/arm_gicv3_kvm.c diff --git

Re: [Qemu-devel] [PATCH] virtio-pci: implement cfg capability

2015-07-03 Thread Gerd Hoffmann
On Do, 2015-07-02 at 15:00 +0200, Michael S. Tsirkin wrote: > spec says we must, so let's do it! > > Signed-off-by: Michael S. Tsirkin > --- > > untested at this point. Tested-by: Gerd Hoffmann [ seabios patches follow in a moment ] cheers, Gerd

[Qemu-devel] [PATCH 0/3] virtio: pci cfg access

2015-07-03 Thread Gerd Hoffmann
Hi, As discussed this implements virtio regions access via pci cfg space window. Used in case bars are mapped above 4G. Patch #3 is for testing and not intended to be merged. cheers, Gerd Gerd Hoffmann (3): virtio: uninline _vp_{read,write} virtio: pci cfg access [testing] map 64bit

[Qemu-devel] [PATCH 1/3] virtio: uninline _vp_{read,write}

2015-07-03 Thread Gerd Hoffmann
Next patch makes it larger, and I don't think it makes sense to continue inlining it. Uninline and move from header to c file. Signed-off-by: Gerd Hoffmann --- src/hw/virtio-pci.c | 78 src/hw/virtio-pci.h | 79 ++-

[Qemu-devel] [PATCH 2/3] virtio: pci cfg access

2015-07-03 Thread Gerd Hoffmann
virtio regions can also be accessed using a window in pci cfg space. Add support for it. Enable it in case the virtio regions are mapped high (above 4g), so direct mmio access doesn't work for us even in 32bit mode. Signed-off-by: Gerd Hoffmann --- src/hw/virtio-pci.c | 164

[Qemu-devel] [PATCH 3/3] [testing] map 64bit bars high unconditionally.

2015-07-03 Thread Gerd Hoffmann
--- src/fw/pciinit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fw/pciinit.c b/src/fw/pciinit.c index 45870f2..ba1c84c 100644 --- a/src/fw/pciinit.c +++ b/src/fw/pciinit.c @@ -867,7 +867,7 @@ static void pci_bios_map_devices(struct pci_bus *busses) panic("PCI:

[Qemu-devel] [PATCH v9 1/4] apic: map APIC's MMIO region at each CPU's address space

2015-07-03 Thread Zhu Guihua
From: Chen Fan Replace mapping APIC at global system address space with mapping it at per-CPU address spaces. Signed-off-by: Chen Fan Signed-off-by: Zhu Guihua --- hw/i386/pc.c | 7 --- hw/intc/apic_common.c | 6 -- target-i386/cpu.c | 21 + 3 files

[Qemu-devel] [PATCH v9 2/4] x86: use new method to correct reset sequence

2015-07-03 Thread Zhu Guihua
Something must be occur during reset of the X86 platform in a specific order. For example, the apic reset should be after some devices (such as hpet, rtc) reset, so that the apic register could be set to default values. This patch uses the new QEMUMachine reset method to solve the above problem, e

[Qemu-devel] [PATCH v9 0/4] remove icc bus/bridge

2015-07-03 Thread Zhu Guihua
ICC Bus was used for providing a hotpluggable bus for APIC and CPU, but now we use HotplugHandler to make hotplug. So ICC Bus is unnecessary. This code has passed the new pc-cpu-test. And I have tested with kvm along with kernel_irqchip=on/off, it works fine. This patch series is based on the lat

[Qemu-devel] [PATCH v9 3/4] cpu/apic: drop icc bus/bridge

2015-07-03 Thread Zhu Guihua
From: Chen Fan After CPU hotplug has been converted to BUS-less hot-plug infrastructure, the only function ICC bus performs is to propagate reset to LAPICs. However LAPIC could be reset by registering its reset handler after all device are initialized. Do so and drop ~200LOC of not needed anymore

[Qemu-devel] [PATCH v9 4/4] icc_bus: drop the unused files

2015-07-03 Thread Zhu Guihua
ICC bus impl has been droped, so all icc related files are not useful any more; delete them. Signed-off-by: Zhu Guihua --- default-configs/i386-softmmu.mak | 1 - default-configs/x86_64-softmmu.mak | 1 - hw/cpu/Makefile.objs | 1 - hw/cpu/icc_bus.c | 118

[Qemu-devel] [PATCH 1/5] qapi: add comment block before ChardevDummy

2015-07-03 Thread Marc-André Lureau
This is mainly to please the doc generation that requires comment block before the declaration. Signed-off-by: Marc-André Lureau --- qapi-schema.json | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qapi-schema.json b/qapi-schema.json index 106008c..71c894e 100644 --- a/q

[Qemu-devel] [PATCH 2/5] qapi: add missing @

2015-07-03 Thread Marc-André Lureau
Signed-off-by: Marc-André Lureau --- qapi-schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qapi-schema.json b/qapi-schema.json index 71c894e..1d3ee6b 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -15,7 +15,7 @@ { 'include': 'qapi/trace.json' } ## -# Lo

[Qemu-devel] [PATCH 4/5] texi2pod: learn quotation, deftp and deftypefn

2015-07-03 Thread Marc-André Lureau
From: Marc-André Lureau Learn a few more markups used for API documentation. Signed-off-by: Marc-André Lureau --- scripts/texi2pod.pl | 44 +++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/scripts/texi2pod.pl b/scripts/texi2pod.pl index

[Qemu-devel] [PATCH 0/5] RFC: generate QAPI doc from json

2015-07-03 Thread Marc-André Lureau
Hi, This is a small series adding a script to generate documentation of QAPI/QMP based on json "schema" files (man/pdf/html...) According to the wiki page http://wiki.qemu.org/QMP [1], this is one of the goal to get rid of duplicated documentation in qmp-commands.hx by generating it from json. A

[Qemu-devel] [PATCH 5/5] build-sys: generate QAPI doc based on json

2015-07-03 Thread Marc-André Lureau
Learn to generate info/html/pdf/man documentation for QEMU and agent QMP APIs. This allows to provide missing agent documentation, and should help getting rid of the duplicate documentation in qmp-commands.hx. Signed-off-by: Marc-André Lureau --- Makefile | 35 ++

[Qemu-devel] [PATCH 3/5] qapi: add qapi2texi script

2015-07-03 Thread Marc-André Lureau
From: Marc-André Lureau As the name suggests, the qapi2texi script converts JSON QAPI description into a standalone texi file suitable for different target formats. As the documentation format doesn't seem to be specified, it parses the following blocks before each declaration with some variatio

[Qemu-devel] [PATCH] qemu-doc: fix typos

2015-07-03 Thread arei.gonglei
From: Gonglei Signed-off-by: Gonglei --- qemu-doc.texi | 2 +- qemu-options.hx | 2 +- qemu-tech.texi | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/qemu-doc.texi b/qemu-doc.texi index 0125bc7..94af8c0 100644 --- a/qemu-doc.texi +++ b/qemu-doc.texi @@ -1061,7 +1061,7

Re: [Qemu-devel] [PATCH] qemu-doc: fix typos

2015-07-03 Thread Peter Maydell
On 3 July 2015 at 10:50, wrote: > From: Gonglei > > Signed-off-by: Gonglei Reviewed-by: Peter Maydell thanks -- PMM

Re: [Qemu-devel] [PATCH 0/5] qapi flattening + some miscellaneous patches

2015-07-03 Thread Markus Armbruster
Markus Armbruster writes: > Gerd Hoffmann writes: > >> On Do, 2015-07-02 at 20:00 +0200, Markus Armbruster wrote: >>> Gerd Hoffmann writes: >>> >>> > On Di, 2015-06-23 at 15:32 +0200, Kővágó, Zoltán wrote: >>> >> I've cherry-picked the qapi related parts from my previous -audiodev >>> >> patch

Re: [Qemu-devel] [PATCH 2/5] qapi: add missing @

2015-07-03 Thread Markus Armbruster
Marc-André Lureau writes: > Signed-off-by: Marc-André Lureau > --- > qapi-schema.json | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/qapi-schema.json b/qapi-schema.json > index 71c894e..1d3ee6b 100644 > --- a/qapi-schema.json > +++ b/qapi-schema.json > @@ -15,7 +15,7 @

Re: [Qemu-devel] [PATCH v4 4/9] Add virt-v3 machine that uses GIC-500

2015-07-03 Thread Christoffer Dall
On Fri, Jul 3, 2015 at 10:47 AM, Pavel Fedin wrote: > Hi! > >> Well, it can become a little messy for everyone if Shlomo is working >> on refactoring and respinning his patches, and meanwhile new versions >> of his patches go out embedded as part of another patch set > > Exactly for this reason

Re: [Qemu-devel] [PATCH for-2.4] net-hub: Drop can_receive

2015-07-03 Thread Stefan Hajnoczi
On Fri, Jul 03, 2015 at 08:42:15AM +0800, Fam Zheng wrote: > On Thu, 07/02 14:30, Stefan Hajnoczi wrote: > > On Tue, Jun 30, 2015 at 10:29:20AM +0800, Fam Zheng wrote: > > > It returns true as long as there is another attached port. This is not > > > strictly necessary because even if there is only

Re: [Qemu-devel] [PATCH v2] ne2000: Drop ne2000_can_receive

2015-07-03 Thread Stefan Hajnoczi
On Fri, Jul 03, 2015 at 09:08:41AM +0800, Fam Zheng wrote: > This moves the behavior of ne2000_can_receive to ne2000_receive. The > logic is when the NIC is stopped we drop the packet, when the buffer is > full we queue it and try flush later. > > ne2000_buffer_full is determined by s->curpag, s->

[Qemu-devel] [PULL 1/2] virtio-input: add input routing support

2015-07-03 Thread Gerd Hoffmann
Add display and head properties for input routing to virtio-input devices, update multiseat documentation. Signed-off-by: Gerd Hoffmann --- docs/multiseat.txt | 17 +++-- hw/input/virtio-input-hid.c | 11 +++ include/hw/virtio/virtio-input.h | 2 ++ 3 file

[Qemu-devel] [PULL for-2.4 0/2] virtio-input: add input routing support, update multiseat docs.

2015-07-03 Thread Gerd Hoffmann
#x27; into staging (2015-07-02 10:44:34 +0100) are available in the git repository at: git://git.kraxel.org/qemu tags/pull-input-20150703-1 for you to fetch changes up to 496eacaa67653023540e090fb70b7caba429bbc0: update pci-bridge-seat section in docs/multiseat.txt (2015-07-03 12:21

[Qemu-devel] [PULL 2/2] update pci-bridge-seat section in docs/multiseat.txt

2015-07-03 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- docs/multiseat.txt | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/multiseat.txt b/docs/multiseat.txt index d57d174..ebf2446 100644 --- a/docs/multiseat.txt +++ b/docs/multiseat.txt @@ -123,7 +123,7 @@ Background info is here: gu

[Qemu-devel] [PATCH 1/2] virtio-gpu: update console device property.

2015-07-03 Thread Gerd Hoffmann
Update the device link of the QemuConsole, so it points to the virtio-gpu-pci or virtio-vga device instead of virtio-gpu-device. This is needed because we want to find the device by id, for example for input routing, and the id specified on the command line is attached to the pci proxy, not the vi

[Qemu-devel] [PATCH 2/2] virtio-gpu: use virtio_instance_init_common, fixup properties

2015-07-03 Thread Gerd Hoffmann
Switch over to virtio_instance_init_common. Drop duplicate properties in virtio-gpu-pci and virtio-vga as they are properly aliased now. Also drop the indirection via DEFINE_VIRTIO_GPU_PROPERTIES, we don't need it any more as the properties are defined in a single place now. Signed-off-by: Gerd

Re: [Qemu-devel] [PATCH 1/5] net/dump: Add support for receive_iov function

2015-07-03 Thread Markus Armbruster
Thomas Huth writes: > Adding a proper receive_iov function to the net dump module. This > will make it easier to support the dump feature for the -netdev > option in later patches. > Also make the receive functions available to the other parts of the > source code so we can later use them for dum

Re: [Qemu-devel] GICv3 patches

2015-07-03 Thread Pavel Fedin
> Yes, I'm O.K. > Best regards. > S.P. > On Jul 3, 2015 1:49 PM, "Christoffer Dall" > wrote: > Yes, thanks for replying. Are you OK with Pavel taking the board > integration patches? > Pavel, I recommend you leave emulation alone and wait until Shlomo > comes back to do this part. Ok, good.

Re: [Qemu-devel] [PATCH v2 1/1] KVM s390 pci infrastructure modelling

2015-07-03 Thread Hong Bo Li
On 7/2/2015 13:13, Michael S. Tsirkin wrote: On Thu, Jul 02, 2015 at 10:57:34AM +0800, Hong Bo Li wrote: On 7/1/2015 21:37, Michael S. Tsirkin wrote: On Wed, Jul 01, 2015 at 08:42:52PM +0800, Hong Bo Li wrote: On 7/1/2015 19:57, Michael S. Tsirkin wrote: On Wed, Jul 01, 2015 at 07:46:01PM

Re: [Qemu-devel] [PATCH 4/5] qapi: support nested structs in OptsVisitor

2015-07-03 Thread Kővágó Zoltán
2015-07-02 19:34 keltezéssel, Markus Armbruster írta: "Kővágó, Zoltán" writes: The current OptsVisitor flattens the whole structure, if there are same named fields under different paths the current visitor can't cope with them (it'll just set the first field, leaving the others unspecified (if

Re: [Qemu-devel] [PATCH 3/5] net/dump: Rework net-dump init functions

2015-07-03 Thread Markus Armbruster
Thomas Huth writes: > Moved the creation of the dump client from net_dump_init() into > net_init_dump(), renamed net_dump_init() to net_dump_state_init() > and make it available for other parts of the source code, too, > so we can use it for the -netdev option in a later patch. The usual commit

Re: [Qemu-devel] [PATCH 4/5] net/dump: Add dump option for netdev devices

2015-07-03 Thread Markus Armbruster
Thomas Huth writes: > So far it is not possible to dump network traffic with the "-netdev" > option yet - this is only possible with the "-net" option and an > internal "hub". > This patch now fixes this ugliness by adding a proper, generic > dumpfile parameter to the "-netdev" option. > > Signed

Re: [Qemu-devel] [PATCH 0/5] Network traffic dumping for -netdev, second try

2015-07-03 Thread Markus Armbruster
Stefan Hajnoczi writes: > On Wed, Jun 24, 2015 at 05:56:16PM +0200, Thomas Huth wrote: >> The "-net dump" option only works with the "-net" option. So far, it >> is not possible to dump network traffic with the "-netdev" option yet. >> This patch series now fixes this ugliness by enabling dumping

[Qemu-devel] [PATCH qemu v9 07/13] spapr_pci: Do complete reset of DMA config when resetting PHB

2015-07-03 Thread Alexey Kardashevskiy
On a system reset, DMA configuration has to reset too. At the moment it clears the table content. This is enough for the single table case but with DDW, we will also have to disable all DMA windows except the default one. Furthermore according to sPAPR, if the guest removed the default window and c

[Qemu-devel] [PATCH qemu v9 01/13] vmstate: Define VARRAY with VMS_ALLOC

2015-07-03 Thread Alexey Kardashevskiy
This allows dynamic allocation for migrating arrays. Already existing VMSTATE_VARRAY_UINT32 requires an array to be pre-allocated, however there are cases when the size is not known in advance and there is no real need to enforce it. This defines another variant of VMSTATE_VARRAY_UINT32 with WMS_

[Qemu-devel] [PATCH qemu v9 04/13] spapr_iommu: Introduce "enabled" state for TCE table

2015-07-03 Thread Alexey Kardashevskiy
Currently TCE tables are created once at start and their size never changes. We are going to change that by introducing a Dynamic DMA windows support where DMA configuration may change during the guest execution. This changes spapr_tce_new_table() to create an empty stub object. Only LIOBN is assi

[Qemu-devel] [PATCH qemu v9 08/13] spapr_vfio_pci: Remove redundant spapr-pci-vfio-host-bridge

2015-07-03 Thread Alexey Kardashevskiy
sPAPRTCETable is handling 2 TCE tables already: 1) guest view of the TCE table - emulated devices use only this table; 2) hardware IOMMU table - VFIO PCI devices use it for actual work but it does not replace 1) and it is not visible to the guest. The initialization of this table is driven by vfi

Re: [Qemu-devel] [PATCH qemu v9 09/13] spapr_pci: Enable vfio-pci hotplug

2015-07-03 Thread Alexey Kardashevskiy
Oops, I have not added Mike in cc:, especially for this patch. On 07/03/2015 09:28 PM, Alexey Kardashevskiy wrote: sPAPR IOMMU is managing two copies of an TCE table: 1) a guest view of the table - this is what emulated devices use and this is where H_GET_TCE reads from; 2) a hardware TCE table

[Qemu-devel] [PATCH qemu v9 06/13] spapr_iommu: Add root memory region

2015-07-03 Thread Alexey Kardashevskiy
We are going to have multiple DMA windows at different offsets on a PCI bus. For the sake of migration, we will have as many TCE table objects pre-created as many windows supported. So we need a way to map windows dynamically onto a PCI bus when migration of a table is completed but at this stage a

[Qemu-devel] [PATCH qemu v9 00/13] spapr: vfio: Enable Dynamic DMA windows (DDW)

2015-07-03 Thread Alexey Kardashevskiy
(cut-n-paste from kernel patchset) Each Partitionable Endpoint (IOMMU group) has an address range on a PCI bus where devices are allowed to do DMA. These ranges are called DMA windows. By default, there is a single DMA window, 1 or 2GB big, mapped at zero on a PCI bus. PAPR defines a DDW RTAS AP

[Qemu-devel] [PATCH] opts: produce valid command line in qemu_opts_print

2015-07-03 Thread Kővágó, Zoltán
This will let us print options in a format that the user would actually write it on the command line (foo=bar,baz=asd,etc=def), without prepending a spurious comma at the beginning of the list, or quoting values unnecessarily. This patch provides the following changes: * write and id=, if the opti

[Qemu-devel] [PATCH qemu v9 12/13] vfio: spapr: Add SPAPR IOMMU v2 support (DMA memory preregistering)

2015-07-03 Thread Alexey Kardashevskiy
This makes use of the new "memory registering" feature. The idea is to provide the userspace ability to notify the host kernel about pages which are going to be used for DMA. Having this information, the host kernel can pin them all once per user process, do locked pages accounting (once) and not s

[Qemu-devel] [PATCH qemu v9 09/13] spapr_pci: Enable vfio-pci hotplug

2015-07-03 Thread Alexey Kardashevskiy
sPAPR IOMMU is managing two copies of an TCE table: 1) a guest view of the table - this is what emulated devices use and this is where H_GET_TCE reads from; 2) a hardware TCE table - only present if there is at least one vfio-pci device on a PHB; it is updated via a memory listener on a PHB address

[Qemu-devel] [PATCH qemu v9 05/13] spapr_iommu: Remove vfio_accel flag from sPAPRTCETable

2015-07-03 Thread Alexey Kardashevskiy
sPAPRTCETable has a vfio_accel flag which is passed to kvmppc_create_spapr_tce() and controls whether to create a guest view table in KVM as this depends on the host kernel ability to accelerate H_PUT_TCE for VFIO devices. We would set this flag at the moment when sPAPRTCETable is created in spapr_

[Qemu-devel] [PATCH qemu v9 11/13] linux headers update for DDW on SPAPR

2015-07-03 Thread Alexey Kardashevskiy
Since the changes are not in upstream yet, no tag or branch is specified here. Signed-off-by: Alexey Kardashevskiy --- linux-headers/linux/vfio.h | 88 -- 1 file changed, 85 insertions(+), 3 deletions(-) diff --git a/linux-headers/linux/vfio.h b/linux

[Qemu-devel] [PATCH qemu v9 03/13] spapr_iommu: Move table allocation to helpers

2015-07-03 Thread Alexey Kardashevskiy
At the moment presence of vfio-pci devices on a bus affect the way the guest view table is allocated. If there is no vfio-pci on a PHB and the host kernel supports KVM acceleration of H_PUT_TCE, a table is allocated in KVM. However, if there is vfio-pci and we do yet not KVM acceleration for these,

Re: [Qemu-devel] [PATCH v2] arm_mptimer: Fix timer shutdown

2015-07-03 Thread Dmitry Osipenko
02.07.2015 21:43, Dmitry Osipenko пишет: 4) re-load TIMER_LOAD And 4-th step can be omitted. Anyway, I already sent patches fixing this and IT issues. -- Dmitry

[Qemu-devel] [PATCH qemu v9 13/13] spapr_pci/spapr_pci_vfio: Support Dynamic DMA Windows (DDW)

2015-07-03 Thread Alexey Kardashevskiy
This adds support for Dynamic DMA Windows (DDW) option defined by the SPAPR specification which allows to have additional DMA window(s) This implements DDW for emulated and VFIO devices. As all TCE root regions are mapped at 0 and 64bit long (and actual tables are child regions), this replaces mem

[Qemu-devel] [PATCH qemu v9 02/13] spapr_pci: Convert finish_realize() to dma_capabilities_update()+dma_init_window()

2015-07-03 Thread Alexey Kardashevskiy
This reworks finish_realize() which used to finalize DMA setup with an assumption that it will not change later. New callbacks supports various window parameters such as page and windows sizes. The new callback return error code rather than Error**. This is a mechanical change so no change in beh

[Qemu-devel] [PATCH qemu v9 10/13] spapr_pci_vfio: Enable multiple groups per container

2015-07-03 Thread Alexey Kardashevskiy
This enables multiple IOMMU groups in one VFIO container which means that multiple devices from different groups can share the same IOMMU table (or tables if DDW). This removes a group id from vfio_container_ioctl(). The kernel support is required for this; if the host kernel does not have the sup

Re: [Qemu-devel] [PATCH 5/5] qemu options: Add information about dumpfile to help text

2015-07-03 Thread Markus Armbruster
Thomas Huth writes: > Describe the new dumpfile and dumplen options in the help text. > > Signed-off-by: Thomas Huth Could be squashed into PATCH 4. Separate patch is of course okay, too.

[Qemu-devel] [PATCH 2/12] kvm: introduce vcpu_debug = kvm_debug + vcpu context

2015-07-03 Thread Denis V. Lunev
From: Andrey Smetanin vcpu_debug is useful macro like kvm_debug but additionally includes vcpu context inside output. Signed-off-by: Andrey Smetanin Signed-off-by: Denis V. Lunev Reviewed-by: Peter Hornyack CC: Paolo Bonzini CC: Gleb Natapov --- include/linux/kvm_host.h | 3 +++ 1 file cha

[Qemu-devel] [PATCH 10/12] kvm: Add kvm system event crash handler

2015-07-03 Thread Denis V. Lunev
From: Andrey Smetanin KVM kernel can send guest crash events into userspace. Appropriate guest crash handler is called when kernel guest crash event received. Guest crash event recognized by a KVM_SYSTEM_EVENT_CRASH type of system event. Signed-off-by: Andrey Smetanin Signed-off-by: Denis V. Lu

[Qemu-devel] [PATCH 3/12] kvm: add hyper-v crash msrs values

2015-07-03 Thread Denis V. Lunev
From: Andrey Smetanin Added Hyper-V crash msrs values - HV_X64_MSR_CRASH*. Signed-off-by: Andrey Smetanin Signed-off-by: Denis V. Lunev Reviewed-by: Peter Hornyack CC: Paolo Bonzini CC: Gleb Natapov --- arch/x86/include/uapi/asm/hyperv.h | 11 +++ 1 file changed, 11 insertions(+)

[Qemu-devel] [PATCH 8/12] kvm/x86: add sending hyper-v crash notification to user space

2015-07-03 Thread Denis V. Lunev
From: Andrey Smetanin Sending of notification is done by exiting vcpu to user space if KVM_REQ_HV_CRASH is enabled for vcpu. At exit to user space the kvm_run structure contains system_event with type KVM_SYSTEM_EVENT_CRASH to notify about guest crash occurred. Signed-off-by: Andrey Smetanin Si

[Qemu-devel] [PATCH 5/12] kvm: added KVM_REQ_HV_CRASH value to notify qemu about hyper-v crash

2015-07-03 Thread Denis V. Lunev
From: Andrey Smetanin Added KVM_REQ_HV_CRASH - vcpu request used for notify user space(QEMU) about Hyper-V crash. Signed-off-by: Andrey Smetanin Signed-off-by: Denis V. Lunev Reviewed-by: Peter Hornyack CC: Paolo Bonzini CC: Gleb Natapov --- include/linux/kvm_host.h | 1 + 1 file changed,

[Qemu-devel] [PATCH 09/12] Added generic panic handler qemu_system_guest_panicked()

2015-07-03 Thread Denis V. Lunev
From: Andrey Smetanin There are pieces of guest panic handling code that can be shared in one generic function. These code replaced by call qemu_system_guest_panicked(). Signed-off-by: Andrey Smetanin Signed-off-by: Denis V. Lunev CC: Paolo Bonzini CC: Andreas Färber --- hw/misc/pvpanic.c

[Qemu-devel] [PATCH 4/12] kvm/x86: added hyper-v crash msrs into kvm hyperv context

2015-07-03 Thread Denis V. Lunev
From: Andrey Smetanin Added kvm Hyper-V context hv crash variables as storage of Hyper-V crash msrs. Signed-off-by: Andrey Smetanin Signed-off-by: Denis V. Lunev Reviewed-by: Peter Hornyack CC: Paolo Bonzini CC: Gleb Natapov --- arch/x86/include/asm/kvm_host.h | 4 1 file changed, 4 i

[Qemu-devel] [PATCH v6 0/12] HyperV equivalent of pvpanic driver

2015-07-03 Thread Denis V. Lunev
Windows 2012 guests can notify hypervisor about occurred guest crash (Windows bugcheck(BSOD)) by writing specific Hyper-V msrs. This patch does handling of this MSR's by KVM and sending notification to user space that allows to gather Windows guest crash dump by QEMU/LIBVIRT. The idea is to provid

[Qemu-devel] [PATCH 11/12] cpu: Add crash_occurred flag into CPUState

2015-07-03 Thread Denis V. Lunev
From: Andrey Smetanin CPUState::crash_occurred field inside CPUState marks that guest crash occurred. This value is added into cpu common migration subsection. Signed-off-by: Andrey Smetanin Signed-off-by: Denis V. Lunev CC: Paolo Bonzini CC: Andreas Färber --- exec.c| 19 ++

[Qemu-devel] [PATCH 6/12] kvm/x86: mark hyper-v crash msrs as partition wide

2015-07-03 Thread Denis V. Lunev
From: Andrey Smetanin Hyper-V crash msr's are per vm, aren't per vcpu, so mark them as partition wide. Signed-off-by: Andrey Smetanin Signed-off-by: Denis V. Lunev Reviewed-by: Peter Hornyack CC: Paolo Bonzini CC: Gleb Natapov --- arch/x86/kvm/hyperv.c | 2 ++ 1 file changed, 2 insertions(

[Qemu-devel] [PATCH 12/12] i386/kvm: Hyper-v crash msrs set/get'ers and migration

2015-07-03 Thread Denis V. Lunev
From: Andrey Smetanin KVM Hyper-V based guests can notify hypervisor about occurred guest crash by writing into Hyper-V crash MSR's. This patch does handling and migration of HV_X64_MSR_CRASH_P0-P4, HV_X64_MSR_CRASH_CTL msrs. User can enable these MSR's by 'hv-crash' option. Signed-off-by: Andre

[Qemu-devel] [PATCH 7/12] kvm/x86: added hyper-v crash data and ctl msr's get/set'ers

2015-07-03 Thread Denis V. Lunev
From: Andrey Smetanin Added hyper-v crash msr's(HV_X64_MSR_CRASH*) data and control geters and setters. Userspace should check that such msr's available by check of KVM_CAP_HYPERV_MSR_CRASH capability. User space allowed to setup Hyper-V crash ctl msr. This msr should be setup to HV_X64_MSR_CRAS

[Qemu-devel] [PATCH 1/12] kvm/x86: move Hyper-V MSR's/hypercall code into hyperv.c file

2015-07-03 Thread Denis V. Lunev
From: Andrey Smetanin This patch introduce Hyper-V related source code file - hyperv.c and per vm and per vcpu hyperv context structures. All Hyper-V MSR's and hypercall code moved into hyperv.c. All Hyper-V kvm/vcpu fields moved into appropriate hyperv context structures. Copyrights and authors

Re: [Qemu-devel] [PATCH COLO-BLOCK v7 16/17] quorum: implement block driver interfaces for block replication

2015-07-03 Thread Alberto Garcia
On Tue 30 Jun 2015 05:34:44 AM CEST, Wen Congyang wrote: > +static void quorum_start_replication(BlockDriverState *bs, ReplicationMode > mode, > + Error **errp) > +{ > +BDRVQuorumState *s = bs->opaque; > +int count = 0, i, index; > +Error *local_err

Re: [Qemu-devel] [PULL for-2.4 0/2] virtio-input: add input routing support, update multiseat docs.

2015-07-03 Thread Peter Maydell
5fd5c34: > > Merge remote-tracking branch 'remotes/stefanha/tags/block-pull-request' > into staging (2015-07-02 10:44:34 +0100) > > are available in the git repository at: > > > git://git.kraxel.org/qemu tags/pull-input-20150703-1 > > for you to fetch chang

Re: [Qemu-devel] [PATCH v2] block/curl: Don't lose original error when a connection fails.

2015-07-03 Thread Markus Armbruster
"Richard W.M. Jones" writes: > Currently if qemu is connected to a curl source (eg. web server), and > the web server fails / times out / dies, you always see a bogus EIO > "Input/output error". > > For example, choose a large file located on any local webserver which > you control: > > $ qemu-

Re: [Qemu-devel] [PATCH v5] hmp: add info iothreads command

2015-07-03 Thread Markus Armbruster
Copying the HMP maintainer Luiz. You can feed your patch to scripts/get_maintainer to find people to cc yourself. Ting Wang writes: > Make "info iothreads" available on the HMP monitor. > > For example, the results are as follows when executing qemu > command with "-object iothread,id=iothread-

  1   2   3   >