[Qemu-devel] [PATCH v5 01/14] tests: Add utilities for docker testing

2016-05-22 Thread Fam Zheng
docker.py is added with a number of useful subcommands to manager docker images and instances for QEMU docker testing. Subcommands are: run: A wrapper of "docker run" (or "sudo -n docker run" if necessary), which takes care of killing and removing the running container at SIGINT. clean: Tear down

[Qemu-devel] [PATCH v5 00/14] tests: Introducing docker tests

2016-05-22 Thread Fam Zheng
v5: Use docker run's selinux option "z" on passed volume, drop --privileged. Allow overriding "TARGET_LIST" in clang-test. Add Alex's r-b lines in patches 1, 3, 9, 11 and 13. This series adds a new "docker" make target family to run tests in created docker containers. To begin with, this

[Qemu-devel] [PATCH v5 02/14] rules.mak: Add "COMMA" constant

2016-05-22 Thread Fam Zheng
Using "," literal in $(call quiet-command, ...) arguments is awkward. Add this constant to make it at least doable. Signed-off-by: Fam Zheng --- rules.mak | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rules.mak b/rules.mak index d1ff311..4a8f464 100644 --- a/rules.mak +++ b/rules.mak @@

[Qemu-devel] [PATCH v5 07/14] docker: Add quick test

2016-05-22 Thread Fam Zheng
Reviewed-by: Alex Bennée Signed-off-by: Fam Zheng --- tests/docker/test-quick | 19 +++ 1 file changed, 19 insertions(+) create mode 100755 tests/docker/test-quick diff --git a/tests/docker/test-quick b/tests/docker/test-quick new file mode 100755 index 000..07cdc59 --- /de

[Qemu-devel] [PATCH] vhost-user: fix unreasonable return value when vhost-user read failed

2016-05-22 Thread Gonglei
At present all corresponding functions which calling vhost_user_read() don't return failure when vhost_user_read() executed failed. That's dangerous, because VhostUserMsg will be a random value, and cause the virtual machine panic finally. A example: In Qemu side report: qemu-kvm: -netdev type=vh

[Qemu-devel] [PATCH] xen/blkif: avoid double access to any shared ring request fields

2016-05-22 Thread Jan Beulich
Commit f9e98e5d7a ("xen/blkif: Avoid double access to src->nr_segments") didn't go far enough: src->operation is also being used twice. And nothing was done to prevent the compiler from using the source side of the copy done by blk_get_request() (granted that's very unlikely). Move the barrier()s

Re: [Qemu-devel] [PATCH] hw/virtio/balloon: Fixes for different host page sizes

2016-05-22 Thread Jitendra Kolhe
On 4/13/2016 8:21 PM, Thomas Huth wrote: > On 13.04.2016 15:15, Michael S. Tsirkin wrote: >> On Wed, Apr 13, 2016 at 01:52:44PM +0200, Thomas Huth wrote: >>> The balloon code currently calls madvise() with TARGET_PAGE_SIZE >>> as length parameter, and an address which is directly based on >>> the p

Re: [Qemu-devel] [PATCH] i2c: add aspeed i2c crontroller

2016-05-22 Thread Andrew Jeffery
On Mon, 2016-05-23 at 07:55 +0200, Cédric Le Goater wrote: > >  > > The hunk fails to apply to master as the SCU isn't yet integrated > > there. The change to ast2400.h also fails to apply for this reason. > > Ah yes. I am using your branch for this patch.  > > So, I will provide you a fix for "q

Re: [Qemu-devel] [PATCH] i2c: add aspeed i2c crontroller

2016-05-22 Thread Cédric Le Goater
On 05/23/2016 03:41 AM, Andrew Jeffery wrote: > Hi Cédric, > > On Fri, 2016-05-20 at 18:27 +0200, Cédric Le Goater wrote: >> The Aspeed AST2400 integrates a set of 14 I2C/SMBus bus controllers >> directly connected to ab APB bus which can be programmed as a master >> or slave. >> >> This patch off

Re: [Qemu-devel] [PATCH 2/4] hw/misc: add a TMP42{1, 2, 3} device model

2016-05-22 Thread Cédric Le Goater
On 05/23/2016 05:53 AM, Andrew Jeffery wrote: > Hi Cédric, > > On Fri, 2016-05-20 at 18:31 +0200, Cédric Le Goater wrote: >> Largely inspired by the TMP105 temperature sensor, this patch brings >> to Qemu a model for TMP42{1,2,3} temperature sensors. >> >> Specs can be found here : >> >> http

Re: [Qemu-devel] [PATCH v5 12/18] qht: QEMU's fast, resizable and scalable Hash Table

2016-05-22 Thread Emilio G. Cota
On Sun, May 22, 2016 at 09:01:59 +0100, Alex Bennée wrote: > Emilio G. Cota writes: > > A small update: I just got rid of all the atomic_read/set's that > > apply to the hashes, since retries will take care of possible races. > > I guess the potential hash-clash from a partially read or set hash

Re: [Qemu-devel] [PATCH 2/4] hw/misc: add a TMP42{1, 2, 3} device model

2016-05-22 Thread Andrew Jeffery
Hi Cédric, On Fri, 2016-05-20 at 18:31 +0200, Cédric Le Goater wrote: > Largely inspired by the TMP105 temperature sensor, this patch brings > to Qemu a model for TMP42{1,2,3} temperature sensors. > > Specs can be found here : > > http://www.ti.com/lit/gpn/tmp421 > > Signed-off-by: Cédric

Re: [Qemu-devel] [PATCH 5/9] virtio-blk: multiqueue batch notify

2016-05-22 Thread Fam Zheng
On Fri, 05/20 16:40, Stefan Hajnoczi wrote: > The batch notification BH needs to know which virtqueues to notify when > multiqueue is enabled. Use a bitmap to track the virtqueues that with > pending notifications. This approach works great as long as VQs are in the same iothread. An alternative

[Qemu-devel] [PATCH v2 1/4] blockdev-backup: Use bdrv_lookup_bs on target

2016-05-22 Thread Fam Zheng
This allows backing up to a BDS that has not been attached to any BB. Signed-off-by: Fam Zheng --- blockdev.c | 13 +++-- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/blockdev.c b/blockdev.c index 40e4e6f..026ead0 100644 --- a/blockdev.c +++ b/blockdev.c @@ -3346,7 +334

[Qemu-devel] [PATCH v2 3/4] virtio-blk: Remove op blocker for dataplane

2016-05-22 Thread Fam Zheng
Block layer is prepared to unspecialize dataplane, an evidence is this almost complete list of unblocked operations. It has all types except two (actually three if DATAPLANE itself counts but blockdev.c makes sure attaching twice is not possible): MIRROR_TARGET and BACKUP_TARGET. blockdev-mirror r

[Qemu-devel] [PATCH v2 0/4] Drop virtio-{blk,scsi} op blockers

2016-05-22 Thread Fam Zheng
v2: Switch to bdrv_lookup_bs on target_bs. [Kevin] Rebase onto master. Add Michael's ack-by in virtio patches. We are ready to get rid of dataplane's op blockers altogether. Most operations are already unblocked in virtio-blk, and those remained for virtio-scsi only because we haven't got

Re: [Qemu-devel] [PATCH v5 09/11] pci bridge dev: change msi property type

2016-05-22 Thread Cao jin
On 05/17/2016 03:38 PM, Michael S. Tsirkin wrote: On Tue, May 17, 2016 at 03:39:14PM +0800, Cao jin wrote: Personally I don't consider this a big issue. I don't think many people specify msi=on. I also think so:) If so, the semantics won`t change. Marcel, do you think it is ok if I ad

[Qemu-devel] [PULL 19/20] net: vl: Move default_net to vl.c

2016-05-22 Thread Jason Wang
From: Eduardo Habkost All handling of defaults (default_* variables) is inside vl.c, move default_net there too, so we can more easily refactor that code later. Reviewed-by: Paolo Bonzini Signed-off-by: Eduardo Habkost Signed-off-by: Jason Wang --- include/net/net.h | 1 - net/net.c

[Qemu-devel] [PATCH v2 4/4] virtio-scsi: Remove op blocker for dataplane

2016-05-22 Thread Fam Zheng
The previous patch dropped all op blockers from virtio-blk data plane. The situation of virtio-scsi is exactly the same it can drop them too. Signed-off-by: Fam Zheng Acked-by: Michael S. Tsirkin --- hw/scsi/virtio-scsi.c | 62 - include/hw/virt

[Qemu-devel] [PULL 20/20] net/net: Add SocketReadState for reuse codes

2016-05-22 Thread Jason Wang
From: Zhang Chen This function is from net/socket.c, move it to net.c and net.h. Add SocketReadState to make others reuse net_fill_rstate(). suggestion from jason. v4: - move 'rs->finalize = finalize' to rs_init() v3: - remove SocketReadState init callback - put finalize callback to net_fill

[Qemu-devel] [PULL 11/20] net_pkt: Name vmxnet3 packet abstractions more generic

2016-05-22 Thread Jason Wang
From: Dmitry Fleytman This patch drops "vmx" prefix from packet abstractions names to emphasize the fact they are generic and not tied to any specific network device. These abstractions will be reused by e1000e emulation implementation introduced by following patches so their names need generali

[Qemu-devel] [PULL 15/20] e1000_regs: Add definitions for Intel 82574-specific bits

2016-05-22 Thread Jason Wang
From: Dmitry Fleytman Reviewed-by: Michael S. Tsirkin Signed-off-by: Dmitry Fleytman Signed-off-by: Leonid Bloch Signed-off-by: Jason Wang --- hw/net/e1000_regs.h | 345 +++- 1 file changed, 342 insertions(+), 3 deletions(-) diff --git a/hw/ne

[Qemu-devel] [PULL 10/20] vmxnet3: Use common MAC address tracing macros

2016-05-22 Thread Jason Wang
From: Dmitry Fleytman Reviewed-by: Michael S. Tsirkin Signed-off-by: Dmitry Fleytman Signed-off-by: Leonid Bloch Signed-off-by: Jason Wang --- hw/net/vmxnet3.c | 8 hw/net/vmxnet_debug.h | 3 --- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/hw/net/vmxnet3.c b/

[Qemu-devel] [PULL 16/20] e1000: Move out code that will be reused in e1000e

2016-05-22 Thread Jason Wang
From: Dmitry Fleytman Code that will be shared moved to a separate files. Reviewed-by: Michael S. Tsirkin Signed-off-by: Dmitry Fleytman Signed-off-by: Leonid Bloch Signed-off-by: Jason Wang --- MAINTAINERS| 5 + hw/net/Makefile.objs | 2 +- hw/net/e1000.c | 411 ++

[Qemu-devel] [PULL 13/20] net_pkt: Extend packet abstraction as required by e1000e functionality

2016-05-22 Thread Jason Wang
From: Dmitry Fleytman This patch extends the TX/RX packet abstractions with features that will be used by the e1000e device implementation. Changes are: 1. Support iovec lists for RX buffers 2. Deeper RX packets parsing 3. Loopback option for TX packets 4. Extended VLAN headers handling

[Qemu-devel] [PULL 04/20] pci: Introduce define for PM capability version 1.1

2016-05-22 Thread Jason Wang
From: Dmitry Fleytman Reviewed-by: Michael S. Tsirkin Signed-off-by: Dmitry Fleytman Signed-off-by: Leonid Bloch Signed-off-by: Jason Wang --- include/hw/pci/pci_regs.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/hw/pci/pci_regs.h b/include/hw/pci/pci_regs.h index ba8cbe9..

[Qemu-devel] [PULL 09/20] net: Add macros for MAC address tracing

2016-05-22 Thread Jason Wang
From: Dmitry Fleytman These macros will be used by future commits introducing e1000e device emulation and by vmxnet3 tracing code. Reviewed-by: Michael S. Tsirkin Signed-off-by: Dmitry Fleytman Signed-off-by: Leonid Bloch Signed-off-by: Jason Wang --- include/net/net.h | 5 + 1 file cha

[Qemu-devel] [PATCH v2 2/4] blockdev-backup: Don't move target AioContext if it's attached

2016-05-22 Thread Fam Zheng
If the BDS is attached, it will want to stay on the AioContext where its BlockBackend is. Don't call bdrv_set_aio_context in this case. Signed-off-by: Fam Zheng --- blockdev.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/blockdev.c b/blockdev.c index 026ead0..

[Qemu-devel] [PULL 14/20] vmxnet3: Use pci_dma_* API instead of cpu_physical_memory_*

2016-05-22 Thread Jason Wang
From: Dmitry Fleytman To make this device and network packets abstractions ready for IOMMU. Reviewed-by: Michael S. Tsirkin Signed-off-by: Dmitry Fleytman Signed-off-by: Leonid Bloch Signed-off-by: Jason Wang --- hw/net/net_tx_pkt.c | 16 +++- hw/net/net_tx_pkt.h | 5 +++-- hw/

[Qemu-devel] [PULL 08/20] net: Introduce Toeplitz hash calculator

2016-05-22 Thread Jason Wang
From: Dmitry Fleytman Reviewed-by: Michael S. Tsirkin Signed-off-by: Dmitry Fleytman Signed-off-by: Leonid Bloch Signed-off-by: Jason Wang --- include/net/checksum.h | 45 + 1 file changed, 45 insertions(+) diff --git a/include/net/checksum.h b/in

[Qemu-devel] [PULL 03/20] msix: make msix_clr_pending() visible for clients

2016-05-22 Thread Jason Wang
From: Dmitry Fleytman This function will be used by e1000e device code. Reviewed-by: Michael S. Tsirkin Signed-off-by: Dmitry Fleytman Signed-off-by: Leonid Bloch Signed-off-by: Jason Wang --- hw/pci/msix.c | 2 +- include/hw/pci/msix.h | 1 + 2 files changed, 2 insertions(+), 1 del

[Qemu-devel] [PULL 18/20] e1000e: Introduce qtest for e1000e device

2016-05-22 Thread Jason Wang
From: Dmitry Fleytman Reviewed-by: Michael S. Tsirkin Signed-off-by: Dmitry Fleytman Signed-off-by: Leonid Bloch Signed-off-by: Jason Wang --- tests/Makefile | 3 + tests/e1000e-test.c | 480 2 files changed, 483 insertions(+) crea

[Qemu-devel] [PULL 01/20] net/tap: Allocating Large sized arrays to heap

2016-05-22 Thread Jason Wang
From: Zhou Jie net_init_tap has a huge stack usage of 8192 bytes approx. Moving large arrays to heap to reduce stack usage. Signed-off-by: Zhou Jie Signed-off-by: Jason Wang --- net/tap.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/net/tap.c b/net/tap.c index 740

[Qemu-devel] [PULL 06/20] pcie: Introduce function for DSN capability creation

2016-05-22 Thread Jason Wang
From: Dmitry Fleytman Reviewed-by: Michael S. Tsirkin Signed-off-by: Dmitry Fleytman Signed-off-by: Leonid Bloch Signed-off-by: Jason Wang --- hw/pci/pcie.c | 10 ++ include/hw/pci/pcie.h | 1 + 2 files changed, 11 insertions(+) diff --git a/hw/pci/pcie.c b/hw/pci/pcie.c in

[Qemu-devel] [PULL 07/20] vmxnet3: Use generic function for DSN capability definition

2016-05-22 Thread Jason Wang
From: Dmitry Fleytman Reviewed-by: Michael S. Tsirkin Signed-off-by: Dmitry Fleytman Signed-off-by: Leonid Bloch Signed-off-by: Jason Wang --- hw/net/vmxnet3.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/hw/net/vmxnet3.c b/hw/net/vmxnet3.c index 20f26b7..

[Qemu-devel] [PULL 12/20] rtl8139: Move more TCP definitions to common header

2016-05-22 Thread Jason Wang
From: Dmitry Fleytman Reviewed-by: Michael S. Tsirkin Signed-off-by: Dmitry Fleytman Signed-off-by: Leonid Bloch Signed-off-by: Jason Wang --- hw/net/rtl8139.c | 5 - include/net/eth.h | 8 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/hw/net/rtl8139.c b/hw/net

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

2016-05-22 Thread Jason Wang
The following changes since commit 65603e2fc18b48e6e55a3dd693669413141694ec: tci: do not include exec/exec-all.h (2016-05-20 15:07:46 +0100) are available in the git repository at: https://github.com/jasowang/qemu.git tags/net-pull-request for you to fetch changes up to c5247aedff1e4580bc3c

[Qemu-devel] [PULL 02/20] net: mipsnet: check packet length against buffer

2016-05-22 Thread Jason Wang
From: Prasad J Pandit When receiving packets over MIPSnet network device, it uses receive buffer of size 1514 bytes. In case the controller accepts large(MTU) packets, it could lead to memory corruption. Add check to avoid it. Reported by: Oleksandr Bazhaniuk Signed-off-by: Prasad J Pandit Sig

[Qemu-devel] [PULL 05/20] pcie: Add support for PCIe CAP v1

2016-05-22 Thread Jason Wang
From: Dmitry Fleytman Added support for PCIe CAP v1, while reusing some of the existing v2 infrastructure. Reviewed-by: Michael S. Tsirkin Signed-off-by: Dmitry Fleytman Signed-off-by: Leonid Bloch Signed-off-by: Jason Wang --- hw/pci/pcie.c | 84 +++

Re: [Qemu-devel] [PATCH] i2c: add aspeed i2c crontroller

2016-05-22 Thread Andrew Jeffery
Hi Cédric, On Fri, 2016-05-20 at 18:27 +0200, Cédric Le Goater wrote: > The Aspeed AST2400 integrates a set of 14 I2C/SMBus bus controllers > directly connected to ab APB bus which can be programmed as a master > or slave. > > This patch offers a device model for the master mode only, slave mode

Re: [Qemu-devel] [PATCH 1/3] blockdev-backup: Don't move target AioContext if it's attached

2016-05-22 Thread Fam Zheng
On Thu, 05/19 13:42, Stefan Hajnoczi wrote: > On Wed, May 18, 2016 at 04:24:08PM +0800, Fam Zheng wrote: > > If the BDS is attached, it will want to stay on the AioContext where its > > BlockBackend is. Don't call bdrv_set_aio_context in this case. > > What should the user do when they hit this er

Re: [Qemu-devel] [PATCH 1/3] blockdev-backup: Don't move target AioContext if it's attached

2016-05-22 Thread Fam Zheng
On Fri, 05/20 10:03, Kevin Wolf wrote: > Am 18.05.2016 um 10:24 hat Fam Zheng geschrieben: > > If the BDS is attached, it will want to stay on the AioContext where its > > BlockBackend is. Don't call bdrv_set_aio_context in this case. > > > > Signed-off-by: Fam Zheng > > --- > > blockdev.c | 12

Re: [Qemu-devel] GSoC 2016: Student Introduction

2016-05-22 Thread Fam Zheng
On Sun, 05/22 13:30, David Kiarie wrote: > Hello, > > My name is David Kiarie. I am a student who has been selected to work > with Qemu as part of GSoC. My project entails completing the current > AMD IOMMU implementation work (getting the current patches merged) and > adding interrupt remapping.

Re: [Qemu-devel] [GSOC 2016] Student Introduction

2016-05-22 Thread Fam Zheng
On Sun, 05/22 18:54, haris iqbal wrote: > Hello everyone.. My name is Md Haris Iqbal. I am one of the students > who has been selected to work with Qemu as part of GSoC 2016. I'll be > working on recovering a postcopy migration in case of a network > failure. > > The progress and details of the pr

Re: [Qemu-devel] GSoC 2016: Introductory email

2016-05-22 Thread Fam Zheng
On Fri, 05/20 08:51, Pranith Kumar wrote: > > Hello all, > > I've been selected to participate in GSoC 2016 in the Qemu project. I will be > mentored by Alex Bennée and will be working on solving memory consistency > issues in the MTTCG project. In particular we are targeting to get ARM guests >

Re: [Qemu-devel] [V11 1/4] hw/i386: Introduce AMD IOMMU

2016-05-22 Thread Alex Bennée
David Kiarie writes: > 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 0xfe

Re: [Qemu-devel] [V11 1/4] hw/i386: Introduce AMD IOMMU

2016-05-22 Thread Jan Kiszka
On 2016-05-22 20:12, Jan Kiszka wrote: > On 2016-05-22 12:21, David Kiarie wrote: >> +static void amdvi_page_walk(AMDVIAddressSpace *as, uint64_t *dte, >> +IOMMUTLBEntry *ret, unsigned perms, >> +hwaddr addr) >> +{ >> +unsigned level, pres

Re: [Qemu-devel] [Nbd] [PULL 23/28] nbd: always query export list in fixed new style protocol

2016-05-22 Thread Richard W.M. Jones
On Sat, May 21, 2016 at 11:53:12PM +0200, Wouter Verhelst wrote: > On Tue, May 17, 2016 at 10:50:01AM -0600, Eric Blake wrote: > > Option 2: An alternative solution would be to allow nbdkit to fail > > NBD_OPT_LIST with NBD_REP_ERR_UNSUP, at which point qemu client of 2.6 > > should just ignore the

Re: [Qemu-devel] [V11 1/4] hw/i386: Introduce AMD IOMMU

2016-05-22 Thread Jan Kiszka
On 2016-05-22 12:21, David Kiarie wrote: > +static void amdvi_page_walk(AMDVIAddressSpace *as, uint64_t *dte, > +IOMMUTLBEntry *ret, unsigned perms, > +hwaddr addr) > +{ > +unsigned level, present, pte_perms, oldlevel; > +uint64_t pte

Re: [Qemu-devel] [V11 1/4] hw/i386: Introduce AMD IOMMU

2016-05-22 Thread Jan Kiszka
On 2016-05-22 12:21, David Kiarie wrote: > +static void amdvi_generate_msi_interrupt(AMDVIState *s) > +{ > +uint64_t addr; > +uint32_t data; > + > +if ((pci_get_word(s->dev.config + s->dev.msi_cap + PCI_MSI_FLAGS) & > + PCI_MSI_FLAGS_ENABLE)) { > +addr = pci_get_quad(s->de

[Qemu-devel] [PATCH v2 1/3] linux-user: add rtnetlink(7) support

2016-05-22 Thread Laurent Vivier
rtnetlink is needed to use iproute package (ip addr, ip route) and dhcp client. Examples: Without this patch: # ip link Cannot open netlink socket: Address family not supported by protocol # ip addr Cannot open netlink socket: Address family not supported by protocol # ip rout

[Qemu-devel] [PATCH v2 2/3] linux-user: support netlink protocol NETLINK_KOBJECT_UEVENT

2016-05-22 Thread Laurent Vivier
This is the protocol used by udevd to manage kernel events. Signed-off-by: Laurent Vivier --- v2: Check domain before opening socket linux-user/syscall.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 3f1b2cc..ff63bf5 1

[Qemu-devel] [PATCH v2 0/3] linux-user: netlink support

2016-05-22 Thread Laurent Vivier
Since commit: e36800c linux-user: add signalfd/signalfd4 syscalls It is now possible to register handlers to a file descriptor to translate a data stream transiting by this file descriptor. We can now decode netlink information coming from the guest and inject a translated one into the host, and

[Qemu-devel] [PATCH v2 3/3] linux-user: add netlink audit

2016-05-22 Thread Laurent Vivier
This is, for instance, needed to log in a container. Without this, the user cannot be identified and the console login fails with "Login incorrect". Signed-off-by: Laurent Vivier --- v2: Check domain before opening socket Use gemu_log() linux-user/syscall.c | 60 +++

Re: [Qemu-devel] [GSOC 2016] Student Introduction

2016-05-22 Thread Alex Bennée
haris iqbal writes: > Hello everyone.. My name is Md Haris Iqbal. I am one of the students > who has been selected to work with Qemu as part of GSoC 2016. I'll be > working on recovering a postcopy migration in case of a network > failure. > > The progress and details of the project can be seen

Re: [Qemu-devel] GSoC 2016: Student Introduction

2016-05-22 Thread Alex Bennée
David Kiarie writes: > Hello, > > My name is David Kiarie. I am a student who has been selected to work > with Qemu as part of GSoC. My project entails completing the current > AMD IOMMU implementation work (getting the current patches merged) and > adding interrupt remapping. I will also try to

[Qemu-devel] [GSOC 2016] Student Introduction

2016-05-22 Thread haris iqbal
Hello everyone.. My name is Md Haris Iqbal. I am one of the students who has been selected to work with Qemu as part of GSoC 2016. I'll be working on recovering a postcopy migration in case of a network failure. The progress and details of the project can be seen in the following wikipage http:/

[Qemu-devel] GSoC 2016: Student Introduction

2016-05-22 Thread David Kiarie
Hello, My name is David Kiarie. I am a student who has been selected to work with Qemu as part of GSoC. My project entails completing the current AMD IOMMU implementation work (getting the current patches merged) and adding interrupt remapping. I will also try to add more features if time allows.

[Qemu-devel] [V11 3/4] hw/core: provision for overriding emulated IOMMU

2016-05-22 Thread David Kiarie
Added an enum, subject to review, to machine properties which it used to override iommu emulated from Intel to AMD. Signed-off-by: David Kiarie --- hw/core/machine.c | 29 ++--- include/hw/boards.h | 1 + include/hw/i386/intel_iommu.h | 1 + qemu-o

[Qemu-devel] [V11 4/4] hw/pci-host: Emulate AMD IOMMU

2016-05-22 Thread David Kiarie
Add AMD IOMMU emulation support to q35 chipset Signed-off-by: David Kiarie --- hw/pci-host/q35.c | 25 ++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/hw/pci-host/q35.c b/hw/pci-host/q35.c index 70f897e..26fea0e 100644 --- a/hw/pci-host/q35.c +++ b/hw/pci

[Qemu-devel] [V11 2/4] hw/i386: ACPI IVRS table

2016-05-22 Thread David Kiarie
Add IVRS table for AMD IOMMU. Generate IVRS or DMAR depending on emulated IOMMU. Signed-off-by: David Kiarie --- hw/acpi/aml-build.c | 2 +- hw/i386/acpi-build.c| 93 +++-- include/hw/acpi/acpi-defs.h | 13 +++ include/hw/acpi/aml-buil

[Qemu-devel] [V11 1/4] hw/i386: Introduce AMD IOMMU

2016-05-22 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 translation

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

2016-05-22 Thread David Kiarie
Hi all, This patches series adds basic AMD IOMMU emulation support to Qemu. It's currently in it's 11th version. Michael(or any other person who can merge this patchset) can you please look at the possibility of merging this patches ?Are there more issues with these patches since the last versi

[Qemu-devel] RFC: Make 'info snapshots' show all of snapshots with multiple devices info

2016-05-22 Thread Lin Ma
Currently, the output of 'info snapshots' show fully available snapshots. In my opinion there are 2 disadvantages: 1. It's opaque, hides some snapshot information to users. It's not convenient if users want to know more about all of snapshots on every block device via monitor. 2. It uses snaps

Re: [Qemu-devel] [PATCH v5 12/18] qht: QEMU's fast, resizable and scalable Hash Table

2016-05-22 Thread Alex Bennée
Emilio G. Cota writes: > On Fri, May 20, 2016 at 22:48:11 -0400, Emilio G. Cota wrote: >> On Sat, May 21, 2016 at 01:13:20 +0300, Sergey Fedorov wrote: >> > > +static inline >> > > +void *qht_do_lookup(struct qht_bucket *head, qht_lookup_func_t func, >> > > +const void *userp

Re: [Qemu-devel] [PATCH 1/2] atomics: do not use __atomic primitives for RCU atomics

2016-05-22 Thread Alex Bennée
Emilio G. Cota writes: > Commit a0aa44b4 ("include/qemu/atomic.h: default to __atomic functions") > set all atomics to default (on recent GCC versions) to __atomic primitives. > > In the process, the atomic_rcu_read/set were converted to implement > consume/release semantics, respectively. This