Re: [Qemu-devel] [SeaBIOS] [RFC PATCH v2] fw/pci: Add support for mapping Intel IGD OpRegion via QEMU

2016-02-03 Thread Gerd Hoffmann
Hi, > the same or just use it on the first one we encounter. We're probably > putting way too much thought into this scenario that Intel likely has no > expectation of supporting though ;) Thanks, Yea, lets stick with the plain simple "igd-opregion". Even if intel allows multiple igd devices

Re: [Qemu-devel] [PATCH 07/10] virtio: combine the read of a descriptor

2016-02-03 Thread Gonglei (Arei)
Hi Paolo, > From: Paolo Bonzini [mailto:paolo.bonz...@gmail.com] On Behalf Of Paolo > Bonzini > > On 03/02/2016 13:34, Gonglei (Arei) wrote: > > Hi, > > > >> Subject: [Qemu-devel] [PATCH 07/10] virtio: combine the read of a > >> descriptor > >> > >> Compared to vring, virtio has a performance pe

[Qemu-devel] [PATCH V3 2/2] tests/test-filter-mirror:add filter-mirror unit test

2016-02-03 Thread Zhang Chen
From: ZhangChen Using qtest qmp interface to implement following cases: 1) add/remove filter-mirror 2) add a filter-mirror then delete the netdev 3) add/remove more than one filter-mirrors 4) add more than one filter-mirrors and then delete the netdev 5) add filter-mirror with: -object filter-

[Qemu-devel] [PATCH V3 1/2] net/filter-mirror:Add filter-mirror

2016-02-03 Thread Zhang Chen
From: ZhangChen Filter-mirror is a netfilter plugin. It gives qemu the ability to copy and mirror guest's net packet. we output packet to chardev. usage: -netdev tap,id=hn0 -chardev socket,id=mirror0,host=ip_primary,port=X,server,nowait -filter-mirror,id=m0,netdev=hn0,queue=tx/rx/all,outdev=mir

[Qemu-devel] [PATCH V3 0/2] net/filter-mirror:add filter-mirror and unit test

2016-02-03 Thread Zhang Chen
From: ZhangChen Filter-mirror is a netfilter plugin. It gives qemu the ability to copy and mirror guest's net packet. we output packet to chardev. v3: - Add filter-mirror unit test according to Jason's comments - Address zhanghailiang's comments. - Address Jason's comments. v2: - Addres

Re: [Qemu-devel] [PATCH v4 11/11] cputlb: modernise the debug support

2016-02-03 Thread Alex Bennée
Peter Maydell writes: > On 3 February 2016 at 18:54, Alex Bennée wrote: >> It preserves the old behaviour (and the general behaviour of DEBUG_FOO >> going to stderr). However I'm happy to make it default to using the log >> output. >> >> It does raise the question of if we should just enable th

Re: [Qemu-devel] sda abort with virtio-scsi

2016-02-03 Thread Hannes Reinecke
On 02/04/2016 12:19 AM, Paolo Bonzini wrote: > > > On 03/02/2016 22:46, Jim Minter wrote: >> I am hitting the following VM lockup issue running a VM with latest >> RHEL7 kernel on a host also running latest RHEL7 kernel. FWIW I'm using >> virtio-scsi because I want to use discard=unmap. I ran t

Re: [Qemu-devel] [PATCH 1/1] arm: virt: change GPIO trigger interrupt to pulse

2016-02-03 Thread Shannon Zhao
On 2016/2/4 14:10, Wei Huang wrote: > > On 02/03/2016 07:44 PM, Shannon Zhao wrote: >> > >> > >> > On 2016/2/4 0:01, Wei Huang wrote: >>> >> >>> >> On 2/3/16 04:46, Peter Maydell wrote: > On 3 February 2016 at 07:15, Michael Tokarev wrote: >>> >> 28.01.2016 21:22, Wei Huang w

Re: [Qemu-devel] [PATCH 0/2] error: Documentation updates

2016-02-03 Thread Markus Armbruster
Lluís Vilanova writes: > Markus Armbruster writes: > >> This overlaps with parts of Lluís's "[RFC][PATCH v6 0/5] utils: >> Improve and document error reporting". Lluís, feel free to integrate >> my patches into a respin of your series. You can also respin on top >> of my series. > > Reviewed-by

Re: [Qemu-devel] [PATCH 3/3] balloon: don't use NVDIMM for ballooning

2016-02-03 Thread Markus Armbruster
Vladimir Sementsov-Ogievskiy writes: > On 03.02.2016 18:42, Markus Armbruster wrote: >> Eric Blake writes: >> >>> On 01/27/2016 11:51 PM, Vladimir Sementsov-Ogievskiy wrote: NVDIMM for now is planned to use as a backing store for DAX filesystem in the guest and thus this memory is excl

Re: [Qemu-devel] [PATCH 1/1] arm: virt: change GPIO trigger interrupt to pulse

2016-02-03 Thread Wei Huang
On 02/03/2016 07:44 PM, Shannon Zhao wrote: > > > On 2016/2/4 0:01, Wei Huang wrote: >> >> On 2/3/16 04:46, Peter Maydell wrote: On 3 February 2016 at 07:15, Michael Tokarev wrote: >> 28.01.2016 21:22, Wei Huang wrote: When QEMU is hook'ed up with libvirt/virsh, the first ACP

Re: [Qemu-devel] [PATCH v9] spec: add qcow2 bitmaps extension specification

2016-02-03 Thread Vladimir Sementsov-Ogievskiy
On 04.02.2016 05:25, Fam Zheng wrote: On Wed, 02/03 20:16, Vladimir Sementsov-Ogievskiy wrote: On 03.02.2016 17:41, Fam Zheng wrote: On Wed, 02/03 16:45, Vladimir Sementsov-Ogievskiy wrote: Also current scheme is made like one for snapshots. Okay, then I'll be fine with being consistent. +

Re: [Qemu-devel] [iGVT-g] RE: VFIO based vGPU(was Re: [Announcement] 2015-Q3 release of XenGT - a Mediated ...)

2016-02-03 Thread Tian, Kevin
> From: Neo Jia [mailto:c...@nvidia.com] > Sent: Thursday, February 04, 2016 11:52 AM > > > > > 4) Map/unmap guest memory > > > > -- > > > > It's there for KVM. > > > > > > Map and unmap for who?  For the vGPU or for the VM?  It seems like we > > > know how to map guest memory for the vGPU without

Re: [Qemu-devel] [iGVT-g] RE: VFIO based vGPU(was Re: [Announcement] 2015-Q3 release of XenGT - a Mediated ...)

2016-02-03 Thread Neo Jia
On Thu, Feb 04, 2016 at 03:01:36AM +, Tian, Kevin wrote: > > From: Alex Williamson [mailto:alex.william...@redhat.com] > > Sent: Thursday, February 04, 2016 4:45 AM > > > > > > First, Jike told me before his vacation, that we cannot do any change to > > > KVM module according to community comme

Re: [Qemu-devel] [RFC PATCH v1 1/1] vGPU core driver : to provide common interface for vGPU.

2016-02-03 Thread Tian, Kevin
> From: Kirti Wankhede > Sent: Wednesday, February 03, 2016 9:21 PM > > > On 2/3/2016 11:26 AM, Tian, Kevin wrote: > [...] > > * @vgpu_create:Called to allocate basic resouces in graphics > > * driver for a particular vgpu. > > *

Re: [Qemu-devel] RE: [iGVT-g] VFIO based vGPU(was Re: [Announcement] 2015-Q3 release of XenGT - a Mediated ...)

2016-02-03 Thread Tian, Kevin
> From: Alex Williamson [mailto:alex.william...@redhat.com] > Sent: Thursday, February 04, 2016 4:45 AM > > > > First, Jike told me before his vacation, that we cannot do any change to > > KVM module according to community comments. Now I think it's not true. > > We can do necessary changes, as lon

Re: [Qemu-devel] [RFC PATCH 0/4] tests: Introducing docker tests

2016-02-03 Thread Fam Zheng
On Wed, 02/03 15:24, Stefan Hajnoczi wrote: > On Wed, Feb 03, 2016 at 10:36:00PM +0800, Fam Zheng wrote: > > This series adds a new "docker" make target family to run tests in created > > docker containers. > > > > To begin with, this can be a place to store standard env/command > > combinations

Re: [Qemu-devel] [PATCH v13 00/10] Block replication for continuous checkpoints

2016-02-03 Thread Changlong Xie
On 02/01/2016 09:18 AM, Wen Congyang wrote: On 01/29/2016 06:47 PM, Dr. David Alan Gilbert wrote: * Wen Congyang (we...@cn.fujitsu.com) wrote: On 01/29/2016 06:07 PM, Dr. David Alan Gilbert wrote: * Wen Congyang (we...@cn.fujitsu.com) wrote: On 01/27/2016 07:03 PM, Dr. David Alan Gilbert wrot

Re: [Qemu-devel] [RFC PATCH 3/4] tests: Add mingw 32/64 cross compiling

2016-02-03 Thread Fam Zheng
On Wed, 02/03 16:08, Stefan Weil wrote: > Am 03.02.2016 um 15:36 schrieb Fam Zheng: > > Only fedora22 has the required toolchain so it's not run elsewhere. > > > > Signed-off-by: Fam Zheng > > --- > > tests/docker/mingw.sh | 14 ++ > > 1 file changed, 14 insertions(+) > > create mod

Re: [Qemu-devel] [RFC PATCH 3/4] tests: Add mingw 32/64 cross compiling

2016-02-03 Thread Fam Zheng
On Wed, 02/03 09:14, Eric Blake wrote: > On 02/03/2016 07:36 AM, Fam Zheng wrote: > > Only fedora22 has the required toolchain so it's not run elsewhere. > > Not fedora 23 or rawhide? In another year, when F22 is obsolete, this > will be dead code unless you meant for it to be >= F22. Good point,

Re: [Qemu-devel] [PATCH v9] spec: add qcow2 bitmaps extension specification

2016-02-03 Thread Fam Zheng
On Wed, 02/03 20:16, Vladimir Sementsov-Ogievskiy wrote: > On 03.02.2016 17:41, Fam Zheng wrote: > >On Wed, 02/03 16:45, Vladimir Sementsov-Ogievskiy wrote: > >>Also current scheme is made like one for snapshots. > >Okay, then I'll be fine with being consistent. > > > > > + > + > +=== B

Re: [Qemu-devel] [PATCH v16 00/14] vfio-pci: pass the aer error to guest

2016-02-03 Thread Chen Fan
On 02/03/2016 09:57 PM, Michael S. Tsirkin wrote: On Wed, Feb 03, 2016 at 04:54:01PM +0800, Chen Fan wrote: On 01/17/2016 02:34 AM, Michael S. Tsirkin wrote: On Tue, Jan 12, 2016 at 10:43:01AM +0800, Cao jin wrote: From: Chen Fan For now, for vfio pci passthough devices when qemu receives a

Re: [Qemu-devel] [PATCH] hw/arm/virt: fix max-cpus check

2016-02-03 Thread Shannon Zhao
On 2016/2/3 22:59, Andrew Jones wrote: > mach-virt doesn't yet support hotplug, but command lines specifying > -smp ,maxcpus= don't fail. Of course specifying > bigger-num as something bigger than the machine supports, e.g. > 8 > on a gicv2 machine, should fail though. This fix also makes mach- >

Re: [Qemu-devel] [PATCH 1/1] arm: virt: change GPIO trigger interrupt to pulse

2016-02-03 Thread Shannon Zhao
On 2016/2/4 0:01, Wei Huang wrote: > > On 2/3/16 04:46, Peter Maydell wrote: >> > On 3 February 2016 at 07:15, Michael Tokarev wrote: >>> >> 28.01.2016 21:22, Wei Huang wrote: >>> When QEMU is hook'ed up with libvirt/virsh, the first ACPI reboot >>> request will succeed; but the follo

Re: [Qemu-devel] [PATCH] qemu-img: initialize MapEntry object

2016-02-03 Thread Fam Zheng
On Wed, 02/03 18:38, John Snow wrote: > Commit 16b0d555 introduced an issue where we are not initializing > has_filename for the 'next' MapEntry object, which leads to interesting > errors in Valgrind and Clang -fsanitize=undefined both. > > Zero the stack object at allocation AND make sure the ut

[Qemu-devel] [PATCH 3/4] aer: impove pcie_aer_init to support vfio device

2016-02-03 Thread Cao jin
From: Chen Fan pcie_aer_init was used to emulate an aer capability for pcie device, but for vfio device, the aer config space size is mutable and is not always equal to PCI_ERR_SIZEOF(0x48). it depends on where the TLP Prefix register required, so here we add a size argument. Signed-off-by: Chen

[Qemu-devel] [PATCH 4/4] pcie_aer: expose pcie_aer_msg() interface

2016-02-03 Thread Cao jin
From: Chen Fan For vfio device, we need to propagate the aer error to Guest OS. we use the pcie_aer_msg() to send aer error to guest. Signed-off-by: Chen Fan Reviewed-by: Michael S. Tsirkin --- hw/pci/pcie_aer.c | 2 +- include/hw/pci/pcie_aer.h | 1 + 2 files changed, 2 insertions(+)

[Qemu-devel] [PATCH 1/4] pcie: modify the capability size assert

2016-02-03 Thread Cao jin
From: Chen Fan Device's Offset and size can reach PCIE_CONFIG_SPACE_SIZE, fix the corresponding assert. Signed-off-by: Chen Fan Reviewed-by: Marcel Apfelbaum Reviewed-by: Michael S. Tsirkin --- hw/pci/pcie.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/pci/pcie.c

[Qemu-devel] [PATCH 0/4] vfio-pci: pass the aer error to guest, part1

2016-02-03 Thread Cao jin
From: Chen Fan this patchset are splited out from my aer series patches, this part of aer patches is harmless, and have been reviewed-by. In order to avoid blocking it to merge, so I send it out independently as part1. the part2 is under discussion. Thanks Chen Fan (4): pcie: modify the capabi

[Qemu-devel] [PATCH 2/4] vfio: make the 4 bytes aligned for capability size

2016-02-03 Thread Cao jin
From: Chen Fan this function search the capability from the end, the last size should 0x100 - pos, not 0xff - pos. Signed-off-by: Chen Fan Reviewed-by: Marcel Apfelbaum --- hw/vfio/pci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c index

[Qemu-devel] [Bug 1541643] [NEW] IA32_FEATURE_CONTROL MSR unset for nested virtualization

2016-02-03 Thread Stephen Crane
Public bug reported: I enabled nested virtualization for the kvm_intel module, and passed -enable-kvm and -cpu host to qemu. However, the qemu BIOS did not set IA32_FEATURE_CONTROL MSR (index 0x3a) to a non-zero value allow VMXON. According to the Intel manual Section 23.7 ENABLING AND ENTERING VM

Re: [Qemu-devel] [PATCH v8 0/4] SysFS driver for QEMU fw_cfg device

2016-02-03 Thread Matt Fleming
On Thu, 28 Jan, at 09:23:10AM, Gabriel L. Somlo wrote: > From: "Gabriel Somlo" > > Allow access to QEMU firmware blobs, passed into the guest VM via > the fw_cfg device, through SysFS entries. Blob meta-data (e.g. name, > size, and fw_cfg key), as well as the raw binary blob data may be > accesse

[Qemu-devel] [PATCH v1 3/3] target-arm: Add the pmovsclr_el0 and pmintenclr_el1 registers

2016-02-03 Thread Alistair Francis
Signed-off-by: Alistair Francis --- target-arm/helper.c | 12 1 file changed, 12 insertions(+) diff --git a/target-arm/helper.c b/target-arm/helper.c index 2e0018c..c3fa57d 100644 --- a/target-arm/helper.c +++ b/target-arm/helper.c @@ -1031,6 +1031,13 @@ static const ARMCPRegInfo v

[Qemu-devel] [PATCH v1 1/3] target-arm: Add the pmceid0 and pmceid1 registers

2016-02-03 Thread Alistair Francis
Signed-off-by: Alistair Francis --- target-arm/cpu-qom.h | 2 ++ target-arm/cpu.c | 2 ++ target-arm/cpu64.c | 2 ++ target-arm/helper.c | 8 4 files changed, 14 insertions(+) diff --git a/target-arm/cpu-qom.h b/target-arm/cpu-qom.h index 07c0a71..1cc4502 100644 --- a/target-arm

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

2016-02-03 Thread Alistair Francis
On Wed, Feb 3, 2016 at 10:37 AM, Peter Maydell wrote: > On 2 February 2016 at 23:22, Alistair Francis wrote: >> On Tue, Feb 2, 2016 at 3:01 PM, Christopher Covington >> wrote: >>> As for the status of our TCG PMU patches, unfortunately, last I recall, >>> I was writing some kvm-unit-tests that D

[Qemu-devel] [PATCH v1 2/3] target-arm: Add Some of the performance monitor registers

2016-02-03 Thread Alistair Francis
This patch adds the following registers including read and write functions: PMSELR, PMSELR_EL0, PMXEVCNTR, PMXEVCNTR_EL0, PMXEVTYPER and PMXEVTYPER_EL0. Signed-off-by: Alistair Francis --- target-arm/cpu.h| 6 target-arm/helper.c | 89 ++

[Qemu-devel] [PATCH v1 0/3] Extend the performance monitoring registers

2016-02-03 Thread Alistair Francis
This patch set is based on the patch sent by Christopher Covington and written by Aaron Lindsay which was sent as an RFC (Implement remaining PMU functionality). It adds a few performance monitoring related registers. Alistair Francis (3): target-arm: Add the pmceid0 and pmceid1 registers tar

Re: [Qemu-devel] [SeaBIOS] [RFC PATCH v2] fw/pci: Add support for mapping Intel IGD OpRegion via QEMU

2016-02-03 Thread Alex Williamson
On Wed, 2016-02-03 at 17:09 -0500, Kevin O'Connor wrote: > On Wed, Feb 03, 2016 at 02:38:47PM -0700, Alex Williamson wrote: > > On Wed, 2016-02-03 at 12:43 -0700, Alex Williamson wrote: > > > On Wed, 2016-02-03 at 10:04 +0100, Gerd Hoffmann wrote: > > > >   Hi, > > > >   > > > > > +static void inte

[Qemu-devel] [PATCH] nbd: avoid unaligned uint64_t store

2016-02-03 Thread John Snow
cpu_to_be64w can't be used to make unaligned stores, but stq_be_p can. The other stores in this routine are left alone, they're aligned already. Signed-off-by: John Snow --- nbd/server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nbd/server.c b/nbd/server.c index 1ec79cf

[Qemu-devel] [PATCH] qemu-img: initialize MapEntry object

2016-02-03 Thread John Snow
Commit 16b0d555 introduced an issue where we are not initializing has_filename for the 'next' MapEntry object, which leads to interesting errors in Valgrind and Clang -fsanitize=undefined both. Zero the stack object at allocation AND make sure the utility to populate the fields properly marks has_

Re: [Qemu-devel] sda abort with virtio-scsi

2016-02-03 Thread Jim Minter
Hi again, thanks for replying, On 03/02/16 23:19, Paolo Bonzini wrote: On 03/02/2016 22:46, Jim Minter wrote: I am hitting the following VM lockup issue running a VM with latest RHEL7 kernel on a host also running latest RHEL7 kernel. FWIW I'm using virtio-scsi because I want to use discard=un

Re: [Qemu-devel] sda abort with virtio-scsi

2016-02-03 Thread Paolo Bonzini
On 03/02/2016 22:46, Jim Minter wrote: > I am hitting the following VM lockup issue running a VM with latest > RHEL7 kernel on a host also running latest RHEL7 kernel. FWIW I'm using > virtio-scsi because I want to use discard=unmap. I ran the VM as follows: > > /usr/libexec/qemu-kvm -nodefaul

Re: [Qemu-devel] [PATCH v6 1/5] util: Introduce error reporting functions with fatal/abort

2016-02-03 Thread David Gibson
On Wed, Feb 03, 2016 at 10:48:53AM +0100, Markus Armbruster wrote: > David Gibson writes: > > > On Tue, Feb 02, 2016 at 10:47:35PM +0100, Thomas Huth wrote: > >> On 02.02.2016 19:53, Markus Armbruster wrote: > >> > Lluís Vilanova writes: > >> ... > >> > >> >> diff --git a/include/qemu/error-rep

Re: [Qemu-devel] [SeaBIOS] [RFC PATCH v2] fw/pci: Add support for mapping Intel IGD OpRegion via QEMU

2016-02-03 Thread Kevin O'Connor
On Wed, Feb 03, 2016 at 02:38:47PM -0700, Alex Williamson wrote: > On Wed, 2016-02-03 at 12:43 -0700, Alex Williamson wrote: > > On Wed, 2016-02-03 at 10:04 +0100, Gerd Hoffmann wrote: > > >   Hi, > > >   > > > > +static void intel_igd_opregion_setup(struct pci_device *dev, void *arg) > > > > +{ >

[Qemu-devel] sda abort with virtio-scsi

2016-02-03 Thread Jim Minter
Hello, I am hitting the following VM lockup issue running a VM with latest RHEL7 kernel on a host also running latest RHEL7 kernel. FWIW I'm using virtio-scsi because I want to use discard=unmap. I ran the VM as follows: /usr/libexec/qemu-kvm -nodefaults \ -cpu host \ -smp 4 \ -m 8192

Re: [Qemu-devel] [SeaBIOS] [RFC PATCH v2] fw/pci: Add support for mapping Intel IGD OpRegion via QEMU

2016-02-03 Thread Alex Williamson
On Wed, 2016-02-03 at 12:43 -0700, Alex Williamson wrote: > On Wed, 2016-02-03 at 10:04 +0100, Gerd Hoffmann wrote: > >   Hi, > >   > > > +static void intel_igd_opregion_setup(struct pci_device *dev, void *arg) > > > +{ > > > +struct romfile_s *file = romfile_find("etc/igd-opregion"); > >   > >

Re: [Qemu-devel] RE: [iGVT-g] VFIO based vGPU(was Re: [Announcement] 2015-Q3 release of XenGT - a Mediated ...)

2016-02-03 Thread Alex Williamson
On Wed, 2016-02-03 at 08:04 +, Tian, Kevin wrote: > > From: Zhiyuan Lv > > Sent: Tuesday, February 02, 2016 3:35 PM > >  > > Hi Gerd/Alex, > >  > > On Mon, Feb 01, 2016 at 02:44:55PM -0700, Alex Williamson wrote: > > > On Mon, 2016-02-01 at 14:10 +0100, Gerd Hoffmann wrote: > > > >   Hi, > > >

[Qemu-devel] [PULL 19/20] sb16: use IsaDma interface instead of global DMA_* functions

2016-02-03 Thread John Snow
From: Hervé Poussineau Signed-off-by: Hervé Poussineau Message-id: 1453843944-26833-19-git-send-email-hpous...@reactos.org Signed-off-by: John Snow --- hw/audio/sb16.c | 23 ++- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/hw/audio/sb16.c b/hw/audio/sb16.c

[Qemu-devel] [PULL 17/20] cs4231a: use IsaDma interface instead of global DMA_* functions

2016-02-03 Thread John Snow
From: Hervé Poussineau Signed-off-by: Hervé Poussineau Message-id: 1453843944-26833-17-git-send-email-hpous...@reactos.org Signed-off-by: John Snow --- hw/audio/cs4231a.c | 23 +++ 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/hw/audio/cs4231a.c b/hw/audio/

Re: [Qemu-devel] [PATCH v2 0/4] set the OEM fields in the RSDT and the FADT from the SLIC

2016-02-03 Thread Richard W.M. Jones
On Wed, Feb 03, 2016 at 10:02:40PM +0300, Michael Tokarev wrote: > 03.02.2016 21:51, Laszlo Ersek wrote: > > Ping #2. > > I think I asked this before, but somehow I don't see anyone > answered. Is this thing worth to have now, when windows7 is > 2 releases away, everyone is moving to windows8 or

[Qemu-devel] [PULL 20/20] dma: remove now useless DMA_* functions

2016-02-03 Thread John Snow
From: Hervé Poussineau Keep only DMA_init function as a wrapper around DMA controllers creation. Signed-off-by: Hervé Poussineau Message-id: 1453843944-26833-20-git-send-email-hpous...@reactos.org Signed-off-by: John Snow --- hw/dma/i8257.c | 65 -

[Qemu-devel] [PULL 13/20] magnum: disable floppy DMA for now

2016-02-03 Thread John Snow
From: Hervé Poussineau Floppy uses the DMA controller in rc4030 chipset, and not the i8259 from the ISA bus. It's better to disable DMA than to call the wrong DMA controller. Signed-off-by: Hervé Poussineau Message-id: 1453843944-26833-13-git-send-email-hpous...@reactos.org Signed-off-by: John

[Qemu-devel] [PULL 16/20] fdc: use IsaDma interface instead of global DMA_* functions

2016-02-03 Thread John Snow
From: Hervé Poussineau Signed-off-by: Hervé Poussineau Message-id: 1453843944-26833-16-git-send-email-hpous...@reactos.org Signed-off-by: John Snow --- hw/block/fdc.c | 63 ++ 1 file changed, 46 insertions(+), 17 deletions(-) diff --git

[Qemu-devel] [PULL 06/20] i8257: rename functions to start with i8257_ prefix

2016-02-03 Thread John Snow
From: Hervé Poussineau Signed-off-by: Hervé Poussineau Message-id: 1453843944-26833-6-git-send-email-hpous...@reactos.org Signed-off-by: John Snow --- hw/dma/i8257.c | 91 +- 1 file changed, 46 insertions(+), 45 deletions(-) diff --git a

[Qemu-devel] [PULL 18/20] gus: use IsaDma interface instead of global DMA_* functions

2016-02-03 Thread John Snow
From: Hervé Poussineau Signed-off-by: Hervé Poussineau Message-id: 1453843944-26833-18-git-send-email-hpous...@reactos.org Signed-off-by: John Snow --- hw/audio/gus.c | 20 +--- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/hw/audio/gus.c b/hw/audio/gus.c index

[Qemu-devel] [PULL 15/20] sparc64: disable floppy DMA

2016-02-03 Thread John Snow
From: Hervé Poussineau All functions relative to DMA (DMA_*() functions) are stubs on sparc64 platform. Disable the DMA of the floppy controller, instead of calling these stubs. Signed-off-by: Hervé Poussineau Message-id: 1453843944-26833-15-git-send-email-hpous...@reactos.org Signed-off-by: Jo

[Qemu-devel] [PULL 12/20] i8257: implement the IsaDma interface

2016-02-03 Thread John Snow
From: Hervé Poussineau Rewrite the global DMA_*() functions to use the IsaDma interface. Note that these functions will be deleted in a few commits. Signed-off-by: Hervé Poussineau Message-id: 1453843944-26833-12-git-send-email-hpous...@reactos.org Signed-off-by: John Snow --- hw/dma/i8257.c

[Qemu-devel] [PULL 07/20] i8257: make the DMA running method per controller

2016-02-03 Thread John Snow
From: Hervé Poussineau This removes some static/global variables, and we're now running only the required controller (master or slave) Signed-off-by: Hervé Poussineau Message-id: 1453843944-26833-7-git-send-email-hpous...@reactos.org Signed-off-by: John Snow --- hw/dma/i8257.c | 75 ++

[Qemu-devel] [PULL 11/20] isa: add an ISA DMA interface, and store it within the ISA bus

2016-02-03 Thread John Snow
From: Hervé Poussineau This will permit to deprecate global DMA_*() functions. Signed-off-by: Hervé Poussineau Message-id: 1453843944-26833-11-git-send-email-hpous...@reactos.org Signed-off-by: John Snow --- hw/isa/isa-bus.c| 21 + include/hw/isa/isa.h| 38

[Qemu-devel] [PULL 10/20] i8257: move state definition to new independent header

2016-02-03 Thread John Snow
From: Hervé Poussineau We will now be able to embed the i8257 interrupt controller in another object. Signed-off-by: Hervé Poussineau Message-id: 1453843944-26833-10-git-send-email-hpous...@reactos.org Signed-off-by: John Snow --- hw/dma/i8257.c | 35 +-

[Qemu-devel] [PULL 09/20] i8257: QOM'ify

2016-02-03 Thread John Snow
From: Hervé Poussineau Signed-off-by: Hervé Poussineau Message-id: 1453843944-26833-9-git-send-email-hpous...@reactos.org Signed-off-by: John Snow --- hw/dma/i8257.c | 160 ++--- 1 file changed, 107 insertions(+), 53 deletions(-) diff --git

[Qemu-devel] [PULL 03/20] i8257: pass ISA bus to DMA_init() function

2016-02-03 Thread John Snow
From: Hervé Poussineau i8257 DMA controller exists on one ISA bus, so let's specify it at initialization. Signed-off-by: Hervé Poussineau Message-id: 1453843944-26833-3-git-send-email-hpous...@reactos.org Signed-off-by: John Snow --- hw/dma/i82374.c | 2 +- hw/dma/i8257.c |

[Qemu-devel] [PULL 05/20] i8257: rename struct dma_regs to I8257Regs

2016-02-03 Thread John Snow
From: Hervé Poussineau Signed-off-by: Hervé Poussineau Message-id: 1453843944-26833-5-git-send-email-hpous...@reactos.org Signed-off-by: John Snow --- hw/dma/i8257.c | 40 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/hw/dma/i8257.c b/

[Qemu-devel] [PULL 02/20] i82374: device only existed as ISA device, so simplify device

2016-02-03 Thread John Snow
From: Hervé Poussineau Merge ISAi82374State fields into parent structure I82374State. Signed-off-by: Hervé Poussineau Message-id: 1453843944-26833-2-git-send-email-hpous...@reactos.org Signed-off-by: John Snow --- hw/dma/i82374.c | 58 +++--

[Qemu-devel] [PULL 08/20] i8257: add missing const

2016-02-03 Thread John Snow
From: Hervé Poussineau Signed-off-by: Hervé Poussineau Message-id: 1453843944-26833-8-git-send-email-hpous...@reactos.org Signed-off-by: John Snow --- hw/dma/i8257.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/dma/i8257.c b/hw/dma/i8257.c index e577ed4..0e5ebc1 10064

[Qemu-devel] [PULL 00/20] FDC patches

2016-02-03 Thread John Snow
The following changes since commit 87574621b18f86eab295a2c207e0b42c77b5dfa0: Merge remote-tracking branch 'remotes/kraxel/tags/pull-vga-20160203-1' into staging (2016-02-03 12:23:48 +) are available in the git repository at: https://github.com/jnsnow/qemu.git tags/ide-pull-re

[Qemu-devel] [PULL 04/20] i8257: rename struct dma_cont to I8257State

2016-02-03 Thread John Snow
From: Hervé Poussineau Signed-off-by: Hervé Poussineau Message-id: 1453843944-26833-4-git-send-email-hpous...@reactos.org Signed-off-by: John Snow --- hw/dma/i8257.c | 43 +++ 1 file changed, 23 insertions(+), 20 deletions(-) diff --git a/hw/dma/i8257.c

[Qemu-devel] [PULL 14/20] sparc: disable floppy DMA

2016-02-03 Thread John Snow
From: Hervé Poussineau All functions relative to DMA (DMA_*() functions) are stubs on sparc platform. Disable the DMA in the floppy controller, instead of calling these stubs. Signed-off-by: Hervé Poussineau Message-id: 1453843944-26833-14-git-send-email-hpous...@reactos.org Signed-off-by: John

[Qemu-devel] [PULL 01/20] fdc: fix detection under Linux

2016-02-03 Thread John Snow
Accidentally, I removed a "feature" where empty drives had geometry values applied to them, which allows seek on empty drives to work "by accident," as QEMU actually tries to disallow that. Seeks on empty drives should work, though, but the easiest thing is to restore the misfeature where empty dr

Re: [Qemu-devel] [RFC PATCH v2 7/7] vfio/pci: Find and expose Intel IGD OpRegion

2016-02-03 Thread Alex Williamson
On Wed, 2016-02-03 at 10:29 +0100, Gerd Hoffmann wrote: > On Di, 2016-02-02 at 13:09 -0700, Alex Williamson wrote: > > This is provided via a device specific region, look for it on Intel > > VGA class devices.  Our default mechanism to expose this to the BIOS > > is via fw_cfg where it's expected t

Re: [Qemu-devel] [PATCH v2 0/4] set the OEM fields in the RSDT and the FADT from the SLIC

2016-02-03 Thread Laszlo Ersek
On 02/03/16 20:02, Michael Tokarev wrote: > 03.02.2016 21:51, Laszlo Ersek wrote: >> Ping #2. > > I think I asked this before, but somehow I don't see anyone > answered. Is this thing worth to have now, when windows7 is > 2 releases away, everyone is moving to windows8 or 10 rapidly, > and these

Re: [Qemu-devel] [SeaBIOS] [RFC PATCH v2] fw/pci: Add support for mapping Intel IGD OpRegion via QEMU

2016-02-03 Thread Alex Williamson
On Wed, 2016-02-03 at 10:04 +0100, Gerd Hoffmann wrote: >   Hi, >  > > +static void intel_igd_opregion_setup(struct pci_device *dev, void *arg) > > +{ > > +struct romfile_s *file = romfile_find("etc/igd-opregion"); >  > Is it possible to have multiple igd devices in a single machine? > So, shou

Re: [Qemu-devel] [RFC PATCH v1 1/1] vGPU core driver : to provide common interface for vGPU.

2016-02-03 Thread Alex Williamson
On Wed, 2016-02-03 at 09:28 +0100, Gerd Hoffmann wrote: >   Hi, >  > > Actually I have a long puzzle in this area. Definitely libvirt will use > > UUID to > > mark a VM. And obviously UUID is not recorded within KVM. Then how does > > libvirt talk to KVM based on UUID? It could be a good reference

Re: [Qemu-devel] [PATCH 0/2] error: Documentation updates

2016-02-03 Thread Lluís Vilanova
Markus Armbruster writes: > This overlaps with parts of Lluís's "[RFC][PATCH v6 0/5] utils: > Improve and document error reporting". Lluís, feel free to integrate > my patches into a respin of your series. You can also respin on top > of my series. Reviewed-by: Lluís Vilanova I'm happy with t

Re: [Qemu-devel] [PATCH v2 0/4] set the OEM fields in the RSDT and the FADT from the SLIC

2016-02-03 Thread Michael Tokarev
03.02.2016 21:51, Laszlo Ersek wrote: > Ping #2. I think I asked this before, but somehow I don't see anyone answered. Is this thing worth to have now, when windows7 is 2 releases away, everyone is moving to windows8 or 10 rapidly, and these OSes don't benefit from this patch due to different act

Re: [Qemu-devel] qdev & hw/core owner? (was Re: [PATCH v19 7/9] machine: add properties to compat_props incrementaly)

2016-02-03 Thread Michael S. Tsirkin
On Wed, Feb 03, 2016 at 03:55:04PM -0200, Eduardo Habkost wrote: > On Thu, Jan 28, 2016 at 06:00:31PM +0100, Igor Mammedov wrote: > [...] > > It looks like this series might go nowhere but this patch > > is not tied to it and useful to us in general > > so perhaps you could pick it up after ACKs fr

[Qemu-devel] [PULL 10/17] bcm2835_mbox: add BCM2835 mailboxes

2016-02-03 Thread Peter Maydell
From: Andrew Baumann This adds the system mailboxes which are used to communicate with a number of GPU peripherals on Pi/Pi2. Reviewed-by: Peter Crosthwaite Signed-off-by: Andrew Baumann Signed-off-by: Peter Maydell --- default-configs/arm-softmmu.mak | 1 + hw/misc/Makefile.objs

[Qemu-devel] [PULL 03/17] hw/arm: Setup EL1 and EL2 in AArch64 mode for 64bit Linux boots

2016-02-03 Thread Peter Maydell
From: "Edgar E. Iglesias" When booting Linux on AArch64 enabled cores, setup EL1 and EL2 to use AArch64. Signed-off-by: Edgar E. Iglesias Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- hw/arm/boot.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/arm/boot.c b/hw/arm/boo

[Qemu-devel] [PULL 04/17] target-arm: Apply S2 MMU startlevel table size check to AArch64

2016-02-03 Thread Peter Maydell
From: "Edgar E. Iglesias" The S2 starting level table size check applies to both AArch32 and AArch64. Move it to common code. Reviewed-by: Alex Bennée Reviewed-by: Peter Maydell Signed-off-by: Edgar E. Iglesias Message-id: 1453932970-14576-2-git-send-email-edgar.igles...@gmail.com Signed-off-

[Qemu-devel] [PULL 13/17] bcm2835_peripherals: add rollup device for bcm2835 peripherals

2016-02-03 Thread Peter Maydell
From: Andrew Baumann This device maintains all the non-CPU peripherals on bcm2835 (Pi1) which are also present on bcm2836 (Pi2). It also implements the private address spaces used for DMA and mailboxes. Reviewed-by: Peter Crosthwaite Signed-off-by: Andrew Baumann Signed-off-by: Peter Maydell

[Qemu-devel] [PULL 05/17] target-arm: Rename check_s2_startlevel to check_s2_mmu_setup

2016-02-03 Thread Peter Maydell
From: "Edgar E. Iglesias" Rename check_s2_startlevel to check_s2_mmu_setup in preparation for additional checks. Signed-off-by: Edgar E. Iglesias Reviewed-by: Alex Bennée Message-id: 1453932970-14576-3-git-send-email-edgar.igles...@gmail.com Signed-off-by: Peter Maydell --- target-arm/helper

Re: [Qemu-devel] [PATCH v4 11/11] cputlb: modernise the debug support

2016-02-03 Thread Peter Maydell
On 3 February 2016 at 18:54, Alex Bennée wrote: > It preserves the old behaviour (and the general behaviour of DEBUG_FOO > going to stderr). However I'm happy to make it default to using the log > output. > > It does raise the question of if we should just enable the debugging by > default? Not w

[Qemu-devel] [PULL 06/17] target-arm: Implement the S2 MMU inputsize > pamax check

2016-02-03 Thread Peter Maydell
From: "Edgar E. Iglesias" Implement the inputsize > pamax check for Stage 2 translations. This is CONSTRAINED UNPREDICTABLE and we choose to fault. Signed-off-by: Edgar E. Iglesias Reviewed-by: Alex Bennée Message-id: 1453932970-14576-4-git-send-email-edgar.igles...@gmail.com Signed-off-by: Pe

[Qemu-devel] [PULL 11/17] bcm2835_property: add bcm2835 property channel

2016-02-03 Thread Peter Maydell
From: Andrew Baumann This sits behind the mailbox interface, and implements request/response queries for system properties. The framebuffer-related properties will be added in a later patch. Reviewed-by: Peter Crosthwaite Signed-off-by: Andrew Baumann Signed-off-by: Peter Maydell --- hw/misc

[Qemu-devel] [PULL 14/17] bcm2836_control: add bcm2836 ARM control logic

2016-02-03 Thread Peter Maydell
From: Andrew Baumann This module is specific to the bcm2836 (Pi2). It implements the top level interrupt controller, and mailboxes used for inter-processor synchronisation. Reviewed-by: Peter Crosthwaite Signed-off-by: Andrew Baumann Signed-off-by: Peter Maydell --- hw/intc/Makefile.objs

[Qemu-devel] [PULL 07/17] arm: virt-acpi: each MADT.GICC entry as enabled unconditionally

2016-02-03 Thread Peter Maydell
From: Igor Mammedov in current impl. condition build_madt() { ... if (test_bit(i, cpuinfo->found_cpus)) is always true since loop handles only present CPUs in range [0..smp_cpus). But to fill usless cpuinfo->found_cpus we do unnecessary scan over QOM tree to find the same CPUs. So mark GICC

[Qemu-devel] [PULL 09/17] target-arm: Don't report presence of EL2 if it doesn't exist

2016-02-03 Thread Peter Maydell
We already modify the processor feature bits to not report EL3 support to the guest if EL3 isn't enabled for the CPU we're emulating. Add similar support for not reporting EL2 unless it is enabled. This is necessary because real world guest code running at EL3 (trusted firmware or bootloaders) will

[Qemu-devel] [PULL 02/17] target-arm: Make various system registers visible to EL3

2016-02-03 Thread Peter Maydell
The AArch64 system registers DACR32_EL2, IFSR32_EL2, SPSR_IRQ, SPSR_ABT, SPSR_UND and SPSR_FIQ are visible and fully functional from EL3 even if the CPU has no EL2 (unlike some others which are RES0 from EL3 in that configuration). Move them from el2_cp_reginfo[] to v8_cp_reginfo[] so they are alw

[Qemu-devel] [PULL 08/17] libvixl: Avoid std::abs() of 64-bit type

2016-02-03 Thread Peter Maydell
The std::abs() function did not get a version that works on 'long long' until C++11. Avoid it, so that we can compile on 32-bit platforms (where int64_t is 'long long') with older compilers (which don't support C++11). Reported-by: Franz-Josef Haider Signed-off-by: Peter Maydell Message-id: 1453

[Qemu-devel] [PULL 12/17] bcm2835_ic: add bcm2835 interrupt controller

2016-02-03 Thread Peter Maydell
From: Andrew Baumann Reviewed-by: Peter Crosthwaite Signed-off-by: Andrew Baumann Signed-off-by: Peter Maydell --- hw/intc/Makefile.objs| 1 + hw/intc/bcm2835_ic.c | 236 +++ include/hw/intc/bcm2835_ic.h | 33 ++ 3 files changed,

[Qemu-devel] [PULL 15/17] bcm2836: add bcm2836 SoC device

2016-02-03 Thread Peter Maydell
From: Andrew Baumann This is the SoC for Raspberry Pi 2. Reviewed-by: Peter Crosthwaite Signed-off-by: Andrew Baumann Signed-off-by: Peter Maydell --- hw/arm/Makefile.objs | 2 +- hw/arm/bcm2836.c | 165 +++ include/hw/arm/bcm2836.h |

[Qemu-devel] [PULL 17/17] raspi: add raspberry pi 2 machine

2016-02-03 Thread Peter Maydell
From: Andrew Baumann Reviewed-by: Peter Crosthwaite Signed-off-by: Andrew Baumann Signed-off-by: Peter Maydell --- hw/arm/Makefile.objs | 2 +- hw/arm/raspi.c | 152 +++ 2 files changed, 153 insertions(+), 1 deletion(-) create mode 1006

[Qemu-devel] [PULL 00/17] target-arm queue

2016-02-03 Thread Peter Maydell
ARM queue -- most interesting thing here is the raspberry pi 2 board model. thanks -- PMM The following changes since commit 87574621b18f86eab295a2c207e0b42c77b5dfa0: Merge remote-tracking branch 'remotes/kraxel/tags/pull-vga-20160203-1' into staging (2016-02-03 12:23:48 +

[Qemu-devel] [PULL 01/17] virt-acpi-build: add always-on property for timer

2016-02-03 Thread Peter Maydell
From: Andrew Jones This patch is the ACPI equivalent of "hw/arm/virt: Add always-on property to the virt board timer". The timer is always on, and thus setting this informs Linux that it may switch off the periodic timer. Switching off the periodic timer substantially reduces the number of interr

[Qemu-devel] [PULL 16/17] arm/boot: move highbank secure board setup code to common routine

2016-02-03 Thread Peter Maydell
From: Andrew Baumann The new version is slightly different, to support Rasbperry Pi (in particular, Pi1's arm11 core which doesn't support v7 instructions such as MOVW). Tested-by: Peter Crosthwaite Reviewed-by: Peter Crosthwaite Signed-off-by: Andrew Baumann Signed-off-by: Peter Maydell ---

Re: [Qemu-devel] [PATCH v4 11/11] cputlb: modernise the debug support

2016-02-03 Thread Alex Bennée
Aurelien Jarno writes: > On 2015-08-03 10:14, Alex Bennée wrote: >> To avoid cluttering the code with #ifdef legs we wrap up the print >> statements into a tlb_debug() macro. As access to the virtual TLB can >> get quite heavy defining DEBUG_TLB_LOG will ensure all the logs go to >> the qemu_log

Re: [Qemu-devel] [PATCH v2 0/4] set the OEM fields in the RSDT and the FADT from the SLIC

2016-02-03 Thread Laszlo Ersek
On 01/27/16 19:31, Laszlo Ersek wrote: > On 01/18/16 15:12, Laszlo Ersek wrote: >> This is version 2 of >> . >> >> Changes in v2 (also annotated per patch): >> - introduce acpi_get_slic_oem() [MST], >> - drop machine property that disables t

Re: [Qemu-devel] [PULL 00/13] Tracing patches

2016-02-03 Thread Paolo Bonzini
On 03/02/2016 18:55, Peter Maydell wrote: > On 3 February 2016 at 15:47, Stefan Hajnoczi wrote: >> The following changes since commit c65db7705b7926f4a084b93778e4bd5dd3990aad: >> >> Merge remote-tracking branch >> 'remotes/maxreitz/tags/pull-block-for-peter-2016-02-02' into staging >> (2016-

Re: [Qemu-devel] qdev & hw/core owner? (was Re: [PATCH v19 7/9] machine: add properties to compat_props incrementaly)

2016-02-03 Thread Laszlo Ersek
On 02/03/16 18:55, Eduardo Habkost wrote: > On Thu, Jan 28, 2016 at 06:00:31PM +0100, Igor Mammedov wrote: > [...] >> It looks like this series might go nowhere but this patch >> is not tied to it and useful to us in general >> so perhaps you could pick it up after ACKs from >> S390/SPAPR maintaine

Re: [Qemu-devel] [PULL 10/13] log: move qemu-log.c into util/ directory

2016-02-03 Thread Paolo Bonzini
On 03/02/2016 18:38, Dimitris Aragiorgis wrote: > Hi all, > > A while ago me and Alex [cc'ed] submitted a trivial patch related > to logging [1]. Since this patch set here moves the qemu-log.c > under util/, our patch will not apply any more. Should we rebase it > and resend it against current m

  1   2   3   4   >