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
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
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
@@
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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/
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 ++
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
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..
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
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..
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/
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
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
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
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
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
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..
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
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
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
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 +++
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
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
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
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.
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
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
>
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
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
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
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
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
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
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
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
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 +++
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
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
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:/
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.
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
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
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
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
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
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
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
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
66 matches
Mail list logo