Re: [Qemu-devel] Fw: [Qemu-arm] [PATCH v2 0/6] Runtime pagesize computation

2016-06-29 Thread Vijay Kilari
On Wed, Jun 29, 2016 at 12:24 PM, Kumar, Vijaya wrote: > > > > > From: Peter Maydell > Sent: Tuesday, June 28, 2016 1:46 PM > To: qemu-arm; QEMU Developers > Cc: Paolo Bonzini; Kumar, Vijaya; Patch Tracking > Subject: Re: [Qemu-arm] [PATCH v2 0/6] Runtime pagesize

Re: [Qemu-devel] Question about qtest and IOMMU

2016-06-29 Thread Paolo Bonzini
On 29/06/2016 08:36, Jan Kiszka wrote: > On 2016-06-29 08:32, Peter Xu wrote: >> Hi, all, >> >> I am thinking about whether it's possible to write up a unit test >> program for emulated IOMMUs (of course, Intel IOMMU would be the first >> one). This can provide us the chance to do quick functiona

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

2016-06-29 Thread Zhen Ning Lim
Hmm.. strange. I did make a new disk went into the setup, then format the disk. After that, i rebooted and start that installation. But, it seems still there is no disk detected. Media [1]: 1 Reading disc for Solaris Operating Environment... The system is being initialized, please wait... | No D

Re: [Qemu-devel] [PATCH v0] spapr: Restore support for older PowerPC CPU cores

2016-06-29 Thread Thomas Huth
On 28.06.2016 17:05, Bharata B Rao wrote: > Introduction of core based CPU hotplug for PowerPC sPAPR didn't > add support for 970 and POWER5+ based core types. Add support for > the same. > > Signed-off-by: Bharata B Rao > --- > TODO: > - There are few other variants of 970, like 970fx etc for wh

Re: [Qemu-devel] Regression: virtio-pci: convert to ioeventfd callbacks

2016-06-29 Thread Cornelia Huck
On Wed, 29 Jun 2016 09:41:50 +0800 Jason Wang wrote: > > > On 2016年06月27日 17:44, Peter Lieven wrote: > > Hi, with the above patch applied: > > > > commit 9f06e71a567ba5ee8b727e65a2d5347fd331d2aa > > Author: Cornelia Huck > > Date: Fri Jun 10 11:04:12 2016 +0200 > > > > virtio-pci: conver

Re: [Qemu-devel] [PATCH 1/3] block: ignore flush requests when storage is clean

2016-06-29 Thread Paolo Bonzini
On 28/06/2016 23:01, Paolo Bonzini wrote: > > > On 24/06/2016 17:06, Denis V. Lunev wrote: >> From: Evgeny Yakovlev >> >> Some guests (win2008 server for example) do a lot of unnecessary >> flushing when underlying media has not changed. This adds additional >> overhead on host when calling fs

Re: [Qemu-devel] Automated testing of block/gluster.c with upstream Gluster

2016-06-29 Thread Lukáš Doktor
Dne 28.6.2016 v 17:56 Niels de Vos napsal(a): On Tue, Jun 28, 2016 at 05:20:03PM +0200, Lukáš Doktor wrote: Dne 28.6.2016 v 16:10 Kevin Wolf napsal(a): Am 28.06.2016 um 11:02 hat Niels de Vos geschrieben: Hi, it seems we broke the block/gluster.c functionality with a recent patch in upstream

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

2016-06-29 Thread Lin Ma
Currently, the output of 'info snapshots' shows fully available snapshots. It's opaque, hides some snapshot information to users. It's not convenient if users want to know more about all of snapshot information on every block device via monitor. Follow Kevin's and Max's proposals, The patch makes

[Qemu-devel] [PATCH 0/2 V3] Show all of snapshot info on every block dev

2016-06-29 Thread Lin Ma
V3: Fix leaking the entries in image_list and the entries in their ImageEntry.snapshots lists V2: Split it to 2 patches. Lin Ma (2): hmp: use snapshot name to determine whether a snapshot is 'fully available' hmp: show all of snapshot info on every block dev in output of 'info sna

Re: [Qemu-devel] Question about qtest and IOMMU

2016-06-29 Thread Peter Xu
On Wed, Jun 29, 2016 at 09:08:29AM +0200, Paolo Bonzini wrote: > > > On 29/06/2016 08:36, Jan Kiszka wrote: > > On 2016-06-29 08:32, Peter Xu wrote: > >> Hi, all, > >> > >> I am thinking about whether it's possible to write up a unit test > >> program for emulated IOMMUs (of course, Intel IOMMU w

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

2016-06-29 Thread Lin Ma
Currently qemu uses snapshot id to determine whether a snapshot is fully available, It causes incorrect output in some scenario. For instance: (qemu) info block drive_image1 (#block113): /opt/vms/SLES12-SP1-JeOS-x86_64-GM/disk0.qcow2 (qcow2) Cache mode: writeback drive_image2 (#block349

Re: [Qemu-devel] [PATCH 2/2] arm/virt: Mark pcie controller node as dma-coherent

2016-06-29 Thread Bogdan Purcareata
On 28.06.2016 17:16, Peter Maydell wrote: > On 16 June 2016 at 14:58, Ard Biesheuvel wrote: >> On 2 June 2016 at 14:45, Alexander Graf wrote: >>> On 02.06.16 14:32, Peter Maydell wrote: This patch seems to change the property of the emulated PCIe controller based on the host PCIe contro

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

2016-06-29 Thread Cédric Le Goater
On 06/28/2016 08:24 PM, Cédric Le Goater wrote: > The Aspeed AST2400 soc includes a static memory controller for the BMC > which supports NOR, NAND and SPI flash memory modules. This controller > has two modes : the SMC for the legacy interface which supports only > one module and the FMC for the n

Re: [Qemu-devel] Regression: virtio-pci: convert to ioeventfd callbacks

2016-06-29 Thread Jason Wang
On 2016年06月29日 15:23, Cornelia Huck wrote: On Wed, 29 Jun 2016 09:41:50 +0800 Jason Wang wrote: On 2016年06月27日 17:44, Peter Lieven wrote: Hi, with the above patch applied: commit 9f06e71a567ba5ee8b727e65a2d5347fd331d2aa Author: Cornelia Huck Date: Fri Jun 10 11:04:12 2016 +0200 v

Re: [Qemu-devel] [PULL 6/8] qemu-img: move common options parsing before commands processing

2016-06-29 Thread Denis V. Lunev
On 06/29/2016 12:27 AM, Stefan Hajnoczi wrote: From: "Denis V. Lunev" This is necessary to enable creation of common qemu-img options which will be specified before command. The patch also enables '-V' alias to '--version' (exactly like in other block utilities) and documents this change. Sig

Re: [Qemu-devel] [PATCH] configure: mark qemu-ga VSS includes as system headers

2016-06-29 Thread Thomas Huth
On 29.06.2016 01:43, Michael Roth wrote: > As of e4650c81, we do w32 builds with -Werror enabled. Unfortunately > for cases where we enable VSS support in qemu-ga, we still have > warnings generated by VSS includes that ship as part of the Microsoft > VSS SDK. > > We can selectively address a numb

Re: [Qemu-devel] [PATCH v4 1/3] block: ignore flush requests when storage is clean

2016-06-29 Thread Denis V. Lunev
On 06/29/2016 04:12 AM, Fam Zheng wrote: On Tue, 06/28 12:10, Denis V. Lunev wrote: On 06/28/2016 04:27 AM, Fam Zheng wrote: On Mon, 06/27 17:47, Denis V. Lunev wrote: From: Evgeny Yakovlev Some guests (win2008 server for example) do a lot of unnecessary flushing when underlying media has no

Re: [Qemu-devel] [PATCH 1/3] block: ignore flush requests when storage is clean

2016-06-29 Thread Denis V. Lunev
On 06/29/2016 10:36 AM, Paolo Bonzini wrote: On 28/06/2016 23:01, Paolo Bonzini wrote: On 24/06/2016 17:06, Denis V. Lunev wrote: From: Evgeny Yakovlev Some guests (win2008 server for example) do a lot of unnecessary flushing when underlying media has not changed. This adds additional overh

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

2016-06-29 Thread Zhou Jie
Hi Alex, And yet we have struct pci_dev.broken_intx_masking and we test for working DisINTx via pci_intx_mask_supported() rather than simply looking for a PCIe device. Some devices are broken and some simply don't follow the spec, so you're going to need to deal with that or exclude those devic

Re: [Qemu-devel] [PATCH v4 1/3] block: ignore flush requests when storage is clean

2016-06-29 Thread Stefan Hajnoczi
On Wed, Jun 29, 2016 at 09:12:41AM +0800, Fam Zheng wrote: > On Tue, 06/28 12:10, Denis V. Lunev wrote: > > On 06/28/2016 04:27 AM, Fam Zheng wrote: > > > On Mon, 06/27 17:47, Denis V. Lunev wrote: > > > > From: Evgeny Yakovlev > > > > > > > > Some guests (win2008 server for example) do a lot of

[Qemu-devel] [Bug 1586229] Re: seabios hell

2016-06-29 Thread T. Huth
Sounds like your describing problems with SeaBIOS, not with QEMU. May I suggest to report this issues to the SeaBIOS project instead? See http://seabios.org/ -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/b

Re: [Qemu-devel] Regression: virtio-pci: convert to ioeventfd callbacks

2016-06-29 Thread Cornelia Huck
On Wed, 29 Jun 2016 16:21:07 +0800 Jason Wang wrote: > > > On 2016年06月29日 15:23, Cornelia Huck wrote: > > On Wed, 29 Jun 2016 09:41:50 +0800 > > Jason Wang wrote: > > > >> > >> On 2016年06月27日 17:44, Peter Lieven wrote: > >>> Hi, with the above patch applied: > >>> > >>> commit 9f06e71a567ba5ee

Re: [Qemu-devel] [PATCH V3 2/3] hw/apci: handle 64-bit MMIO regions correctly

2016-06-29 Thread Igor Mammedov
On Tue, 28 Jun 2016 20:08:42 +0300 Marcel Apfelbaum wrote: > On 06/28/2016 05:39 PM, Igor Mammedov wrote: > > On Tue, 28 Jun 2016 12:59:27 +0300 > > Marcel Apfelbaum wrote: > > > >> In build_crs(), the calculation and merging of the ranges already happens > >> in 64-bit, but the entry boundari

Re: [Qemu-devel] [PULL 00/32] Misc patches for QEMU soft freeze

2016-06-29 Thread Peter Maydell
On 28 June 2016 at 18:33, Paolo Bonzini wrote: > The following changes since commit 7dd929dfdc5c52ce79b21bf557ff506e89acbf63: > > configure: Make AVX2 test robust to non-ELF systems (2016-06-28 15:40:40 > +0100) > > are available in the git repository at: > > git://github.com/bonzini/qemu.git

Re: [Qemu-devel] [PATCH 2/3] replay: allow replay stopping and restarting

2016-06-29 Thread Pavel Dovgalyuk
Ping? Pavel Dovgalyuk > -Original Message- > From: Pavel Dovgalyuk [mailto:dovga...@ispras.ru] > Sent: Monday, June 20, 2016 9:27 AM > To: 'Paolo Bonzini'; 'Pavel Dovgalyuk' > Cc: qemu-devel@nongnu.org; jasow...@redhat.com; ag...@suse.de; > da...@gibson.dropbear.id.au > Subject: RE: [PAT

Re: [Qemu-devel] [PATCH] block/qdev: Fix NULL access when using BB twice

2016-06-29 Thread Kevin Wolf
Am 23.06.2016 um 09:30 hat Kevin Wolf geschrieben: > BlockBackend has only a single pointer to its guest device, so it makes > sure that only a single guest device is attached to it. device-add > returns an error if you try to attach a second device to a BB. In order > to make the error message nic

Re: [Qemu-devel] Automated testing of block/gluster.c with upstream Gluster

2016-06-29 Thread Niels de Vos
On Wed, Jun 29, 2016 at 09:39:22AM +0200, Lukáš Doktor wrote: > Dne 28.6.2016 v 17:56 Niels de Vos napsal(a): > > On Tue, Jun 28, 2016 at 05:20:03PM +0200, Lukáš Doktor wrote: > > > Dne 28.6.2016 v 16:10 Kevin Wolf napsal(a): > > > > Am 28.06.2016 um 11:02 hat Niels de Vos geschrieben: > > > > > Hi

[Qemu-devel] [PULL 2/6] ipxe: add e1000e rom

2016-06-29 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- roms/Makefile | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/roms/Makefile b/roms/Makefile index 7bd1252..e8133fe 100644 --- a/roms/Makefile +++ b/roms/Makefile @@ -1,11 +1,13 @@ vgabios_variants := stdvga cirrus vmware qxl isavga vir

[Qemu-devel] [PULL 5/6] vmxnet3: add boot rom

2016-06-29 Thread Gerd Hoffmann
Disable for old machine types as this is a guest visible change. Signed-off-by: Gerd Hoffmann --- hw/net/vmxnet3.c | 1 + include/hw/i386/pc.h | 4 2 files changed, 5 insertions(+) diff --git a/hw/net/vmxnet3.c b/hw/net/vmxnet3.c index d978976..25cee9f 100644 --- a/hw/net/vmxnet3.c +++

[Qemu-devel] [PULL 3/6] ipxe: add vmxnet3 rom

2016-06-29 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- roms/Makefile | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/roms/Makefile b/roms/Makefile index e8133fe..88b3709 100644 --- a/roms/Makefile +++ b/roms/Makefile @@ -1,8 +1,8 @@ vgabios_variants := stdvga cirrus vmware qxl isavga virti

[Qemu-devel] [PULL 0/6] ipxe: update submodule from 4e03af8ec to 041863191

2016-06-29 Thread Gerd Hoffmann
c-for-2.7-20160623' into staging (2016-06-23 11:53:14 +0100) are available in the git repository at: git://git.kraxel.org/qemu tags/pull-ipxe-20160629-1 for you to fetch changes up to c52125ab9280733b8d265195f6ffe9c76772b0a5: ipxe: update prebuilt binaries (2016-06-24 14:1

Re: [Qemu-devel] [PATCH 2/3] ide: ignore retry_unit check for non-retry operations

2016-06-29 Thread Evgeny Yakovlev
On 28.06.2016 23:56, Paolo Bonzini wrote: On 24/06/2016 17:06, Denis V. Lunev wrote: When doing DMA request ide/core.c will set s->retry_unit to s->unit in ide_start_dma. When dma completes ide_set_inactive sets retry_unit to -1. After that ide_flush_cache runs and fails thanks to blkdebug. i

[Qemu-devel] [PULL 1/6] ipxe: update submodule from 4e03af8ec to 041863191

2016-06-29 Thread Gerd Hoffmann
shortlog Andrew Widdersheim (1): [netdevice] Add "ifname" setting Carl Henrik Lunde (1): [vmxnet3] Avoid completely filling the TX descriptor ring Christian Hesse (2): [golan] Fix build error on some versions of gcc [ath9k] Fix buffer overrun for ar9287 Christia

[Qemu-devel] [PULL 6/6] ipxe: update prebuilt binaries

2016-06-29 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- pc-bios/efi-e1000.rom| Bin 196608 -> 209408 bytes pc-bios/efi-e1000e.rom | Bin 0 -> 209408 bytes pc-bios/efi-eepro100.rom | Bin 197120 -> 209920 bytes pc-bios/efi-ne2k_pci.rom | Bin 195584 -> 208384 bytes pc-bios/efi-pcnet.rom| Bin 195584 -> 208384 b

[Qemu-devel] [PULL 4/6] e1000e: add boot rom

2016-06-29 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- hw/net/e1000e.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/net/e1000e.c b/hw/net/e1000e.c index 692283f..4778744 100644 --- a/hw/net/e1000e.c +++ b/hw/net/e1000e.c @@ -693,6 +693,7 @@ static void e1000e_class_init(ObjectClass *class, void *data)

[Qemu-devel] [PATCH v2 kernel 2/7] virtio-balloon: define new feature bit and page bitmap head

2016-06-29 Thread Liang Li
Add a new feature which supports sending the page information with a bitmap. The current implementation uses PFNs array, which is not very efficient. Using bitmap can improve the performance of inflating/deflating significantly The page bitmap header will used to tell the host some information abo

[Qemu-devel] [PATCH v2 kernel 0/7] Extend virtio-balloon for fast (de)inflating & fast live migration

2016-06-29 Thread Liang Li
This patch set contains two parts of changes to the virtio-balloon. One is the change for speeding up the inflating & deflating process, the main idea of this optimization is to use bitmap to send the page information to host instead of the PFNs, to reduce the overhead of virtio data transmission

[Qemu-devel] [PATCH v2 kernel 5/7] virtio-balloon: define feature bit and head for misc virt queue

2016-06-29 Thread Liang Li
Define a new feature bit which supports a new virtual queue. This new virtual qeuque is for information exchange between hypervisor and guest. The VMM hypervisor can make use of this virtual queue to request the guest do some operations, e.g. drop page cache, synchronize file system, etc. And the V

[Qemu-devel] [PATCH v2 kernel 4/7] virtio-balloon: speed up inflate/deflate process

2016-06-29 Thread Liang Li
The implementation of the current virtio-balloon is not very efficient, the time spends on different stages of inflating the balloon to 7GB of a 8GB idle guest: a. allocating pages (6.5%) b. sending PFNs to host (68.3%) c. address translation (6.1%) d. madvise (19%) It takes about 4126ms for the

[Qemu-devel] [PATCH v2 kernel 3/7] mm: add a function to get the max pfn

2016-06-29 Thread Liang Li
Expose the function to get the max pfn, so it can be used in the virtio-balloon device driver. Signed-off-by: Liang Li Cc: Andrew Morton Cc: Mel Gorman Cc: Michael S. Tsirkin Cc: Paolo Bonzini Cc: Cornelia Huck Cc: Amit Shah --- mm/page_alloc.c | 6 ++ 1 file changed, 6 insertions(+)

[Qemu-devel] [PATCH v2 kernel 6/7] mm: add the related functions to get free page info

2016-06-29 Thread Liang Li
Save the free page info into a page bitmap, will be used in virtio balloon device driver. Signed-off-by: Liang Li Cc: Andrew Morton Cc: Mel Gorman Cc: Michael S. Tsirkin Cc: Paolo Bonzini Cc: Cornelia Huck Cc: Amit Shah --- mm/page_alloc.c | 46 +

[Qemu-devel] [PATCH v2 kernel 1/7] virtio-balloon: rework deflate to add page to a list

2016-06-29 Thread Liang Li
will allow faster notifications using a bitmap down the road. balloon_pfn_to_page() can be removed because it's useless. Signed-off-by: Liang Li Signed-off-by: Michael S. Tsirkin Cc: Paolo Bonzini Cc: Cornelia Huck Cc: Amit Shah --- drivers/virtio/virtio_balloon.c | 22 --

Re: [Qemu-devel] [PULL 00/32] Misc patches for QEMU soft freeze

2016-06-29 Thread Paolo Bonzini
On 29/06/2016 11:42, Peter Maydell wrote: > On 28 June 2016 at 18:33, Paolo Bonzini wrote: >> The following changes since commit 7dd929dfdc5c52ce79b21bf557ff506e89acbf63: >> >> configure: Make AVX2 test robust to non-ELF systems (2016-06-28 15:40:40 >> +0100) >> >> are available in the git re

[Qemu-devel] [PATCH v2 kernel 7/7] virtio-balloon: tell host vm's free page info

2016-06-29 Thread Liang Li
Support the request for vm's free page information, response with a page bitmap. QEMU can make use of this free page bitmap to speed up live migration process by skipping process the free pages. Signed-off-by: Liang Li Cc: Michael S. Tsirkin Cc: Paolo Bonzini Cc: Cornelia Huck Cc: Amit Shah -

Re: [Qemu-devel] [PATCH v2 1/2] trace: [linux-user] Commandline arguments to control tracing

2016-06-29 Thread Lluís Vilanova
Stefan Hajnoczi writes: > On Wed, Jun 22, 2016 at 12:04:35PM +0200, Lluís Vilanova wrote: >> @@ -4047,6 +4064,12 @@ static const struct qemu_argument arg_table[] = { >> "", "log system calls"}, >> {"seed", "QEMU_RAND_SEED", true, handle_arg_randseed, >> "", "Seed for p

Re: [Qemu-devel] [PATCH 2/3] replay: allow replay stopping and restarting

2016-06-29 Thread Paolo Bonzini
On 20/06/2016 08:26, Pavel Dovgalyuk wrote: >> From: Paolo Bonzini [mailto:pbonz...@redhat.com] >>> From: "Pavel Dovgalyuk" >>> This patch fixes bug with stopping and restarting replay >>> through monitor. >>> >>> Signed-off-by: Pavel Dovgalyuk >>> --- >>> block/blkreplay.c| 18 +

Re: [Qemu-devel] [PATCH 2/3] ide: ignore retry_unit check for non-retry operations

2016-06-29 Thread Paolo Bonzini
On 29/06/2016 10:35, Evgeny Yakovlev wrote: >>> >> Wouldn't the assertion fail for a PIO read/write too? Perhaps >> retry_unit should be set to s->unit in ide_transfer_start too. > > If PIO follows DMA and fails then yes, it looks like it will trigger an > assert. I am not sure about setting re

Re: [Qemu-devel] [PATCH 0/2] memory/intel_iommu: Generate error for incompatible usage

2016-06-29 Thread Paolo Bonzini
On 28/06/2016 16:49, Alex Williamson wrote: > Paolo & Michael, > > Any comments on this series? I think we need Paolo's ack for the memory > changes and either of your ack for hw/i386/. I'm happy to pull this > through my tree with your approval though. Thanks, I think I already acked the ca

Re: [Qemu-devel] [PATCH v2 1/3] char: clean up remaining chardevs when leaving

2016-06-29 Thread Paolo Bonzini
On 16/06/2016 21:28, marcandre.lur...@redhat.com wrote: > From: Marc-André Lureau > > This helps to remove various chardev resources leaks when leaving qemu. > > Signed-off-by: Marc-André Lureau > --- > qemu-char.c | 11 +++ > 1 file changed, 11 insertions(+) > > diff --git a/qemu-c

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

2016-06-29 Thread Mark Cave-Ayland
Okay. Can you confirm which version (or git revision) you've used to apply the patch so I can try and reproduce locally? -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1588328 Title: Qemu 2.6 Solari

Re: [Qemu-devel] Regression: virtio-pci: convert to ioeventfd callbacks

2016-06-29 Thread Cornelia Huck
On Wed, 29 Jun 2016 09:41:50 +0800 Jason Wang wrote: > On 2016年06月27日 17:44, Peter Lieven wrote: > > Hi, with the above patch applied: > > > > commit 9f06e71a567ba5ee8b727e65a2d5347fd331d2aa > > Author: Cornelia Huck > > Date: Fri Jun 10 11:04:12 2016 +0200 > > > > virtio-pci: convert to

Re: [Qemu-devel] [PULL 30/34] virtio-bus: have callers tolerate new host notifier api

2016-06-29 Thread Marc-André Lureau
Hi On Fri, Jun 24, 2016 at 7:55 AM, Michael S. Tsirkin wrote: > From: Cornelia Huck > > Have vhost and dataplane use the new api for transports that > have been converted. > > Signed-off-by: Cornelia Huck > Reviewed-by: Fam Zheng > Reviewed-by: Stefan Hajnoczi > Reviewed-by: Michael S. Tsirki

[Qemu-devel] [PATCH v0] spapr: Restore support for 970MP and POWER8NVL CPU cores

2016-06-29 Thread Bharata B Rao
Introduction of core based CPU hotplug for PowerPC sPAPR didn't add support for 970MP and POWER8NVL based core types. Add support for the same. While we are here, add support for explicit specification of POWER5+_v2.1 core type. Signed-off-by: Bharata B Rao --- hw/ppc/spapr_cpu_core.c | 20

Re: [Qemu-devel] [PATCH v6 5/7] util: add QAuthZ object as an authorization base class

2016-06-29 Thread Daniel P. Berrange
On Tue, Jun 28, 2016 at 06:22:10PM +0200, Marc-André Lureau wrote: > > + > > +static const TypeInfo authz_info = { > > +.parent = TYPE_OBJECT, > > +.name = TYPE_QAUTHZ, > > +.instance_size = sizeof(QAuthZ), > > +.class_size = sizeof(QAuthZClass), > > .abstract = true? (perhaps it'

Re: [Qemu-devel] [PATCH 2/3] replay: allow replay stopping and restarting

2016-06-29 Thread Pavel Dovgalyuk
> From: Paolo Bonzini [mailto:paolo.bonz...@gmail.com] On Behalf Of Paolo > Bonzini > On 20/06/2016 08:26, Pavel Dovgalyuk wrote: > >> From: Paolo Bonzini [mailto:pbonz...@redhat.com] > >>> From: "Pavel Dovgalyuk" > >>> This patch fixes bug with stopping and restarting replay > >>> through monito

Re: [Qemu-devel] [PATCH v2 1/3] char: clean up remaining chardevs when leaving

2016-06-29 Thread Marc-André Lureau
Hi On Wed, Jun 29, 2016 at 12:53 PM, Paolo Bonzini wrote: > > > On 16/06/2016 21:28, marcandre.lur...@redhat.com wrote: >> From: Marc-André Lureau >> >> This helps to remove various chardev resources leaks when leaving qemu. >> >> Signed-off-by: Marc-André Lureau >> --- >> qemu-char.c | 11 +++

Re: [Qemu-devel] [RFH PATCH] vhost-user-test: fix g_cond_wait_until compat implementation

2016-06-29 Thread Marc-André Lureau
Hi On Tue, Jun 28, 2016 at 7:22 PM, Paolo Bonzini wrote: > This fixes compilation with glib versions up to 2.30, such > as the one in CentOS 6. > What's RFH in title? :) (not sure this applies here: http://www.urbandictionary.com/define.php?term=rfh) > Even with this patch the test fails though

Re: [Qemu-devel] [PULL 30/34] virtio-bus: have callers tolerate new host notifier api

2016-06-29 Thread Cornelia Huck
On Wed, 29 Jun 2016 13:37:15 +0200 Marc-André Lureau wrote: > Hi > > On Fri, Jun 24, 2016 at 7:55 AM, Michael S. Tsirkin wrote: > > From: Cornelia Huck > > > > Have vhost and dataplane use the new api for transports that > > have been converted. > > > > Signed-off-by: Cornelia Huck > > Review

Re: [Qemu-devel] [PATCH 00/17] block: Convert common I/O path to BdrvChild

2016-06-29 Thread Kevin Wolf
Am 28.06.2016 um 15:28 hat Stefan Hajnoczi geschrieben: > Do you want to take it through your tree to avoid > conflicts/dependencies? > > Acked-by: Stefan Hajnoczi Yes, thanks. I've applied it to my tree now (with a few fixes addressing the review comments). Kevin pgpv9vsAWc2g7.pgp Descriptio

Re: [Qemu-devel] [PATCH] scsi: esp: fix migration

2016-06-29 Thread Juan Quintela
Paolo Bonzini wrote: > On 27/06/2016 09:20, Amit Shah wrote: >> On (Mon) 20 Jun 2016 [16:33:26], Paolo Bonzini wrote: >>> Commit 926cde5 ("scsi: esp: make cmdbuf big enough for maximum CDB size", >>> 2016-06-16) changed the size of a migrated field. Split it in two >>> parts, and only migrate the

Re: [Qemu-devel] [RFH PATCH] vhost-user-test: fix g_cond_wait_until compat implementation

2016-06-29 Thread Paolo Bonzini
On 29/06/2016 13:48, Marc-André Lureau wrote: > Hi > > On Tue, Jun 28, 2016 at 7:22 PM, Paolo Bonzini wrote: >> This fixes compilation with glib versions up to 2.30, such >> as the one in CentOS 6. >> > > What's RFH in title? :) (not sure this applies here: > http://www.urbandictionary.com/def

Re: [Qemu-devel] [Qemu-ppc] [PATCH] target-ppc: gen_pause for instructions: yield, mdoio, mdoom, miso

2016-06-29 Thread Benjamin Herrenschmidt
On Fri, 2016-06-24 at 13:18 -0700, Aaron Larson wrote: > Call gen_pause for all "or rx,rx,rx" encodings other nop.  This > provides a reasonable implementation for yield, and a better > approximation for mdoio, mdoom, and miso.  The choice to pause for > all > encodings !=0 leverages the PowerISA a

[Qemu-devel] [PATCH v2 12/17] block: Convert bdrv_write() to BdrvChild

2016-06-29 Thread Kevin Wolf
Signed-off-by: Kevin Wolf Acked-by: Stefan Hajnoczi --- This patch contains non-trivial fixes, so I think it's worth sending out a v2 for it even though I already applied the series. I added a coroutine entry wrapper qcow(2)_write that can be used from .bdrv_write_compressed. These wrappers will

[Qemu-devel] [PATCH] virtio: Fix setting up host notifiers for vhost

2016-06-29 Thread Cornelia Huck
When setting up host notifiers, virtio_bus_set_host_notifier() simply switches the handler. This will only work, however, if the ioeventfd has already been setup; this is true for dataplane, but not for vhost. Fix this by starting the ioeventfd if that has not happened before. While we're at it,

Re: [Qemu-devel] [PATCH v6 4/7] qom: support arbitrary non-scalar properties with -object

2016-06-29 Thread Daniel P. Berrange
On Tue, Jun 28, 2016 at 06:09:08PM +0200, Marc-André Lureau wrote: > Hi > > On Tue, Jun 14, 2016 at 6:07 PM, Daniel P. Berrange > wrote: > > The current -object command line syntax only allows for > > creation of objects with scalar properties, or a list > > with a fixed scalar element type. Obj

[Qemu-devel] [PATCH] spec/qcow2: bitmaps: zero bitmap table offset

2016-06-29 Thread Vladimir Sementsov-Ogievskiy
This allows effectively free in_use bitmap clusters including bitmap table without loss of meaningful data. Now it is possible only to free end-point clusters and zero-out (not free) bitmap table Signed-off-by: Vladimir Sementsov-Ogievskiy --- Hi all! Here is one small but significant addition

Re: [Qemu-devel] [PATCH] linux-user: convert sockaddr_ll from host to target

2016-06-29 Thread Laurent Vivier
Le 27/06/2016 à 00:18, Laurent Vivier a écrit : > As we convert sockaddr for AF_PACKET family for sendto() (target to > host) we need also to convert this for getsockname() (host to target). > > arping uses getsockname() to get the the interface address and uses > this address with sendto(). > >

Re: [Qemu-devel] [PATCH] virtio: Fix setting up host notifiers for vhost

2016-06-29 Thread Marc-André Lureau
Hi On Wed, Jun 29, 2016 at 2:17 PM, Cornelia Huck wrote: > When setting up host notifiers, virtio_bus_set_host_notifier() > simply switches the handler. This will only work, however, if > the ioeventfd has already been setup; this is true for dataplane, > but not for vhost. > > Fix this by starti

Re: [Qemu-devel] [PATCH v0] spapr: Restore support for 970MP and POWER8NVL CPU cores

2016-06-29 Thread Thomas Huth
On 29.06.2016 13:37, Bharata B Rao wrote: > Introduction of core based CPU hotplug for PowerPC sPAPR didn't > add support for 970MP and POWER8NVL based core types. Add support for > the same. > > While we are here, add support for explicit specification of POWER5+_v2.1 > core type. > > Signed-off

Re: [Qemu-devel] [PATCH] virtio: abort on fatal error instead of just exiting

2016-06-29 Thread Markus Armbruster
Igor Mammedov writes: > replace mainly useless exit(1) on fatal error path with > abort(), so that it would be possible to generate core > dump, that could be used to analyse cause of problem. > > Signed-off-by: Igor Mammedov > --- > hw/virtio/virtio.c | 24 > 1 file ch

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

2016-06-29 Thread Paolo Bonzini
On 29/06/2016 10:47, vija...@cavium.com wrote: > From: Vijay > > Use Neon instructions to perform zero checking of > buffer. This is helps in reducing total migration time. > > Use case: Idle VM live migration with 4 VCPUS and 8GB ram > running CentOS 7. > > Without Neon, the Total migration

Re: [Qemu-devel] [PATCH] spec/qcow2: bitmaps: zero bitmap table offset

2016-06-29 Thread Vladimir Sementsov-Ogievskiy
On 29.06.2016 15:22, Vladimir Sementsov-Ogievskiy wrote: This allows effectively free in_use bitmap clusters including bitmap table without loss of meaningful data. Now it is possible only to free end-point clusters and zero-out (not free) bitmap table Signed-off-by: Vladimir Sementsov-Ogievski

Re: [Qemu-devel] [PATCH 3/2] MAINTAINERS: Remove Blue Swirl leftovers

2016-06-29 Thread Ed Maste
On 20 June 2016 at 10:19, Markus Armbruster wrote: > > As per Paolo's recommendation, downgrade status of "BSD user" from > Maintained to Orphan since the FreeBSD guys effectively forked it, and > "SPARC target" from Maintained to Odd Fixes, since we still have the > overall TCG maintainer looking

[Qemu-devel] [PATCH] vhost-user: disable chardev handlers on close

2016-06-29 Thread Paolo Bonzini
This otherwise causes a use-after-free if network backend cleanup is performed before character device cleanup. Cc: Marc-André Lureau Signed-off-by: Paolo Bonzini --- I'm including this in the pull request too. net/vhost-user.c | 5 + 1 file changed, 5 insertions(+) diff --git a/n

[Qemu-devel] [PATCH] vhost-user: disable chardev handlers on close

2016-06-29 Thread Paolo Bonzini
This otherwise causes a use-after-free if network backend cleanup is performed before character device cleanup. Cc: Marc-André Lureau Signed-off-by: Paolo Bonzini --- net/vhost-user.c | 5 + 1 file changed, 5 insertions(+) diff --git a/net/vhost-user.c b/net/vhost-user.c index 636899a..92f

Re: [Qemu-devel] [PATCH 3/2] MAINTAINERS: Remove Blue Swirl leftovers

2016-06-29 Thread Paolo Bonzini
On 29/06/2016 15:24, Ed Maste wrote: > On 20 June 2016 at 10:19, Markus Armbruster wrote: >> >> As per Paolo's recommendation, downgrade status of "BSD user" from >> Maintained to Orphan since the FreeBSD guys effectively forked it, and >> "SPARC target" from Maintained to Odd Fixes, since we st

Re: [Qemu-devel] [PATCH v0] spapr: Restore support for 970MP and POWER8NVL CPU cores

2016-06-29 Thread Bharata B Rao
On Wed, Jun 29, 2016 at 02:28:08PM +0200, Thomas Huth wrote: > On 29.06.2016 13:37, Bharata B Rao wrote: > > Introduction of core based CPU hotplug for PowerPC sPAPR didn't > > add support for 970MP and POWER8NVL based core types. Add support for > > the same. > > > > While we are here, add suppor

[Qemu-devel] Bug or what?

2016-06-29 Thread Mundek
Hi, i am developing an operating system, and when i run "qemu-system-i386 -kernel kernel.mkern -d in_asm -no-reboot" i get (at the end): Servicing hardware INT=0x20 IN: 0x0020: movsl %ds:(%esi),%es:(%edi) 0x0021: incb (%eax) 0x0023: lock xchg %ebp,%ecx 0x0

[Qemu-devel] [PATCH v3 0/1] ARM64: Live migration optimization

2016-06-29 Thread vijayak
From: Vijaya Kumar K To optimize Live migration time on ARM64 machine, Neon instructions are used for Zero page checking. With these changes, total migration time comes down from 3.5 seconds to 2.9 seconds. These patches are tested on top of (GICv3 live migration support) https://lists.gnu.org/

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

2016-06-29 Thread vijayak
From: Vijay Use Neon instructions to perform zero checking of buffer. This is helps in reducing total migration time. Use case: Idle VM live migration with 4 VCPUS and 8GB ram running CentOS 7. Without Neon, the Total migration time is 3.5 Sec Migration status: completed total time: 3560 milli

Re: [Qemu-devel] [PATCH v9 12/13] e1000e: remove unnecessary internal msi state flag

2016-06-29 Thread Markus Armbruster
Cao jin writes: > Internal big flag E1000E_USE_MSI is unnecessary, also is the helper > function: e1000e_init_msi(), e1000e_cleanup_msi(), so, remove them all. > > cc: Dmitry Fleytman > cc: Jason Wang > cc: Markus Armbruster > cc: Marcel Apfelbaum > cc: Michael S. Tsirkin > > Signed-off-by:

Re: [Qemu-devel] [PATCH v9 13/13] vmw_pvscsi: remove unnecessary internal msi state flag

2016-06-29 Thread Markus Armbruster
Cao jin writes: > Internal flag msi_used is uncesessary, msi_uninit() could be called > directly, msi_enabled() is enough to check device msi state. > > But for migration compatibility, keep the field in structure. > > cc: Paolo Bonzini > cc: Dmitry Fleytman > cc: Markus Armbruster > cc: Marce

Re: [Qemu-devel] [PATCH 1/3] Mediated device Core driver

2016-06-29 Thread Xiao Guangrong
On 06/21/2016 12:31 AM, Kirti Wankhede wrote: Design for Mediated Device Driver: Main purpose of this driver is to provide a common interface for mediated device management that can be used by differnt drivers of different devices. This module provides a generic interface to create the device,

Re: [Qemu-devel] [RFC v3 17/19] tcg: enable thread-per-vCPU

2016-06-29 Thread Sergey Fedorov
On 03/06/16 23:40, Alex Bennée wrote: > There are a number of changes that occur at the same time here: > > - tb_lock is no longer a NOP for SoftMMU > > The tb_lock protects both translation and memory map structures. The > debug assert is updated to reflect this. This could be a separate pa

Re: [Qemu-devel] [PATCH v17 0/4][WIP] block/gluster: add support for multiple gluster servers

2016-06-29 Thread Jeff Cody
On Wed, Jun 15, 2016 at 01:55:43PM +0530, Prasanna Kumar Kalever wrote: > This version of patches are rebased on master branch. > > Prasanna Kumar Kalever (4): > block/gluster: rename [server, volname, image] -> [host, volume, path] > block/gluster: code cleanup > block/gluster: using new qa

Re: [Qemu-devel] [PATCH] virtio: Fix setting up host notifiers for vhost

2016-06-29 Thread Cornelia Huck
On Wed, 29 Jun 2016 14:23:42 +0200 Marc-André Lureau wrote: > Hi > > On Wed, Jun 29, 2016 at 2:17 PM, Cornelia Huck > wrote: > > When setting up host notifiers, virtio_bus_set_host_notifier() > > simply switches the handler. This will only work, however, if > > the ioeventfd has already been s

Re: [Qemu-devel] [PATCH v17 0/4][WIP] block/gluster: add support for multiple gluster servers

2016-06-29 Thread Daniel P. Berrange
On Wed, Jun 29, 2016 at 10:11:31AM -0400, Jeff Cody wrote: > On Wed, Jun 15, 2016 at 01:55:43PM +0530, Prasanna Kumar Kalever wrote: > > This version of patches are rebased on master branch. > > > > Prasanna Kumar Kalever (4): > > block/gluster: rename [server, volname, image] -> [host, volume,

Re: [Qemu-devel] [RFC v3 19/19] cpu-exec: remove tb_lock from the hot-path

2016-06-29 Thread Sergey Fedorov
On 03/06/16 23:40, Alex Bennée wrote: > Lock contention in the hot path of moving between existing patched > TranslationBlocks is the main drag on MTTCG performance. This patch > pushes the tb_lock() usage down to the two places that really need it: > > - code generation (tb_gen_code) > - jump

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

2016-06-29 Thread Zhen Ning Lim
May 11 2016. qemu-2.6.0 from http://wiki.qemu.org/Download -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1588328 Title: Qemu 2.6 Solaris 9 Sparc Segmentation Fault Status in QEMU: New Bug descr

Re: [Qemu-devel] [RFC v3 19/19] cpu-exec: remove tb_lock from the hot-path

2016-06-29 Thread Alex Bennée
Sergey Fedorov writes: > On 03/06/16 23:40, Alex Bennée wrote: >> Lock contention in the hot path of moving between existing patched >> TranslationBlocks is the main drag on MTTCG performance. This patch >> pushes the tb_lock() usage down to the two places that really need it: >> >> - code gen

Re: [Qemu-devel] [PATCH] virtio: Fix setting up host notifiers for vhost

2016-06-29 Thread Paolo Bonzini
On 29/06/2016 16:15, Cornelia Huck wrote: > > I can see that one of the qemus sits on event_notifier_test_and_clear > when vhost tries to shut down. (I am thoroughly confused by all of > that qtest setup, so I have no idea which qemu instance this is...) Stupid question ahead---if you mean QEMU

Re: [Qemu-devel] [RFC v3 19/19] cpu-exec: remove tb_lock from the hot-path

2016-06-29 Thread Sergey Fedorov
On 29/06/16 17:47, Alex Bennée wrote: > Sergey Fedorov writes: > >> On 03/06/16 23:40, Alex Bennée wrote: >>> Lock contention in the hot path of moving between existing patched >>> TranslationBlocks is the main drag on MTTCG performance. This patch >>> pushes the tb_lock() usage down to the two pl

Re: [Qemu-devel] [RFC 4/8] linux-user: Rework exclusive operation mechanism

2016-06-29 Thread Sergey Fedorov
On 27/06/16 12:02, Alex Bennée wrote: > Sergey Fedorov writes: > >> From: Sergey Fedorov >> (snip) >> diff --git a/linux-user/main.c b/linux-user/main.c >> index b9a4e0ea45ac..485336f78b8f 100644 >> --- a/linux-user/main.c >> +++ b/linux-user/main.c >> @@ -111,7 +111,8 @@ static pthread_mutex_t c

Re: [Qemu-devel] [RFC 6/8] linux-user: Support CPU work queue

2016-06-29 Thread Sergey Fedorov
On 27/06/16 12:31, Alex Bennée wrote: > Sergey Fedorov writes: > >> diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h >> index c1f59fa59d2c..23b4b50e0a45 100644 >> --- a/include/exec/exec-all.h >> +++ b/include/exec/exec-all.h >> @@ -407,4 +407,8 @@ extern int singlestep; >> extern C

Re: [Qemu-devel] [RFC 7/8] cpu-exec-common: Introduce async_safe_run_on_cpu()

2016-06-29 Thread Sergey Fedorov
On 27/06/16 12:36, Alex Bennée wrote: > Sergey Fedorov writes: > >> From: Sergey Fedorov >> (snip) >> diff --git a/cpus.c b/cpus.c >> index 98f60f6f98f5..bb6bd8615cfc 100644 >> --- a/cpus.c >> +++ b/cpus.c >> @@ -932,6 +932,18 @@ static void qemu_tcg_destroy_vcpu(CPUState *cpu) >> { >> } >> >>

Re: [Qemu-devel] [RFC 8/8] tcg: Make tb_flush() thread safe

2016-06-29 Thread Sergey Fedorov
On 28/06/16 19:18, Alex Bennée wrote: > Sergey Fedorov writes: > >> From: Sergey Fedorov >> >> Use async_safe_run_on_cpu() to make tb_flush() thread safe. >> >> Signed-off-by: Sergey Fedorov >> Signed-off-by: Sergey Fedorov >> --- >> translate-all.c | 12 >> 1 file changed, 8 inse

Re: [Qemu-devel] [PULL 0/8] Tracing patches

2016-06-29 Thread Peter Maydell
On 28 June 2016 at 22:27, Stefan Hajnoczi wrote: > The following changes since commit d7f30403576f04f1f3a5fb5a1d18cba8dfa7a6d2: > > cputlb: don't cpu_abort() if guest tries to execute outside RAM or RAM > (2016-06-28 18:50:53 +0100) > > are available in the git repository at: > > git://github

Re: [Qemu-devel] [PATCH] virtio: Fix setting up host notifiers for vhost

2016-06-29 Thread Cornelia Huck
On Wed, 29 Jun 2016 16:52:40 +0200 Paolo Bonzini wrote: > On 29/06/2016 16:15, Cornelia Huck wrote: > > > > I can see that one of the qemus sits on event_notifier_test_and_clear > > when vhost tries to shut down. (I am thoroughly confused by all of > > that qtest setup, so I have no idea which q

Re: [Qemu-devel] [PULL v2 00/24] linux-user changes for v2.7

2016-06-29 Thread Peter Maydell
On 28 June 2016 at 20:12, wrote: > From: Riku Voipio > > The following changes since commit c7288767523f6510cf557707d3eb5e78e519b90d: > > Merge remote-tracking branch 'remotes/dgibson/tags/ppc-for-2.7-20160623' > into staging (2016-06-23 11:53:14 +0100) > > are available in the git repository

Re: [Qemu-devel] [PATCH v2] target-ppc: Eliminate redundant and incorrect function booke206_page_size_to_tlb

2016-06-29 Thread alarson
David Gibson wrote on 06/28/2016 08:42:01 PM: > On Tue, Jun 28, 2016 at 06:50:05AM -0700, Aaron Larson wrote: > > > > Eliminate redundant and incorrect booke206_page_size_to_tlb function > > from ppce500_spin.c in preference to previously existing but newly > > exported definition from e500.c >

  1   2   >