Re: [Qemu-devel] [PATCH v7 0/4] Add Mediated device support

2016-08-31 Thread Jike Song
On 08/31/2016 02:12 PM, Tian, Kevin wrote: >> From: Alex Williamson [mailto:alex.william...@redhat.com] >> Sent: Wednesday, August 31, 2016 12:17 AM >> >> Hi folks, >> >> At KVM Forum we had a BoF session primarily around the mediated device >> sysfs interface. I'd like to share what I think we ag

Re: [Qemu-devel] [PATCH] scsi: check page count while initialising descriptor rings

2016-08-31 Thread P J P
+-- On Wed, 31 Aug 2016, P J P wrote --+ | | -if ((ri->reqRingNumPages > PVSCSI_SETUP_RINGS_MAX_NUM_PAGES) | -|| (ri->cmpRingNumPages > PVSCSI_SETUP_RINGS_MAX_NUM_PAGES)) { | +if (!ri->reqRingNumPages | +|| ri->reqRingNumPages > PVSCSI_SETUP_RINGS_MAX_NUM_PAGES | +

Re: [Qemu-devel] [PATCH V12 02/10] colo-compare: introduce colo compare initialization

2016-08-31 Thread Jason Wang
On 2016年08月17日 16:10, Zhang Chen wrote: This a COLO net ascii figure: Primary qemu Secondary qemu +--+ +--

Re: [Qemu-devel] [PATCH V12 03/10] net/colo.c: add colo.c to define and handle packet

2016-08-31 Thread Jason Wang
On 2016年08月17日 16:10, Zhang Chen wrote: The net/colo.c is used by colo-compare and filter-rewriter. this can share common data structure like net packet, and other functions. Signed-off-by: Zhang Chen Signed-off-by: Li Zhijian Signed-off-by: Wen Congyang --- net/Makefile.objs | 1 + n

Re: [Qemu-devel] [PATCH V12 04/10] Jhash: add linux kernel jhashtable in qemu

2016-08-31 Thread Jason Wang
On 2016年08月17日 16:10, Zhang Chen wrote: Jhash used by colo-compare and filter-rewriter s/used/will be used/ to save and lookup net connection info Signed-off-by: Zhang Chen Signed-off-by: Li Zhijian Signed-off-by: Wen Congyang --- include/qemu/jhash.h | 59

Re: [Qemu-devel] [PATCH V12 02/10] colo-compare: introduce colo compare initialization

2016-08-31 Thread Hailiang Zhang
On 2016/8/31 15:53, Jason Wang wrote: On 2016年08月17日 16:10, Zhang Chen wrote: This a COLO net ascii figure: Primary qemu Secondary qemu +--+ +--

[Qemu-devel] [RFC/PATCHSET 0/3] virtio: Implement virtio pstore device (v4)

2016-08-31 Thread Namhyung Kim
Hello, This is another iteration of the virtio-pstore work. I've addressed all comments from Daniel Berrange on the qemu side. * changes in v4) - use qio_channel_file_new_path() (Daniel) - rename to delete_old_pstore_file (Daniel) - convert G_REMOVE_SOURCE to FALSE (Daniel) * changes

[Qemu-devel] [PATCH 1/3] virtio: Basic implementation of virtio pstore driver

2016-08-31 Thread Namhyung Kim
The virtio pstore driver provides interface to the pstore subsystem so that the guest kernel's log/dump message can be saved on the host machine. Users can access the log file directly on the host, or on the guest at the next boot using pstore filesystem. It currently deals with kernel log (print

[Qemu-devel] [PATCH 3/3] kvmtool: Implement virtio-pstore device

2016-08-31 Thread Namhyung Kim
From: Namhyung Kim Add virtio pstore device to allow kernel log messages saved on the host. With this patch, it will save the log files under directory given by --pstore option. $ lkvm run --pstore=dir-xx (guest) # echo c > /proc/sysrq-trigger $ ls dir-xx dmesg-1.enc.z dmesg-2.enc.z

[Qemu-devel] [PATCH 2/3] qemu: Implement virtio-pstore device

2016-08-31 Thread Namhyung Kim
From: Namhyung Kim Add virtio pstore device to allow kernel log files saved on the host. It will save the log files on the directory given by pstore device option. $ qemu-system-x86_64 -device virtio-pstore,directory=dir-xx ... (guest) # echo c > /proc/sysrq-trigger $ ls dir-xx dmesg-1

Re: [Qemu-devel] MAINTAINERS leaves too many files uncovered

2016-08-31 Thread Markus Armbruster
I really shouldn't reply to this, because more maintainer duties is about the last thing I need, but here goes anyway: Paolo Bonzini writes: > On 30/08/2016 17:29, Markus Armbruster wrote: >> > > > Active subsystems lacking a maintainer include tilegx, qdev, replay. >> > > >> > > You, Eduardo,

Re: [Qemu-devel] DAX can not work on virtual nvdimm device

2016-08-31 Thread Xiao Guangrong
On 08/31/2016 01:09 AM, Dan Williams wrote: Can you post your exact reproduction steps? This test is not failing for me. Sure. 1. make the guest kernel based on your tree, the top commit is 10d7902fa0e82b (dax: unmap/truncate on device shutdown) and the config file can be found in

Re: [Qemu-devel] [PATCH V12 05/10] colo-compare: track connection and enqueue packet

2016-08-31 Thread Jason Wang
On 2016年08月17日 16:10, Zhang Chen wrote: In this patch we use kernel jhash table to track connection, and then enqueue net packet like this: + CompareState ++ | | +---+ +---+ +---+ |conn list +--->conn +->conn

Re: [Qemu-devel] [PATCH V12 02/10] colo-compare: introduce colo compare initialization

2016-08-31 Thread Zhang Chen
On 08/31/2016 03:53 PM, Jason Wang wrote: On 2016年08月17日 16:10, Zhang Chen wrote: This a COLO net ascii figure: Primary qemu Secondary qemu +--+ ++ | +-

Re: [Qemu-devel] [PATCH V12 06/10] colo-compare: introduce packet comparison thread

2016-08-31 Thread Jason Wang
On 2016年08月17日 16:10, Zhang Chen wrote: If primary packet is same with secondary packet, we will send primary packet and drop secondary packet, otherwise notify COLO frame to do checkpoint. If primary packet comes but secondary packet does not, after REGULAR_PACKET_CHECK_MS milliseconds we set

Re: [Qemu-devel] [PATCH V12 03/10] net/colo.c: add colo.c to define and handle packet

2016-08-31 Thread Zhang Chen
On 08/31/2016 04:04 PM, Jason Wang wrote: On 2016年08月17日 16:10, Zhang Chen wrote: The net/colo.c is used by colo-compare and filter-rewriter. this can share common data structure like net packet, and other functions. Signed-off-by: Zhang Chen Signed-off-by: Li Zhijian Signed-off-by: Wen C

Re: [Qemu-devel] [PATCH V12 04/10] Jhash: add linux kernel jhashtable in qemu

2016-08-31 Thread Zhang Chen
On 08/31/2016 04:05 PM, Jason Wang wrote: On 2016年08月17日 16:10, Zhang Chen wrote: Jhash used by colo-compare and filter-rewriter s/used/will be used/ OK~~ Thanks Zhang Chen to save and lookup net connection info Signed-off-by: Zhang Chen Signed-off-by: Li Zhijian Signed-off-by: We

Re: [Qemu-devel] [PATCH V12 02/10] colo-compare: introduce colo compare initialization

2016-08-31 Thread Jason Wang
On 2016年08月31日 17:03, Zhang Chen wrote: On 08/31/2016 03:53 PM, Jason Wang wrote: On 2016年08月17日 16:10, Zhang Chen wrote: This a COLO net ascii figure: Primary qemu Secondary qemu +--+ +---

Re: [Qemu-devel] [PATCH 0/2] virtio: fix VirtQueue->inuse field

2016-08-31 Thread Roman Kagan
On Tue, Aug 30, 2016 at 03:54:39PM -0400, Stefan Hajnoczi wrote: > On Mon, Aug 22, 2016 at 10:00 AM, Denis V. Lunev > wrote: > > On 08/15/2016 08:54 AM, Stefan Hajnoczi wrote: > >> > >> The VirtQueue->inuse field is not always updated correctly. These patches > >> fix > >> it. > >> > >> Originall

Re: [Qemu-devel] [PATCH v4 0/3] 9pfs security fixes

2016-08-31 Thread Greg Kurz
On Tue, 30 Aug 2016 15:39:13 -0400 Peter Maydell wrote: > On 30 August 2016 at 14:29, Peter Maydell wrote: > > On 30 August 2016 at 18:10, Greg Kurz wrote: > >> As reported by Felix Wilhelm, at various places in 9pfs, full paths are > >> created by concatenating a guest originated string to t

Re: [Qemu-devel] [PATCH V12 07/10] colo-compare: add TCP, UDP, ICMP packet comparison

2016-08-31 Thread Jason Wang
On 2016年08月17日 16:10, Zhang Chen wrote: We add TCP,UDP,ICMP packet comparison to replace IP packet comparison. This can increase the accuracy of the package comparison. Less checkpoint more efficiency. Signed-off-by: Zhang Chen Signed-off-by: Li Zhijian Signed-off-by: Wen Congyang --- net

Re: [Qemu-devel] [PATCH V12 02/10] colo-compare: introduce colo compare initialization

2016-08-31 Thread Zhang Chen
On 08/31/2016 05:20 PM, Jason Wang wrote: On 2016年08月31日 17:03, Zhang Chen wrote: On 08/31/2016 03:53 PM, Jason Wang wrote: On 2016年08月17日 16:10, Zhang Chen wrote: This a COLO net ascii figure: Primary qemu Secondary qemu +

Re: [Qemu-devel] [PATCH V12 00/10] Introduce COLO-compare and filter-rewriter

2016-08-31 Thread Jason Wang
On 2016年08月17日 16:10, Zhang Chen wrote: COLO-compare is a part of COLO project. It is used to compare the network package to help COLO decide whether to do checkpoint. Filter-rewriter is a part of COLO project too. It will rewrite some of secondary packet to make secondary guest's connection e

Re: [Qemu-devel] [PATCH v5 11/13] cpu-exec-common: Introduce async_safe_run_on_cpu()

2016-08-31 Thread Alex Bennée
Paolo Bonzini writes: >> The problem with CPUs coming up late is indeed present in this patch, >> I'll review your patch on the flight. :) >> >> synchronize_rcu() is actually relatively cheap with URCU, so I guess >> that's fine. An alternative to that could be a pthread_barrier_t, but >> it ca

[Qemu-devel] qemu-2.7 regression, IPXE boot in HVM fails

2016-08-31 Thread Olaf Hering
The following HVM domU.cfg crashes during boot from emulated network with qemu 2.7, but it works fine with qemu stable-2.6 branch: name='hvm' memory=1024 vcpus=2 boot="n" disk=[ 'file:/disk0.raw,hda,w', ] vif=[ 'mac=00:08:15:41:10:80,bridge=br0', ] keymap="de" serial="pty" builder="hvm" vnc=1 vncu

Re: [Qemu-devel] [PULL 3/3] vhost-user: Attempt to fix a race with set_mem_table.

2016-08-31 Thread Maxime Coquelin
On 08/14/2016 11:42 AM, Prerna Saxena wrote: On 14/08/16 8:21 am, "Michael S. Tsirkin" wrote: On Fri, Aug 12, 2016 at 07:16:34AM +, Prerna Saxena wrote: On 12/08/16 12:08 pm, "Fam Zheng" wrote: On Wed, 08/10 18:30, Michael S. Tsirkin wrote: From: Prerna Saxena The set_mem_ta

Re: [Qemu-devel] [PATCH V12 05/10] colo-compare: track connection and enqueue packet

2016-08-31 Thread Zhang Chen
On 08/31/2016 04:52 PM, Jason Wang wrote: On 2016年08月17日 16:10, Zhang Chen wrote: In this patch we use kernel jhash table to track connection, and then enqueue net packet like this: + CompareState ++ | | +---+ +---+ +---+ |conn lis

[Qemu-devel] [PATCH 1/2] scsi: mptconfig: fix format string

2016-08-31 Thread P J P
From: Prasad J Pandit When LSI SAS1068 Host Bus emulator builds configuration page headers, the format string used in 'mptsas_config_manufacturing_1' was wrong. It could lead to an invalid memory access. Reported-by: Tom Victor Fix-suggested-by: Paolo Bonzini Signed-off-by: Prasad J Pandit --

[Qemu-devel] [PATCH 2/2] scsi: mptconfig: fix an assert expression

2016-08-31 Thread P J P
From: Prasad J Pandit When LSI SAS1068 Host Bus emulator builds configuration page headers, mptsas_config_pack() asserts to check returned size value is within limit of 256 bytes. Fix that assert expression. Suggested-by: Paolo Bonzini Signed-off-by: Prasad J Pandit --- hw/scsi/mptconfig.c |

Re: [Qemu-devel] [PATCH] *** Vhost-pci RFC v2 ***

2016-08-31 Thread Marc-André Lureau
Hi On Sun, Jun 19, 2016 at 10:19 AM Wei Wang wrote: > This RFC proposes a design of vhost-pci, which is a new virtio device type. > The vhost-pci device is used for inter-VM communication. > > Before I send a more complete review of the spec, I have a few overall questions: - this patch is for

Re: [Qemu-devel] [PATCH v2 2/2] e1000: fix buliding complaint

2016-08-31 Thread Dmitry Fleytman
Reviewed-by: Dmitry Fleytman > On 30 Aug 2016, at 07:10 AM, Gonglei wrote: > > hw/net/e1000e_core.c:56: warning: e1000e_set_interrupt_cause declared inline > after being called > hw/net/e1000e_core.c:56: warning: previous declaration of > e1000e_set_interrupt_cause was here > > Signed-off-by

Re: [Qemu-devel] [PATCH v2] scsi: check page count while initialising descriptor rings

2016-08-31 Thread Dmitry Fleytman
> On 31 Aug 2016, at 09:49 AM, P J P wrote: > > From: Prasad J Pandit > > Vmware Paravirtual SCSI emulation uses command descriptors to > process SCSI commands. These descriptors come with their ring > buffers. A guest could set the page count for these rings to > an arbitrary value, leading t

Re: [Qemu-devel] [PATCH] qemu-iotests: Log QMP traffic in debug mode

2016-08-31 Thread Kevin Wolf
Am 23.08.2016 um 20:59 hat Eric Blake geschrieben: > On 08/23/2016 09:46 AM, Kevin Wolf wrote: > > Python tests are already annoying enough to debug. With QMP traffic > > available it's a little bit easier at least. > > > > Signed-off-by: Kevin Wolf > > --- > > tests/qemu-iotests/iotests.py | 5

Re: [Qemu-devel] [PATCH v5] virtio-pci: error out when both legacy and modern modes are disabled

2016-08-31 Thread Greg Kurz
Michael, I realize this patch fell through the cracks while I was away... the various reviews seemed to indicate there was a consensus to have this in 2.7 though. Do you have an opinion whether QEMU needs this or not ? Cc'ing Peter in case it is acceptable to apply the patch this late. Cheers.

[Qemu-devel] Make file problem?

2016-08-31 Thread Programmingkid
When I tried to make a change to the file hw/misc/macio/cuda.c, the make command would not detect the changes. I would have to delete the cuda.o file to make the changes actually compile.

Re: [Qemu-devel] [RFC] target-i386: present virtual L3 cache info for vcpus

2016-08-31 Thread Eduardo Habkost
On Wed, Aug 31, 2016 at 08:59:41AM +0800, Longpeng (Mike) wrote: [...] > >> -/* No L3 cache: */ > >> -#define L3_SIZE_KB 0 /* disabled */ > >> -#define L3_ASSOCIATIVITY 0 /* disabled */ > >> -#define L3_LINES_PER_TAG 0 /* disabled */ > >> -#define L3_LINE_SIZE 0 /*

Re: [Qemu-devel] [PATCH V7 0/6] coroutine: mmap stack memory and stack size

2016-08-31 Thread Kevin Wolf
Am 23.08.2016 um 16:21 hat Peter Lieven geschrieben: > I decided to split this from the rest of the Qemu RSS usage series as > it contains the more or less non contentious patches. > > I omitted the MAP_GROWSDOWN flag in mmap as we are not 100% sure which > side effects it has. > > I kept the gua

Re: [Qemu-devel] [PATCH 1/3] virtio: Basic implementation of virtio pstore driver

2016-08-31 Thread Michael S. Tsirkin
On Wed, Aug 31, 2016 at 05:08:00PM +0900, Namhyung Kim wrote: > The virtio pstore driver provides interface to the pstore subsystem so > that the guest kernel's log/dump message can be saved on the host > machine. Users can access the log file directly on the host, or on the > guest at the next bo

[Qemu-devel] Implementation of BusLogic SCSI host adapter (BT-958)

2016-08-31 Thread Денис Дмитриев
Hi, I'm trying to implement a buslogic scsi adapter(BT-958) for qemu. I realized the driver interaction with the ports through which the driver can write / read commands and parameters for the adapter. The driver was able to make an adapter sample procedure. The problem is that I do not understand

[Qemu-devel] QEMU and/or GDB position opening at AdaCore

2016-08-31 Thread Fabien Chouteau
Hello QEMU folks, AdaCore [1] is opening a QEMU and/or GDB engineer position. You guessed it, we are looking for someone familiar with low-level programming, assembly, CPU architectures, etc. On the QEMU side we work on the ARM, PPC, SPARC and x86 architectures in "full" system emulation only. Pr

Re: [Qemu-devel] [PATCH v7 0/4] Add Mediated device support

2016-08-31 Thread Alex Williamson
On Wed, 31 Aug 2016 15:04:13 +0800 Jike Song wrote: > On 08/31/2016 02:12 PM, Tian, Kevin wrote: > >> From: Alex Williamson [mailto:alex.william...@redhat.com] > >> Sent: Wednesday, August 31, 2016 12:17 AM > >> > >> Hi folks, > >> > >> At KVM Forum we had a BoF session primarily around the media

[Qemu-devel] [PATCH] sh4: fix broken link to documentation

2016-08-31 Thread Reda Sallahi
The page that was previously linked in the source code and the README file is no longer available so it now returns a 404 error message. This puts a previous snapshot from archive.org instead. Signed-off-by: Reda Sallahi --- hw/sh4/shix.c | 2 +- target-sh4/README.sh4 | 2 +- 2 files ch

Re: [Qemu-devel] [PATCH] sh4: fix broken link to documentation

2016-08-31 Thread Aurelien Jarno
On 2016-08-31 17:54, Reda Sallahi wrote: > The page that was previously linked in the source code and the README file is > no longer available so it now returns a 404 error message. > > This puts a previous snapshot from archive.org instead. > > Signed-off-by: Reda Sallahi > --- > hw/sh4/shix.c

Re: [Qemu-devel] [virtio-comment] [PATCH] *** Vhost-pci RFC v2 ***

2016-08-31 Thread Stefan Hajnoczi
On Tue, Aug 30, 2016 at 10:08:01AM +, Wang, Wei W wrote: > On Monday, August 29, 2016 11:25 PM, Stefan Hajnoczi wrote: > > To: Wang, Wei W > > Cc: k...@vger.kernel.org; qemu-devel@nongnu.org; virtio- > > comm...@lists.oasis-open.org; m...@redhat.com; pbonz...@redhat.com > > Subject: Re: [virt

[Qemu-devel] [V17 0/4] AMD IOMMU

2016-08-31 Thread David Kiarie
Hi all, This patchset adds basic AMD IOMMU emulation support to Qemu. Changes since v16 - this is mainly supposed to come as a ping :-) -minor endian-ness fixes Changes since v15 -Endian-ness issue fix -cleaned up unused macros -removed guest frame number(gfn) from cache entry Chan

[Qemu-devel] [V17 1/4] hw/pci: Prepare for AMD IOMMU

2016-08-31 Thread David Kiarie
Introduce PCI macros from for use by AMD IOMMU Signed-off-by: David Kiarie --- include/hw/pci/pci.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/hw/pci/pci.h b/include/hw/pci/pci.h index 929ec2f..5ff92de 100644 --- a/include/hw/pci/pci.h +++ b/include/hw/pci/pci

[Qemu-devel] [V17 3/4] hw/i386: Introduce AMD IOMMU

2016-08-31 Thread David Kiarie
Add AMD IOMMU emulaton to Qemu in addition to Intel IOMMU. The IOMMU does basic translation, error checking and has a minimal IOTLB implementation. This IOMMU bypassed the need for target aborts by responding with IOMMU_NONE access rights and exempts the region 0xfee0-0xfeef from translatio

[Qemu-devel] [PATCH] i8257: Make device "i8257" unavailable with -device

2016-08-31 Thread Markus Armbruster
The ISA DMA controller needs to be wired up to the ISA bus by isa_bus_dma() to actually work. Signed-off-by: Markus Armbruster --- hw/dma/i8257.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/dma/i8257.c b/hw/dma/i8257.c index f345c54..f90df1d 100644 --- a/hw/dma/i8257.c +++ b/hw/dma/

[Qemu-devel] [v3 3/6] hw/iommu: Prepare for AMD IOMMU interrupt remapping

2016-08-31 Thread David Kiarie
Introduce macros and trace events for use in AMD IOMMU interrupt remapping Signed-off-by: David Kiarie --- hw/i386/amd_iommu.h | 80 hw/i386/trace-events | 7 + 2 files changed, 87 insertions(+) diff --git a/hw/i386/amd_iommu.h b/hw/i38

[Qemu-devel] [V17 2/4] hw/i386/trace-events: Add AMD IOMMU trace events

2016-08-31 Thread David Kiarie
Signed-off-by: David Kiarie --- hw/i386/trace-events | 29 + 1 file changed, 29 insertions(+) diff --git a/hw/i386/trace-events b/hw/i386/trace-events index 7735e46..60bdf6a 100644 --- a/hw/i386/trace-events +++ b/hw/i386/trace-events @@ -13,3 +13,32 @@ mhp_pc_dimm_as

[Qemu-devel] [v3 2/6] hw/i386: enforce SID verification

2016-08-31 Thread David Kiarie
Platform device are now able to make interrupt request with explicit SIDs hence we can safely expect triggered AddressSpace ID to match the requesting ID Signed-off-by: David Kiarie --- hw/i386/intel_iommu.c | 77 ++- 1 file changed, 39 insertions(

[Qemu-devel] [PATCH v2] sh4: fix broken link to documentation

2016-08-31 Thread Reda Sallahi
The page that was previously linked in the source code and the README file is no longer available so it now returns a 404 error message. This puts a previous snapshot from archive.org instead. Signed-off-by: Reda Sallahi --- Changes from v1: * Add the 'https://' part to the link in hw/sh4/shix.c

[Qemu-devel] [v3 6/6] hw/iommu: share common code between IOMMUs

2016-08-31 Thread David Kiarie
Enabling interrupt remapping with kernel_irqchip=on should result in an error for both VT-d and AMD-Vi Signed-off-by: David Kiarie --- hw/i386/intel_iommu.c | 9 - hw/i386/x86-iommu.c | 8 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/hw/i386/intel_iommu.c b/h

[Qemu-devel] [v3 1/6] hw/msi: Allow platform devices to use explicit SID

2016-08-31 Thread David Kiarie
When using IOMMU platform devices like IOAPIC are required to make interrupt remapping requests using explicit SID.We affiliate an MSI route with a requester ID and a PCI device if present which ensures that platform devices can call IOMMU interrupt remapping code with explicit SID while maintainin

[Qemu-devel] [v3 0/6] AMD IOMMU

2016-08-31 Thread David Kiarie
Hello all, Changes since V2 -formating fixes. -fixed an issue where the right IOAPIC id was not being correctly set when using kernel_irqchip=off The following patchset implements AMD-Vi interrupt remapping logic and hooks it onto existing IR infrastucture. I have bundled this patchset tog

[Qemu-devel] [v3 4/6] hw/iommu: AMD IOMMU interrupt remapping

2016-08-31 Thread David Kiarie
Introduce AMD IOMMU interrupt remapping and hook it onto the existing interrupt remapping infrastructure Signed-off-by: David Kiarie --- hw/i386/amd_iommu.c | 241 +++- hw/i386/amd_iommu.h | 4 +- hw/intc/ioapic.c| 9 +- 3 files changed, 24

[Qemu-devel] [v3 5/6] hw/acpi: report IOAPIC on IVRS

2016-08-31 Thread David Kiarie
Report IOAPIC via IVRS which effectively allows linux AMD-Vi driver to enable interrupt remapping Signed-off-by: David Kiarie --- hw/i386/acpi-build.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c index 49bd183..c2559ff 100644 --- a/hw/i386/acp

[Qemu-devel] [PATCH v2 2/7] ppc/pnv: add a PnvChip object

2016-08-31 Thread Cédric Le Goater
This is is an abstraction of a POWER8 chip which is a set of cores plus other 'units', like the pervasive unit, the interrupt controller, the memory controller, the on-chip microcontroller, etc. The whole can be seen as a socket. It depends on a cpu model and its characteristics, max cores, specifi

[Qemu-devel] [PATCH v2 3/7] ppc/pnv: Add XSCOM infrastructure

2016-08-31 Thread Cédric Le Goater
From: Benjamin Herrenschmidt XSCOM is an interface to a sideband bus provided by the POWER8 chip pervasive unit, which gives access to a number of facilities in the chip that are needed by the OPAL firmware and to a lesser extent, Linux. This is among others how the PCI Host bridges get configure

[Qemu-devel] [PATCH v2 0/7] ppc/pnv: add a minimal platform

2016-08-31 Thread Cédric Le Goater
Hello, Here is a new version to address the comments from v1 plus a couple of improvements, the most important being : - PnvChip now has PnvChipClass depending on the cpu model - the device tree uses the fdt "rw" routines - the XSCOM bus makes its first appearance. - the cores now use rea

Re: [Qemu-devel] [PATCH 0/6] hypertrace: Lightweight guest-to-QEMU trace channel

2016-08-31 Thread Stefan Hajnoczi
On Mon, Aug 29, 2016 at 08:46:02PM +0200, Lluís Vilanova wrote: > >> Also, I'm still not sure how to interact with QEMU's monitor interface from > >> within the probe code (probes execute in kernel mode, including "guru mode" > >> code). > > > When SystemTap is used the QEMU monitor interface does

[Qemu-devel] [PATCH v2 6/7] ppc/pnv: add a XScomDevice to PnvCore

2016-08-31 Thread Cédric Le Goater
Now that we are using real HW ids for the cores in PowerNV chips, we can route the XSCOM accesses to them. We just need to attach a XScomDevice to each core with the associated ranges in the XSCOM address space. To start with, let's install the DTS (Digital Thermal Sensor) handlers which are easy

[Qemu-devel] [PATCH v2 1/7] ppc/pnv: add skeleton PowerNV platform

2016-08-31 Thread Cédric Le Goater
From: Benjamin Herrenschmidt The goal is to emulate a PowerNV system at the level of the skiboot firmware, which loads the OS and provides some runtime services. Power Systems have a lower firmware (HostBoot) that does low level system initialization, like DRAM training. This is beyond the scope

[Qemu-devel] [PATCH v2 4/7] ppc/pnv: add a core mask to PnvChip

2016-08-31 Thread Cédric Le Goater
This will be used to build real HW ids for the cores and enforce some limits on the available cores per chip. Signed-off-by: Cédric Le Goater --- hw/ppc/pnv.c | 27 +++ include/hw/ppc/pnv.h | 2 ++ 2 files changed, 29 insertions(+) diff --git a/hw/ppc/pnv.c b/hw

Re: [Qemu-devel] DAX can not work on virtual nvdimm device

2016-08-31 Thread Ross Zwisler
On Wed, Aug 31, 2016 at 04:44:47PM +0800, Xiao Guangrong wrote: > On 08/31/2016 01:09 AM, Dan Williams wrote: > > > > Can you post your exact reproduction steps? This test is not failing for > > me. > > > > Sure. > > 1. make the guest kernel based on your tree, the top commit is >10d7902f

[Qemu-devel] [PATCH v2 7/7] monitor: fix crash for platforms without a CPU 0

2016-08-31 Thread Cédric Le Goater
On PowerNV, CPU ids start at 0x8 or 0x20, we don't have a CPU 0 anymore. So let's use the first_cpu index to initialize the monitor. Signed-off-by: Cédric Le Goater --- So that you can dump the cpu list with the monitor : (qemu) info cpus * CPU #8: nip=0x0010 thread

[Qemu-devel] [PATCH v2 5/7] ppc/pnv: add a PnvCore object

2016-08-31 Thread Cédric Le Goater
This is largy inspired by sPAPRCPUCore with some simplification, no hotplug for instance. But the differences are small and the objects could possibly be merged. A set of PnvCore objects is added to the PnvChip and the device tree is populated looping on these cores. Real HW cpu ids are now gener

Re: [Qemu-devel] [PATCH 0/2] virtio: fix VirtQueue->inuse field

2016-08-31 Thread Denis V. Lunev
On 08/30/2016 10:54 PM, Stefan Hajnoczi wrote: > On Mon, Aug 22, 2016 at 10:00 AM, Denis V. Lunev > wrote: >> On 08/15/2016 08:54 AM, Stefan Hajnoczi wrote: >>> The VirtQueue->inuse field is not always updated correctly. These patches >>> fix >>> it. >>> >>> Originally this series was called "vir

[Qemu-devel] [Bug 1414466] Re: -net user, hostfwd=... is not working(qemu-system-aarch64)

2016-08-31 Thread Orzech
Also happens on Ubuntu 16.04.1 64-bit with QEMU 1:2.5+dfsg-5ubuntu10.4. I have the following settings added to instance xml config: It looks like forwarding does not happen at all. When I try to connect to guest instance, I get exactly the same results regardless of whether sshd

[Qemu-devel] [Bug 786208] Re: Missing checks for non-existent device in ide_exec_cmd

2016-08-31 Thread John Snow
** Changed in: qemu Assignee: (unassigned) => John Snow (jnsnow) -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/786208 Title: Missing checks for non-existent device in ide_exec_cmd Status in Q

[Qemu-devel] [Bug 1368204] Re: WinME isn't able to detect QEMU's cdrom drive and other hard drives automatically

2016-08-31 Thread John Snow
** Changed in: qemu Assignee: (unassigned) => John Snow (jnsnow) -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1368204 Title: WinME isn't able to detect QEMU's cdrom drive and other hard drive

[Qemu-devel] [Bug 1219234] Re: -device ide-hd will assign bus with with no free units

2016-08-31 Thread John Snow
** Changed in: qemu Assignee: (unassigned) => John Snow (jnsnow) -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1219234 Title: -device ide-hd will assign bus with with no free units Status in

[Qemu-devel] [Bug 588691] Re: QEMU is not correctly detecting host CDs

2016-08-31 Thread John Snow
** Changed in: qemu Assignee: Natalia Portillo (claunia) => John Snow (jnsnow) -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/588691 Title: QEMU is not correctly detecting host CDs Status in Q

[Qemu-devel] [Bug 1070762] Re: savevm fails with inserted CD, "Device '%s' is writable but does not support snapshots."

2016-08-31 Thread John Snow
** Changed in: qemu Assignee: (unassigned) => John Snow (jnsnow) -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1070762 Title: savevm fails with inserted CD, "Device '%s' is writable but does n

[Qemu-devel] [Bug 670769] Re: CDROM size not updated when changing image files

2016-08-31 Thread John Snow
** Changed in: qemu Assignee: (unassigned) => John Snow (jnsnow) -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/670769 Title: CDROM size not updated when changing image files Status in QEMU:

Re: [Qemu-devel] [PATCH v9 03/11] vfio: add aer support for vfio device

2016-08-31 Thread Alex Williamson
On Tue, 19 Jul 2016 15:38:21 +0800 Zhou Jie wrote: > From: Chen Fan > > Calling pcie_aer_init to initilize aer related registers for > vfio device, then reload physical related registers to expose > device capability. > > Signed-off-by: Chen Fan > --- > hw/vfio/pci.c | 75 >

Re: [Qemu-devel] [PATCH v9 05/11] vfio: add check host bus reset is support or not

2016-08-31 Thread Alex Williamson
On Tue, 19 Jul 2016 15:38:23 +0800 Zhou Jie wrote: > From: Chen Fan > > When assigning a vfio device with AER enabled, we must check whether > the device supports a host bus reset (ie. hot reset) as this may be > used by the guest OS in order to recover the device from an AER > error. QEMU mus

Re: [Qemu-devel] [PATCH v2] sh4: fix broken link to documentation

2016-08-31 Thread Aurelien Jarno
On 2016-08-31 18:31, Reda Sallahi wrote: > The page that was previously linked in the source code and the README file is > no longer available so it now returns a 404 error message. > > This puts a previous snapshot from archive.org instead. > > Signed-off-by: Reda Sallahi > --- > Changes from v

Re: [Qemu-devel] [PATCH v9 10/11] vfio: Add waiting for host aer error progress

2016-08-31 Thread Alex Williamson
On Tue, 19 Jul 2016 15:38:28 +0800 Zhou Jie wrote: > From: Chen Fan > > For supporting aer recovery, host and guest would run the same aer > recovery code, that would do the secondary bus reset if the error > is fatal, the aer recovery process: > 1. error_detected > 2. reset_link (if fatal)

[Qemu-devel] [PATCH] vl: Delay initialization of memory backends

2016-08-31 Thread Eduardo Habkost
Initialization of memory backends may take a while when prealloc=yes is used, depending on their size. Initializing memory backends before chardevs may delay the creation of monitor sockets, and trigger timeouts on management software that waits until the monitor socket is created by QEMU. See, fo

Re: [Qemu-devel] [PATCH v9 10/11] vfio: Add waiting for host aer error progress

2016-08-31 Thread Michael S. Tsirkin
On Wed, Aug 31, 2016 at 02:13:09PM -0600, Alex Williamson wrote: > On Tue, 19 Jul 2016 15:38:28 +0800 > Zhou Jie wrote: > > > From: Chen Fan > > > > For supporting aer recovery, host and guest would run the same aer > > recovery code, that would do the secondary bus reset if the error > > is fa

Re: [Qemu-devel] [PATCH v2 0/9] SMMUv3 Emulation support

2016-08-31 Thread Auger Eric
Hi Prem, On 22/08/2016 18:17, Prem Mallappa wrote: > v1 -> v2: > - Adopted review comments from Eric Auger Although I am really interested in your series, those comments are not mine and credit should be given to somebody else (Edgar?) I will do my utmost to review it too ;-) Thanks Eric >

Re: [Qemu-devel] [PATCH] vl: Delay initialization of memory backends

2016-08-31 Thread no-reply
Hi, Your series failed automatic build test. Please find the testing commands and their output below. If you have docker installed, you can probably reproduce it locally. Subject: [Qemu-devel] [PATCH] vl: Delay initialization of memory backends Type: series Message-id: 1472674630-18886-1-git-send

Re: [Qemu-devel] [kvm-unit-tests PATCH v3 03/10] arm/arm64: smp: support more than 8 cpus

2016-08-31 Thread Auger Eric
Hi Drew, On 30/08/2016 16:28, Auger Eric wrote: > Hi Drew, > > Proper commit message? > ... also selects the vgic model corresponding to the host >> Reviewed-by: Alex Bennée >> Signed-off-by: Andrew Jones >> --- >> arm/run | 19 --- >> arm/selftest.c

[Qemu-devel] [PATCH] aio: Remove spurious smp_read_barrier_depends()

2016-08-31 Thread Pranith Kumar
smp_read_barrier_depends() should be used only if you are reading dependent pointers which are shared. Here 'bh' is a local variable and dereferencing it will always be ordered after loading 'bh', i.e., bh->next will always be ordered after fetching bh. This patch removes the barrier and adds a co

Re: [Qemu-devel] [PATCH 1/3] virtio: Basic implementation of virtio pstore driver

2016-08-31 Thread Namhyung Kim
Hi Michael, On Wed, Aug 31, 2016 at 05:54:04PM +0300, Michael S. Tsirkin wrote: > On Wed, Aug 31, 2016 at 05:08:00PM +0900, Namhyung Kim wrote: > > The virtio pstore driver provides interface to the pstore subsystem so > > that the guest kernel's log/dump message can be saved on the host > > machi

Re: [Qemu-devel] [PATCH for 2.8 06/11] intel_iommu: support device iotlb descriptor

2016-08-31 Thread Peter Xu
On Wed, Aug 31, 2016 at 10:54:36AM +0800, Jason Wang wrote: > >> static void x86_iommu_instance_init(Object *o) > >> { > >> X86IOMMUState *s = X86_IOMMU_DEVICE(o); > >>@@ -108,6 +120,11 @@ static void x86_iommu_instance_init(Object *o) > >> s->intr_supported = false; > >> object_pr

Re: [Qemu-devel] [PATCH v2] intel_iommu: add "eim" property

2016-08-31 Thread Peter Xu
On Fri, Aug 12, 2016 at 05:41:27PM +0800, Peter Xu wrote: > Adding one extra property for intel-iommu device to decide whether we > should support EIM bit for IR. > > Now we are throwing high 24 bits of dest_id away directly. This will > cause interrupt issues with guests that: > > - enabled x2ap

[Qemu-devel] [PATCH] doc/rcu: fix typo

2016-08-31 Thread Cao jin
Signed-off-by: Cao jin --- docs/rcu.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/rcu.txt b/docs/rcu.txt index 2f70954..a70b72c 100644 --- a/docs/rcu.txt +++ b/docs/rcu.txt @@ -37,7 +37,7 @@ do not matter; as soon as all previous critical sections have finished, t

Re: [Qemu-devel] [PATCH v9 05/11] vfio: add check host bus reset is support or not

2016-08-31 Thread Alex Williamson
On Wed, 31 Aug 2016 13:56:20 -0600 Alex Williamson wrote: > On Tue, 19 Jul 2016 15:38:23 +0800 > Zhou Jie wrote: > > > From: Chen Fan > > > > When assigning a vfio device with AER enabled, we must check whether > > the device supports a host bus reset (ie. hot reset) as this may be > > used b

Re: [Qemu-devel] [PATCH for 2.8 10/11] Revert "intel_iommu: Throw hw_error on notify_started"

2016-08-31 Thread Peter Xu
On Wed, Aug 31, 2016 at 10:45:37AM +0800, Jason Wang wrote: > > > On 2016年08月30日 11:37, Alex Williamson wrote: > >On Tue, 30 Aug 2016 11:06:58 +0800 > >Jason Wang wrote: > > > >>From: Peter Xu > >> > >>This reverts commit 3cb3b1549f5401dc3a5e1d073e34063dc274136f. Vhost > >>device IOTLB API will

Re: [Qemu-devel] [PATCH for 2.8 10/11] Revert "intel_iommu: Throw hw_error on notify_started"

2016-08-31 Thread Alex Williamson
[cc +dgibson] On Thu, 1 Sep 2016 10:29:29 +0800 Peter Xu wrote: > On Wed, Aug 31, 2016 at 10:45:37AM +0800, Jason Wang wrote: > > > > > > On 2016年08月30日 11:37, Alex Williamson wrote: > > >On Tue, 30 Aug 2016 11:06:58 +0800 > > >Jason Wang wrote: > > > > > >>From: Peter Xu > > >> > > >>Th

[Qemu-devel] [PATCH COLO-Frame v19 05/22] COLO: Establish a new communicating path for COLO

2016-08-31 Thread zhanghailiang
This new communication path will be used for returning messages from Secondary side to Primary side. Signed-off-by: zhanghailiang Signed-off-by: Li Zhijian Reviewed-by: Dr. David Alan Gilbert --- v13: - Remove useless error report v12: - Add Reviewed-by tag v11: - Rebase master to use qemu_file

[Qemu-devel] [PATCH COLO-Frame v19 02/22] COLO: migrate COLO related info to secondary node

2016-08-31 Thread zhanghailiang
We can determine whether or not VM in destination should go into COLO mode by referring to the info that was migrated. We skip this section if COLO is not enabled (i.e. migrate_set_capability colo off), so that, It doesn't break compatibility with migration no matter whether users configure the --

[Qemu-devel] [PATCH COLO-Frame v19 18/22] COLO: Handle shutdown command for VM in COLO state

2016-08-31 Thread zhanghailiang
If VM is in COLO FT state, we should do some extra work before normal shutdown process. SVM will ignore the shutdown command if this command is issued directly to it. COLO will send the shutdown command to Secondary side if it gets shutdown request from user. Cc: Paolo Bonzini Signed-off-by: zha

[Qemu-devel] [PATCH COLO-Frame v19 04/22] migration: Switch to COLO process after finishing loadvm

2016-08-31 Thread zhanghailiang
Switch from normal migration loadvm process into COLO checkpoint process if COLO mode is enabled. We add three new members to struct MigrationIncomingState, 'have_colo_incoming_thread' and 'colo_incoming_thread' record the COLO related thread for secondary VM, 'migration_incoming_co' records the o

[Qemu-devel] [PATCH COLO-Frame v19 10/22] COLO: Add checkpoint-delay parameter for migrate-set-parameters

2016-08-31 Thread zhanghailiang
Add checkpoint-delay parameter for migrate-set-parameters, so that we can control the checkpoint frequency when COLO is in periodic mode. Cc: Luiz Capitulino Cc: Eric Blake Cc: Markus Armbruster Signed-off-by: zhanghailiang Signed-off-by: Li Zhijian Reviewed-by: Dr. David Alan Gilbert --- v1

[Qemu-devel] [PATCH COLO-Frame v19 00/22] COarse-grain LOck-stepping(COLO) Virtual Machines for Non-stop Service (FT)

2016-08-31 Thread zhanghailiang
This is the 19th version of COLO frame series. According to the suggestion of Juan and Amit, I dropped parts of the optimization patches to make it easier for review. Besides, I discarded the network related patches since the development of COLO proxy goes well, It is very likely to be merged in

[Qemu-devel] [PATCH COLO-Frame v19 19/22] COLO: Update the global runstate after going into colo state

2016-08-31 Thread zhanghailiang
If we start qemu with -S, the runstate will change from 'prelaunch' to 'running' after going into colo state. So it is necessary to update the global runstate after going into colo state. Signed-off-by: zhanghailiang Signed-off-by: Li Zhijian Reviewed-by: Dr. David Alan Gilbert --- migration/c

[Qemu-devel] [PATCH COLO-Frame v19 22/22] configure: Support enable/disable COLO feature

2016-08-31 Thread zhanghailiang
configure --enable-colo/--disable-colo to switch COLO support on/off. COLO feature is enabled by default. Signed-off-by: zhanghailiang Signed-off-by: Li Zhijian Signed-off-by: Gonglei Reviewed-by: Dr. David Alan Gilbert --- v19: - fix colo_supported() to return true v11: - Turn COLO on in defa

  1   2   >