Re: [Qemu-devel] [PATCH v2 14/14] target/arm/kvm: host cpu: Add support for sve properties

2019-06-28 Thread Andrew Jones
On Thu, Jun 27, 2019 at 07:15:13PM +0200, Auger Eric wrote: > Hi Drew, > On 6/21/19 6:34 PM, Andrew Jones wrote: > > Allow cpu 'host' to enable SVE when it's available, unless the > > user chooses to disable it with the added 'sve=off' cpu property. > > Also give the user the ability to select vect

Re: [Qemu-devel] [PATCH v13 0/5] linux-user: A set of miscellaneous patches

2019-06-28 Thread Laurent Vivier
Le 27/06/2019 à 21:27, no-re...@patchew.org a écrit : > Patchew URL: > https://patchew.org/QEMU/1561648298-18100-1-git-send-email-aleksandar.marko...@rt-rk.com/ > > > > Hi, > > This series failed build test on s390x host. Please find the details below. > > === TEST SCRIPT BEGIN === > #!/bin/b

[Qemu-devel] [PATCH] virtio-gpu: fix unmap in error path

2019-06-28 Thread Gerd Hoffmann
We land here in case not everything we've asked for could be mapped. So unmap only the bytes which have actually been mapped. Also we didn't access anything, so acces_len can be 0. Reported-by: Laszlo Ersek Signed-off-by: Gerd Hoffmann --- hw/display/virtio-gpu.c | 4 ++-- 1 file changed, 2 in

Re: [Qemu-devel] [PATCH v2 07/14] target/arm/cpu64: max cpu: Introduce sve properties

2019-06-28 Thread Andrew Jones
On Thu, Jun 27, 2019 at 06:49:02PM +0200, Richard Henderson wrote: > On 6/21/19 6:34 PM, Andrew Jones wrote: > > +/* > > + * In sve_vq_map each set bit is a supported vector length of > > + * (bit-number + 1) * 16 bytes, i.e. each bit number + 1 is the vector > > + * length in quadw

Re: [Qemu-devel] [PATCH v13 0/5] linux-user: A set of miscellaneous patches

2019-06-28 Thread Aleksandar Markovic
> From: Laurent Vivier > Sent: Friday, June 28, 2019 9:21 AM > To: qemu-devel@nongnu.org; aleksandar.marko...@rt-rk.com > Cc: Aleksandar Markovic > Subject: Re: [Qemu-devel] [PATCH v13 0/5] linux-user: A set of miscellaneous > patches > > Le 27/06/2019 à 21:27, no-re...@patchew.org a écrit : > >

Re: [Qemu-devel] [PATCH v13 0/5] linux-user: A set of miscellaneous patches

2019-06-28 Thread Aleksandar Markovic
> From: Aleksandar Markovic > Sent: Friday, June 28, 2019 9:46 AM > To: Laurent Vivier; qemu-devel@nongnu.org; aleksandar.marko...@rt-rk.com > Subject: Re: [Qemu-devel] [PATCH v13 0/5] linux-user: A set of miscellaneous > patches > > > From: Laurent Vivier > > Sent: Friday, June 28, 2019 9:21 AM

Re: [Qemu-devel] [PATCH v13 0/5] linux-user: A set of miscellaneous patches

2019-06-28 Thread Laurent Vivier
Le 28/06/2019 à 09:46, Aleksandar Markovic a écrit : >> From: Laurent Vivier >> Sent: Friday, June 28, 2019 9:21 AM >> To: qemu-devel@nongnu.org; aleksandar.marko...@rt-rk.com >> Cc: Aleksandar Markovic >> Subject: Re: [Qemu-devel] [PATCH v13 0/5] linux-user: A set of miscellaneous >> patches >>

Re: [Qemu-devel] [PATCH v2 07/14] target/arm/cpu64: max cpu: Introduce sve properties

2019-06-28 Thread Andrew Jones
On Fri, Jun 28, 2019 at 09:27:39AM +0200, Andrew Jones wrote: > On Thu, Jun 27, 2019 at 06:49:02PM +0200, Richard Henderson wrote: > > On 6/21/19 6:34 PM, Andrew Jones wrote: > > > +/* > > > + * In sve_vq_map each set bit is a supported vector length of > > > + * (bit-number + 1) * 16 b

Re: [Qemu-devel] [PATCH v23 1/7] target/avr: Add outward facing interfaces and core CPU logic

2019-06-28 Thread Igor Mammedov
On Thu, 27 Jun 2019 21:51:23 +0300 Michael Rolnik wrote: > I meant that if I take the proposed code it fails in the mentioned way > > Sent from my cell phone, please ignore typos > > On Thu, Jun 27, 2019, 7:02 PM Michael Rolnik wrote: > > > Hi Igor, > > > > if I run `make check` it fails with

Re: [Qemu-devel] [PATCH v2 00/12] block: qiov_offset parameter for io

2019-06-28 Thread Stefan Hajnoczi
On Tue, Jun 04, 2019 at 07:15:02PM +0300, Vladimir Sementsov-Ogievskiy wrote: > Hi all! > > Here is new parameter qiov_offset for io path, to avoid > a lot of places with same pattern of creating local_qiov or hd_qiov > variables. > > These series also includes my > "[Qemu-devel] [PATCH 0/2] bloc

Re: [Qemu-devel] [PATCH v23 1/7] target/avr: Add outward facing interfaces and core CPU logic

2019-06-28 Thread Michael Rolnik
Nobody else does it. Richard. What do you think? Sent from my cell phone, please ignore typos On Fri, Jun 28, 2019, 11:36 AM Igor Mammedov wrote: > On Thu, 27 Jun 2019 21:51:23 +0300 > Michael Rolnik wrote: > > > I meant that if I take the proposed code it fails in the mentioned way > > > > Se

Re: [Qemu-devel] [PATCH v4 08/13] vfio: Add save state functions to SaveVMHandlers

2019-06-28 Thread Dr. David Alan Gilbert
* Yan Zhao (yan.y.z...@intel.com) wrote: > On Fri, Jun 21, 2019 at 08:31:53AM +0800, Yan Zhao wrote: > > On Thu, Jun 20, 2019 at 10:37:36PM +0800, Kirti Wankhede wrote: > > > Added .save_live_pending, .save_live_iterate and > > > .save_live_complete_precopy > > > functions. These functions handles

[Qemu-devel] [PATCH v15 0/5] linux-user: A set of miscellaneous patches

2019-06-28 Thread Aleksandar Markovic
From: Aleksandar Markovic This is a collection of misc patches for Linux user that I recently accumulated from variuous sources. All of them originate from problems observed on mips target. However, most of these changes actually affect and fix linux-user problems on multiple targets. There are

[Qemu-devel] [PATCH v15 3/5] linux-user: Fix target_flock structure for MIPS O64 ABI

2019-06-28 Thread Aleksandar Markovic
From: Aleksandar Markovic Among MIPS ABIs, only MIPS O32 and N32 have special (different than other architectures) definition of structure flock in kernel. Bring target_flock definition in QEMU for MIPS O64 ABI to the correct state, which is currently different than the most common definition, a

[Qemu-devel] [PATCH v15 2/5] linux-user: Add support for strace for statx() syscall

2019-06-28 Thread Aleksandar Markovic
From: Jim Wilson All of the flags need to be conditional as old systems don't have statx support. Otherwise it works the same as other stat family syscalls. This requires the pending patch to add statx support. Tested on Ubuntu 16.04 (no host statx) and Ubuntu 19.04 (with host statx) using a r

[Qemu-devel] [PATCH v15 5/5] linux-user: Handle EXCP_FPE properly for MIPS

2019-06-28 Thread Aleksandar Markovic
From: Aleksandar Markovic Handle EXCP_FPE properly for MIPS in cpu loop. Note that a vast majority of FP instructions are not affected by the absence of the code in this patch, as they use alternative code paths for handling floating point exceptions (see, for example, invocations of update_fcr3

[Qemu-devel] [PATCH v15 1/5] linux-user: Add support for translation of statx() syscall

2019-06-28 Thread Aleksandar Markovic
From: Aleksandar Rikalo Implement support for translation of system call statx(). The implementation is based on "best effort" approach: if host is capable of executing statx(), host statx() is used. If not, the implementation includes invoking a more mature system call fstatat() on the host sid

Re: [Qemu-devel] [Qemu-block] [PATCH v2] block/rbd: implement .bdrv_get_allocated_file_size callback

2019-06-28 Thread Stefano Garzarella
On Thu, Jun 27, 2019 at 03:43:04PM -0400, Jason Dillaman wrote: > On Thu, Jun 27, 2019 at 1:24 PM John Snow wrote: > > On 6/27/19 4:48 AM, Stefano Garzarella wrote: > > > On Wed, Jun 26, 2019 at 05:04:25PM -0400, John Snow wrote: > > >> It looks like this has hit a 30 day expiration without any re

[Qemu-devel] [PATCH v15 4/5] linux-user: Introduce TARGET_HAVE_ARCH_STRUCT_FLOCK

2019-06-28 Thread Aleksandar Markovic
From: Aleksandar Markovic Bring target_flock definitions to be more in sync with the way flock is defined in kernel. Basically, the rules from the kernel are: 1. Majority of architectures have a common flock definition. 2. Architectures with 32-bit MIPS ABIs have a sligtly different flock defi

Re: [Qemu-devel] [PATCH v15 5/5] linux-user: Handle EXCP_FPE properly for MIPS

2019-06-28 Thread Laurent Vivier
Le 28/06/2019 à 10:54, Aleksandar Markovic a écrit : > From: Aleksandar Markovic > > Handle EXCP_FPE properly for MIPS in cpu loop. > > Note that a vast majority of FP instructions are not affected by > the absence of the code in this patch, as they use alternative code > paths for handling floa

Re: [Qemu-devel] [PATCH v15 0/5] linux-user: A set of miscellaneous patches

2019-06-28 Thread no-reply
Patchew URL: https://patchew.org/QEMU/1561712082-31441-1-git-send-email-aleksandar.marko...@rt-rk.com/ Hi, This series seems to have some coding style problems. See output below for more information: Message-id: 1561712082-31441-1-git-send-email-aleksandar.marko...@rt-rk.com Type: series Subj

Re: [Qemu-devel] [PATCH v4 08/13] vfio: Add save state functions to SaveVMHandlers

2019-06-28 Thread Dr. David Alan Gilbert
* Kirti Wankhede (kwankh...@nvidia.com) wrote: > Added .save_live_pending, .save_live_iterate and .save_live_complete_precopy > functions. These functions handles pre-copy and stop-and-copy phase. > > In _SAVING|_RUNNING device state or pre-copy phase: > - read pending_bytes > - read data_offset -

Re: [Qemu-devel] Mapping of the guests user and kernel pages to host memory

2019-06-28 Thread Stefan Hajnoczi
On Sun, Jun 16, 2019 at 04:48:55PM +0300, Dimitris Karnikis wrote: > I am interested in understanding on how QEMU maps the user and kernel > pages of a guest OS to the host OS memory (working on 3.1.0 but any version > is acceptable with target x86-64 arch). > Since QEMU runs on user space, these p

Re: [Qemu-devel] [PATCH v4 09/13] vfio: Add load state functions to SaveVMHandlers

2019-06-28 Thread Dr. David Alan Gilbert
* Kirti Wankhede (kwankh...@nvidia.com) wrote: > During _RESUMING device state: > - If Vendor driver defines mappable region, mmap migration region. > - Load config state. > - For data packet, till VFIO_MIG_FLAG_END_OF_STATE is not reached > - read data_size from packet, read buffer of data_siz

Re: [Qemu-devel] [RFC] Re-evaluating subcluster allocation for qcow2 images

2019-06-28 Thread Kevin Wolf
Am 27.06.2019 um 17:42 hat Alberto Garcia geschrieben: > On Thu 27 Jun 2019 05:38:56 PM CEST, Alberto Garcia wrote: > >> I would consider 64k cluster/8k subcluster as too extreme for me. > > I forgot to add: this 64k/8k ratio is only with my current prototype. > > In practice if we go with the 12

Re: [Qemu-devel] [PATCH v23 1/7] target/avr: Add outward facing interfaces and core CPU logic

2019-06-28 Thread Igor Mammedov
On Fri, 28 Jun 2019 11:43:22 +0300 Michael Rolnik wrote: > Nobody else does it. it doesn't mean that we should blindly copy pre-existing patterns which might/will exist for compatibility reasons. pls see the same argument on RX CPU for reasons not to support anything else beside typename there.

Re: [Qemu-devel] [PATCH qemu] loader: Trace loaded images

2019-06-28 Thread Stefan Hajnoczi
On Fri, Jun 14, 2019 at 12:10:48PM +0200, Philippe Mathieu-Daudé wrote: > On 6/14/19 11:33 AM, Stefan Hajnoczi wrote: > > On Fri, Jun 14, 2019 at 10:13:04AM +1000, Alexey Kardashevskiy wrote: > >> > >> > >> On 13/06/2019 23:08, Philippe Mathieu-Daudé wrote: > >>> Hi Alexey, > >>> > >>> On 6/13/19 7

Re: [Qemu-devel] [PATCH] block/qcow: Improve error when opening qcow2 files as qcow

2019-06-28 Thread Kevin Wolf
Am 27.06.2019 um 19:17 hat John Snow geschrieben: > > > On 6/27/19 4:34 AM, Kevin Wolf wrote: > > Am 26.06.2019 um 23:53 hat John Snow geschrieben: > >> Reported-by: radmehrsae...@gmail.com > >> Fixes: https://bugs.launchpad.net/bugs/1832914 > >> Signed-off-by: John Snow > >> --- > >> block/qco

[Qemu-devel] [Bug 1834613] [NEW] Crypto related operations failing on Alpine Linux on QEMU 4.0

2019-06-28 Thread DDoSolitary
Public bug reported: I'm unable to boot the netboot image of Alpine Linux using QEMU 4.0. Steps to reproduce: curl -O http://dl-cdn.alpinelinux.org/alpine/v3.10/releases/ppc64le/netboot/vmlinuz-vanilla curl -O http://dl-cdn.alpinelinux.org/alpine/v3.10/releases/ppc64le/netboot/initramfs-vanill

Re: [Qemu-devel] RFC: Why does target/m68k RTE insn. use gen_exception

2019-06-28 Thread Richard Henderson
On 6/28/19 2:27 AM, Lucien Murray-Pitts wrote: > The original way of handling it was causing single step to malfunction, I dont > rightly know why but the effect was that step would step twice and end up > inside the ISR function again OR just stepping past the RTE as if it didnt > exist. > > I ha

Re: [Qemu-devel] [GSoC] Help needed in implementing live migration

2019-06-28 Thread Stefan Hajnoczi
On Thu, Jun 27, 2019 at 05:02:33AM +0530, Sukrit Bhatnagar wrote: > On Tue, 25 Jun 2019 at 00:11, Dr. David Alan Gilbert > wrote: > > > > * Sukrit Bhatnagar (skrtbht...@gmail.com) wrote: > > > Hi David, > > > > > > I am Sukrit, GSoC participant working on PVRDMA live migration. > > > We had a shor

Re: [Qemu-devel] [PATCH v4 00/13] Add migration support for VFIO device

2019-06-28 Thread Dr. David Alan Gilbert
* Yan Zhao (yan.y.z...@intel.com) wrote: > On Tue, Jun 25, 2019 at 03:00:24AM +0800, Dr. David Alan Gilbert wrote: > > * Kirti Wankhede (kwankh...@nvidia.com) wrote: > > > > > > > > > On 6/21/2019 2:16 PM, Yan Zhao wrote: > > > > On Fri, Jun 21, 2019 at 04:02:50PM +0800, Kirti Wankhede wrote: > >

Re: [Qemu-devel] [PATCH v0 1/3] qcow2: introduce compression type feature

2019-06-28 Thread Kevin Wolf
Am 29.05.2019 um 13:40 hat Vladimir Sementsov-Ogievskiy geschrieben: > 28.05.2019 17:37, Denis Plotnikov wrote: > > The patch adds some preparation parts for incompatible compression type > > feature to QCOW2 header that indicates that *all* compressed clusters > > must be (de)compressed using a ce

Re: [Qemu-devel] [PULL 33/34] roms: Add OpenSBI version 0.3

2019-06-28 Thread Jonathan Cameron
On Thu, 27 Jun 2019 08:20:10 -0700 Palmer Dabbelt wrote: > From: Alistair Francis > > Add OpenSBI version 0.3 as a git submodule and as a prebult binary. > > Signed-off-by: Alistair Francis > Reviewed-by: Bin Meng > Tested-by: Bin Meng > Signed-off-by: Palmer Dabbelt I sent a late bug rep

Re: [Qemu-devel] [PATCH v15 0/5] linux-user: A set of miscellaneous patches

2019-06-28 Thread no-reply
Patchew URL: https://patchew.org/QEMU/1561712082-31441-1-git-send-email-aleksandar.marko...@rt-rk.com/ Hi, This series failed build test on s390x host. Please find the details below. === TEST SCRIPT BEGIN === #!/bin/bash # Testing script will be invoked under the git checkout with # HEAD poin

[Qemu-devel] [PATCH] qemu-bridge-helper: restrict bridge name to IFNAMSIZ

2019-06-28 Thread P J P
From: Prasad J Pandit The interface names in qemu-bridge-helper are defined to be of size IFNAMSIZ(=16), including the terminating null('\0') byte. The same is applied to interface names read from 'bridge.conf' file to form ACLs rules. If user supplied '--br=bridge' name is not restricted to the

Re: [Qemu-devel] [RFC] Re-evaluating subcluster allocation for qcow2 images

2019-06-28 Thread Alberto Garcia
On Fri 28 Jun 2019 11:20:57 AM CEST, Kevin Wolf wrote: >> >> I would consider 64k cluster/8k subcluster as too extreme for me. >> >> I forgot to add: this 64k/8k ratio is only with my current prototype. >> >> In practice if we go with the 128-bit L2 entries we would have 64 >> subclusters per clu

Re: [Qemu-devel] [PATCH v15 0/5] linux-user: A set of miscellaneous patches

2019-06-28 Thread no-reply
Patchew URL: https://patchew.org/QEMU/1561712082-31441-1-git-send-email-aleksandar.marko...@rt-rk.com/ Hi, This series seems to have some coding style problems. See output below for more information: Message-id: 1561712082-31441-1-git-send-email-aleksandar.marko...@rt-rk.com Type: series Subj

Re: [Qemu-devel] [PATCH v0 1/3] qcow2: introduce compression type feature

2019-06-28 Thread Kevin Wolf
Am 28.05.2019 um 16:37 hat Denis Plotnikov geschrieben: > The patch adds some preparation parts for incompatible compression type > feature to QCOW2 header that indicates that *all* compressed clusters > must be (de)compressed using a certain compression type. > > It is implied that the compressio

Re: [Qemu-devel] [PATCH v23 1/7] target/avr: Add outward facing interfaces and core CPU logic

2019-06-28 Thread Richard Henderson
On 6/28/19 11:22 AM, Igor Mammedov wrote: > On Fri, 28 Jun 2019 11:43:22 +0300 > Michael Rolnik wrote: > >> Nobody else does it. > it doesn't mean that we should blindly copy pre-existing patterns > which might/will exist for compatibility reasons. > > pls see the same argument on RX CPU for rea

Re: [Qemu-devel] [RFC] Re-evaluating subcluster allocation for qcow2 images

2019-06-28 Thread Kevin Wolf
Am 28.06.2019 um 11:53 hat Alberto Garcia geschrieben: > On Fri 28 Jun 2019 11:20:57 AM CEST, Kevin Wolf wrote: > >> >> I would consider 64k cluster/8k subcluster as too extreme for me. > >> > >> I forgot to add: this 64k/8k ratio is only with my current prototype. > >> > >> In practice if we go

Re: [Qemu-devel] [PATCH v4 3/5] 9p: Added virtfs option "remap_inodes"

2019-06-28 Thread Greg Kurz
On Wed, 26 Jun 2019 20:42:13 +0200 Christian Schoenebeck via Qemu-devel wrote: > To support multiple devices on the 9p share, and avoid > qid path collisions we take the device id as input > to generate a unique QID path. The lowest 48 bits of > the path will be set equal to the file inode, and t

Re: [Qemu-devel] [PATCH v0 1/3] qcow2: introduce compression type feature

2019-06-28 Thread Kevin Wolf
Am 28.05.2019 um 16:37 hat Denis Plotnikov geschrieben: > The patch adds some preparation parts for incompatible compression type > feature to QCOW2 header that indicates that *all* compressed clusters > must be (de)compressed using a certain compression type. > > It is implied that the compressio

Re: [Qemu-devel] [PATCH v4 4/5] 9p: stat_to_qid: implement slow path

2019-06-28 Thread Greg Kurz
On Wed, 26 Jun 2019 20:46:24 +0200 Christian Schoenebeck via Qemu-devel wrote: > stat_to_qid attempts via qid_path_prefixmap to map unique files (which are > identified by 64 bit inode nr and 32 bit device id) to a 64 QID path value. > However this implementation makes some assumptions about inod

Re: [Qemu-devel] [PATCH v0 2/3] qcow2: add compression type processing

2019-06-28 Thread Kevin Wolf
Am 28.05.2019 um 16:37 hat Denis Plotnikov geschrieben: > With the patch, qcow2 is able to process image compression type > defined in the image header and choose the corresponding method > for clusters compressing. > > Also, it rework the cluster compression code for adding more > compression typ

[Qemu-devel] [PULL 4/6] seabios: add config for ati vgabios

2019-06-28 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann Tested-by: BALATON Zoltan Message-id: 20190620151104.2678-2-kra...@redhat.com Signed-off-by: Gerd Hoffmann --- roms/config.vga-ati | 4 1 file changed, 4 insertions(+) create mode 100644 roms/config.vga-ati diff --git a/roms/config.vga-ati b/roms/config.vga-a

[Qemu-devel] [PULL 6/6] ati-vga: switch to vgabios-ati.bin

2019-06-28 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann Tested-by: BALATON Zoltan Message-id: 20190620151104.2678-4-kra...@redhat.com Signed-off-by: Gerd Hoffmann --- hw/display/ati.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/display/ati.c b/hw/display/ati.c index e1bde5e0b1e3..0cb117384839 1

[Qemu-devel] [PULL 3/6] ati-vga: Fixes to offset and pitch registers

2019-06-28 Thread Gerd Hoffmann
From: BALATON Zoltan Fix bit masks of registers for offset and pitch and also handle default values for both R128P and RV100. This improves picture a bit but does not resolve all problems yet so there might be some more bugs somewhere. Signed-off-by: BALATON Zoltan Message-id: 2019062415.7a

[Qemu-devel] [PULL 0/6] Vga 20190628 patches

2019-06-28 Thread Gerd Hoffmann
The following changes since commit 474f3938d79ab36b9231c9ad3b5a9314c2aeacde: Merge remote-tracking branch 'remotes/amarkovic/tags/mips-queue-jun-21-2019' into staging (2019-06-21 15:40:50 +0100) are available in the Git repository at: git://git.kraxel.org/qemu tags/vga-201

[Qemu-devel] [PULL 2/6] ati-vga: Implement DDC and EDID info from monitor

2019-06-28 Thread Gerd Hoffmann
From: BALATON Zoltan This adds DDC support to ati-vga and connects i2c-ddc to it. This allows at least MacOS with an ATI ndrv, Linux radeonfb and MorphOS to get monitor EDID info (although MorphOS splash screen is not displayed and radeonfb needs additional tables from vgabios-rv100). Xorg needs

[Qemu-devel] [PATCH v16 5/5] linux-user: Handle EXCP_FPE properly for MIPS

2019-06-28 Thread Aleksandar Markovic
From: Aleksandar Markovic Handle EXCP_FPE properly for MIPS in cpu loop. Note that a vast majority of FP instructions are not affected by the absence of the code in this patch, as they use alternative code paths for handling floating point exceptions (see, for example, invocations of update_fcr3

[Qemu-devel] [PULL 1/6] i2c: Move bitbang_i2c.h to include/hw/i2c/

2019-06-28 Thread Gerd Hoffmann
From: BALATON Zoltan The bitbang i2c implementation is also useful for other device models such as DDC in display controllers. Move the header to include/hw/i2c/ to allow it to be used from other device models and adjust users of this include. This also reverts commit 2b4c1125ac which is no longe

[Qemu-devel] [PATCH v16 0/5] linux-user: A set of miscellaneous patches

2019-06-28 Thread Aleksandar Markovic
From: Aleksandar Markovic This is a collection of misc patches for Linux user that I recently accumulated from variuous sources. All of them originate from problems observed on mips target. However, most of these changes actually affect and fix linux-user problems on multiple targets. There are

[Qemu-devel] [PULL 5/6] seabios: add ati vgabios binary

2019-06-28 Thread Gerd Hoffmann
Built from master (commit 6e56ed129c9782ba050a5fbfbf4ac12335b230f7), which has ati vgabios support merged (checkout master branch in roms/seabios submodule, then run "make -C roms seavgabios-ati"). Temporary exception until the next seabios major version is released (probably 1.13, fall 2019). Si

[Qemu-devel] [PATCH v16 1/5] linux-user: Add support for translation of statx() syscall

2019-06-28 Thread Aleksandar Markovic
From: Aleksandar Rikalo Implement support for translation of system call statx(). The implementation is based on "best effort" approach: if host is capable of executing statx(), host statx() is used. If not, the implementation includes invoking a more mature system call fstatat() on the host sid

[Qemu-devel] [PATCH v16 3/5] linux-user: Fix target_flock structure for MIPS O64 ABI

2019-06-28 Thread Aleksandar Markovic
From: Aleksandar Markovic Among MIPS ABIs, only MIPS O32 and N32 have special (different than other architectures) definition of structure flock in kernel. Bring target_flock definition in QEMU for MIPS O64 ABI to the correct state, which is currently different than the most common definition, a

[Qemu-devel] [PATCH v16 2/5] linux-user: Add support for strace for statx() syscall

2019-06-28 Thread Aleksandar Markovic
From: Jim Wilson All of the flags need to be conditional as old systems don't have statx support. Otherwise it works the same as other stat family syscalls. This requires the pending patch to add statx support. Tested on Ubuntu 16.04 (no host statx) and Ubuntu 19.04 (with host statx) using a r

[Qemu-devel] [PATCH v16 4/5] linux-user: Introduce TARGET_HAVE_ARCH_STRUCT_FLOCK

2019-06-28 Thread Aleksandar Markovic
From: Aleksandar Markovic Bring target_flock definitions to be more in sync with the way flock is defined in kernel. Basically, the rules from the kernel are: 1. Majority of architectures have a common flock definition. 2. Architectures with 32-bit MIPS ABIs have a sligtly different flock defi

Re: [Qemu-devel] [PATCH v0 1/3] qcow2: introduce compression type feature

2019-06-28 Thread Denis Plotnikov
On 28.06.2019 12:54, Kevin Wolf wrote: > Am 28.05.2019 um 16:37 hat Denis Plotnikov geschrieben: >> The patch adds some preparation parts for incompatible compression type >> feature to QCOW2 header that indicates that *all* compressed clusters >> must be (de)compressed using a certain compressio

Re: [Qemu-devel] [Qemu-block] [PATCH] blk: postpone request execution on a context protected with "drained section"

2019-06-28 Thread Kevin Wolf
Am 26.06.2019 um 10:46 hat Denis Plotnikov geschrieben: > On 24.06.2019 12:46, Denis Plotnikov wrote: > > On 21.06.2019 12:59, Vladimir Sementsov-Ogievskiy wrote: > >> 21.06.2019 12:16, Kevin Wolf wrote: > >>> Am 09.04.2019 um 12:01 hat Kevin Wolf geschrieben: > Am 02.04.2019 um 10:35 hat Deni

Re: [Qemu-devel] [PATCH v0 3/3] qcow2: add zstd cluster compression

2019-06-28 Thread Kevin Wolf
Am 28.05.2019 um 16:37 hat Denis Plotnikov geschrieben: > zstd significantly reduces cluster compression time. > It provides better compression performance maintaining > the same level of compression ratio in comparison with > zlib, which, by the moment, has been the only compression > method avail

[Qemu-devel] [PATCH v24 0/7] QEMU AVR 8 bit cores

2019-06-28 Thread Michael Rolnik
This series of patches adds 8bit AVR cores to QEMU. All instruction, except BREAK/DES/SPM/SPMX, are implemented. Not fully tested yet. However I was able to execute simple code with functions. e.g fibonacci calculation. This series of patches include a non real, sample board. No fuses support yet

Re: [Qemu-devel] [PATCH v4 1/5] 9p: unsigned type for type, version, path

2019-06-28 Thread Christian Schoenebeck via Qemu-devel
On Donnerstag, 27. Juni 2019 18:12:03 CEST Greg Kurz wrote: > On Wed, 26 Jun 2019 20:25:55 +0200 > Christian Schoenebeck via Qemu-devel wrote: > > There is no need for signedness on these QID fields for 9p. > > > > Signed-off-by: Antonios Motakis > > You should mention here the changes you made

[Qemu-devel] [PATCH 2/4] hw/virtio: Factorize virtio-mmio headers

2019-06-28 Thread Sergio Lopez
Put QOM and main struct definition in a separate header file, so it can be accesed from other components. This is needed for the microvm machine type implementation. Signed-off-by: Sergio Lopez --- hw/virtio/virtio-mmio.c | 35 +--- hw/virtio/virtio-mmio.h | 60 +

[Qemu-devel] [PATCH v24 1/7] target/avr: Add outward facing interfaces and core CPU logic

2019-06-28 Thread Michael Rolnik
From: Sarah Harris This includes: - CPU data structures - object model classes and functions - migration functions - GDB hooks Signed-off-by: Michael Rolnik --- gdb-xml/avr-cpu.xml| 49 target/avr/cpu-param.h | 37 +++ target/avr/cpu.c | 584 +++

[Qemu-devel] [PATCH 1/4] hw/i386: Factorize CPU routine

2019-06-28 Thread Sergio Lopez
This is a combination of the following commits from NEMU (https://github.com/intel/nemu): === commit b6472ce5ce5108c7aacb0dfa3d74b3eb8f98ae85 Author: Samuel Ortiz Date: Fri Mar 22 10:28:31 2019 +0800 hw: i386: Factorize CPU routines A few ro

Re: [Qemu-devel] [PATCH v23 1/7] target/avr: Add outward facing interfaces and core CPU logic

2019-06-28 Thread Michael Rolnik
thanks. new version is out. Michael On Fri, Jun 28, 2019 at 1:01 PM Richard Henderson < richard.hender...@linaro.org> wrote: > On 6/28/19 11:22 AM, Igor Mammedov wrote: > > On Fri, 28 Jun 2019 11:43:22 +0300 > > Michael Rolnik wrote: > > > >> Nobody else does it. > > it doesn't mean that we sho

Re: [Qemu-devel] [PATCH] qemu-bridge-helper: restrict bridge name to IFNAMSIZ

2019-06-28 Thread Daniel P . Berrangé
On Fri, Jun 28, 2019 at 05:32:50PM +0530, P J P wrote: > +-- On Fri, 28 Jun 2019, Daniel P. Berrangé wrote --+ > | Ok, so we should explicitly report an error if the user supplied bridge > name > | is too long, not silently truncate it. > | > | We should also report an error if config file has t

Re: [Qemu-devel] [PULL 12/62] target/ppc/spapr: Enable mitigations by default for pseries-4.0 machine type

2019-06-28 Thread Laurent Vivier
On 28/06/2019 13:27, Philippe Mathieu-Daudé wrote: > Hi, > > On 3/12/19 9:54 AM, David Gibson wrote: >> From: Suraj Jitindar Singh >> >> There are currently 3 mitigations the availability of which is controlled >> by the spapr-caps mechanism, cap-cfpc, cap-sbbc, and cap-ibs. Enable these >> mitig

Re: [Qemu-devel] [PATCH v5 4/8] numa: move numa global variable numa_info into MachineState

2019-06-28 Thread Igor Mammedov
On Fri, 14 Jun 2019 23:56:22 +0800 Tao Xu wrote: > Move existing numa global numa_info (renamed as "nodes") into NumaState. > > Reviewed-by: Liu Jingqi > Suggested-by: Igor Mammedov > Suggested-by: Eduardo Habkost > Signed-off-by: Tao Xu > --- > > Changes in v5 -> v4: > - Directly use m

[Qemu-devel] [PATCH 0/4] Introduce the microvm machine type

2019-06-28 Thread Sergio Lopez
Microvm is a machine type inspired by both NEMU and Firecracker, and constructed after the machine model implemented by the latter. It's main purpose is providing users a KVM-only machine type with fast boot times, minimal attack surface (measured as the number of IO ports and MMIO regions exposed

Re: [Qemu-devel] [GSoC] Help needed in implementing live migration

2019-06-28 Thread Dr. David Alan Gilbert
* Stefan Hajnoczi (stefa...@gmail.com) wrote: > On Thu, Jun 27, 2019 at 05:02:33AM +0530, Sukrit Bhatnagar wrote: > > On Tue, 25 Jun 2019 at 00:11, Dr. David Alan Gilbert > > wrote: > > > > > > * Sukrit Bhatnagar (skrtbht...@gmail.com) wrote: > > > > Hi David, > > > > > > > > I am Sukrit, GSoC par

[Qemu-devel] [PATCH 4/4] hw/i386: Introduce the microvm machine type

2019-06-28 Thread Sergio Lopez
Microvm is a machine type inspired by both NEMU and Firecracker, and constructed after the machine model implemented by the latter. It's main purpose is providing users a KVM-only machine type with fast boot times, minimal attack surface (measured as the number of IO ports and MMIO regions exposed

Re: [Qemu-devel] [PATCH v4 2/5] 9p: Treat multiple devices on one export as an error

2019-06-28 Thread Christian Schoenebeck via Qemu-devel
On Donnerstag, 27. Juni 2019 19:26:22 CEST Greg Kurz wrote: > On Wed, 26 Jun 2019 20:30:41 +0200 > > Christian Schoenebeck via Qemu-devel wrote: > > The QID path should uniquely identify a file. However, the > > inode of a file is currently used as the QID path, which > > on its own only uniquely

Re: [Qemu-devel] [PATCH v0 2/3] qcow2: add compression type processing

2019-06-28 Thread Denis Plotnikov
On 28.06.2019 13:23, Kevin Wolf wrote: > Am 28.05.2019 um 16:37 hat Denis Plotnikov geschrieben: >> With the patch, qcow2 is able to process image compression type >> defined in the image header and choose the corresponding method >> for clusters compressing. >> >> Also, it rework the cluster com

Re: [Qemu-devel] [PATCH] qemu-bridge-helper: restrict bridge name to IFNAMSIZ

2019-06-28 Thread P J P
+-- On Fri, 28 Jun 2019, Daniel P. Berrangé wrote --+ | Can you elaborate on the way to exploit this as I'm not seeing | any way that doesn't involve mis-configuration of the ACL | config file data. True, it depends on having an 'allow all' rule. If the bridge.conf had an 'allow all' rule below

Re: [Qemu-devel] [PATCH v0 2/3] qcow2: add compression type processing

2019-06-28 Thread Kevin Wolf
Am 28.06.2019 um 13:24 hat Denis Plotnikov geschrieben: > > > On 28.06.2019 13:23, Kevin Wolf wrote: > > Am 28.05.2019 um 16:37 hat Denis Plotnikov geschrieben: > >> With the patch, qcow2 is able to process image compression type > >> defined in the image header and choose the corresponding metho

Re: [Qemu-devel] [PATCH v15 0/5] linux-user: A set of miscellaneous patches

2019-06-28 Thread Laurent Vivier
Dear Patchew developers, Le 28/06/2019 à 11:49, no-re...@patchew.org a écrit : > Patchew URL: > https://patchew.org/QEMU/1561712082-31441-1-git-send-email-aleksandar.marko...@rt-rk.com/ > > > > Hi, > > This series failed build test on s390x host. Please find the details below. To debug this

Re: [Qemu-devel] [Patchew-devel] [PATCH v15 0/5] linux-user: A set of miscellaneous patches

2019-06-28 Thread Fam Zheng
On Fri, 06/28 14:15, Laurent Vivier wrote: > Dear Patchew developers, > > Le 28/06/2019 à 11:49, no-re...@patchew.org a écrit : > > Patchew URL: > > https://patchew.org/QEMU/1561712082-31441-1-git-send-email-aleksandar.marko...@rt-rk.com/ > > > > > > > > Hi, > > > > This series failed build t

Re: [Qemu-devel] [PATCH] qemu-bridge-helper: restrict bridge name to IFNAMSIZ

2019-06-28 Thread P J P
+-- On Fri, 28 Jun 2019, Daniel P. Berrangé wrote --+ | Ok, so we should explicitly report an error if the user supplied bridge name | is too long, not silently truncate it. | | We should also report an error if config file has too long a bridge name. Okay, ie. report error and exit? +-- On Fri

Re: [Qemu-devel] [PATCH v4 2/5] 9p: Treat multiple devices on one export as an error

2019-06-28 Thread Greg Kurz
On Fri, 28 Jun 2019 14:36:41 +0200 Christian Schoenebeck wrote: > On Donnerstag, 27. Juni 2019 19:26:22 CEST Greg Kurz wrote: > > On Wed, 26 Jun 2019 20:30:41 +0200 > > > > Christian Schoenebeck via Qemu-devel wrote: > > > The QID path should uniquely identify a file. However, the > > > inode o

[Qemu-devel] [RFC PATCH 4/5] fault_injection: introduce Python scripting framework

2019-06-28 Thread Damien Hedde
This is the actual Python framework. It provides some wrappers: * which allow to notify a callback in a given qemu time. * read or write some memory location * read/write qom properties. * set a GPIO. This is based on the work of Frederic Konrad Signed-off-by: Damien Hedde --- scripts/q

Re: [Qemu-devel] [RFC 1/1] hw/pvrdma: Add live migration support

2019-06-28 Thread Dr. David Alan Gilbert
* Yuval Shaia (yuval.sh...@oracle.com) wrote: > On Fri, Jun 21, 2019 at 08:15:41PM +0530, Sukrit Bhatnagar wrote: > > Define and register SaveVMHandlers pvrdma_save and > > pvrdma_load for saving and loading the device state, > > which currently includes only the dma, command slot > > and response

[Qemu-devel] [RFC PATCH 1/5] introduce [p]mem(read|write) qmp commands

2019-06-28 Thread Damien Hedde
This introduces memread, memwrite, pmemread and pmemwrite qmp commands. The memread and memwrite read virtual memory from a given cpu point of view. If no cpu index is specified, the cpu-id 0 is used. The pmemread and pmemwrite directly read physical memory. The data is passed/returned in a list

Re: [Qemu-devel] [Patchew-devel] [PATCH v15 0/5] linux-user: A set of miscellaneous patches

2019-06-28 Thread Laurent Vivier
Le 28/06/2019 à 14:41, Fam Zheng a écrit : > On Fri, 06/28 14:15, Laurent Vivier wrote: >> Dear Patchew developers, >> >> Le 28/06/2019 à 11:49, no-re...@patchew.org a écrit : >>> Patchew URL: >>> https://patchew.org/QEMU/1561712082-31441-1-git-send-email-aleksandar.marko...@rt-rk.com/ >>> >>> >>>

Re: [Qemu-devel] [PATCH v4 1/5] 9p: unsigned type for type, version, path

2019-06-28 Thread Greg Kurz
On Fri, 28 Jun 2019 13:42:43 +0200 Christian Schoenebeck wrote: > On Donnerstag, 27. Juni 2019 18:12:03 CEST Greg Kurz wrote: > > On Wed, 26 Jun 2019 20:25:55 +0200 > > Christian Schoenebeck via Qemu-devel wrote: > > > There is no need for signedness on these QID fields for 9p. > > > > > > Sign

[Qemu-devel] [RFC PATCH 2/5] introduce a qmp command to set gpios

2019-06-28 Thread Damien Hedde
This adds the "gpio-set" qmp command. Taking the device path, the gpio name and number, the command set the value (true or false) of the gpio. It works only on gpio input line. This is based on Frederic Konrad's work. Signed-off-by: Damien Hedde --- cpus.c | 4 ++-- monitor/qmp-cm

Re: [Qemu-devel] [RFC PATCH] accel/tcg/translator: add tb_enter TCG trace

2019-06-28 Thread Richard Henderson
On 6/28/19 1:39 PM, Luc Michel wrote: > Add a TCG trace at the begining of a translation block recording the > first and last (past-the-end) PC values. > > Signed-off-by: Luc Michel > --- > This can be used to trace the execution of the guest quite efficiently. > It will report each time a TB is

[Qemu-devel] [RFC PATCH 5/5] docs: add fault injection framework documentation

2019-06-28 Thread Damien Hedde
This adds some hints about how to use the fault injection framework. This is based on Frederic Konrad's work. Signed-off-by: Damien Hedde --- docs/fault_injection.txt | 149 +++ 1 file changed, 149 insertions(+) create mode 100644 docs/fault_injection.txt d

[Qemu-devel] [RFC PATCH 0/5] FAULT INJECTION FRAMEWORK

2019-06-28 Thread Damien Hedde
Hi all, This series adds a python framework aiming to provide some ways to do fault injection in a running vm. In its current state, it allows to easily interact with memory, change gpios and qom properties. The framework consists in a python script based on the qmp existing module which allows t

[Qemu-devel] [PATCH v24 2/7] target/avr: Add instruction helpers

2019-06-28 Thread Michael Rolnik
From: Sarah Harris Stubs for unimplemented instructions and helpers for instructions that need to interact with QEMU. SPM and WDR are unimplemented because they require emulation of complex peripherals. The implementation of SLEEP is very limited due to the lack of peripherals to generate wake

Re: [Qemu-devel] [PATCH] qemu-bridge-helper: restrict bridge name to IFNAMSIZ

2019-06-28 Thread Li Qiang
Hello Prasad, P J P 于2019年6月28日周五 下午5:52写道: > From: Prasad J Pandit > > The interface names in qemu-bridge-helper are defined to be > of size IFNAMSIZ(=16), including the terminating null('\0') byte. > The same is applied to interface names read from 'bridge.conf' > file to form ACLs rules. If

[Qemu-devel] [RFC PATCH 3/5] add qmp time-notify event triggering system

2019-06-28 Thread Damien Hedde
This adds an event triggering mechanism composed of: + an event that is catchable by qmp clients + a command to create such events When triggered the event TIME_NOTIFICATION is signaled. Optionnaly the virtual machine is also paused (put in debug state). The virtual machine can then be restarted

Re: [Qemu-devel] [PULL 12/62] target/ppc/spapr: Enable mitigations by default for pseries-4.0 machine type

2019-06-28 Thread Philippe Mathieu-Daudé
On 6/28/19 1:54 PM, Laurent Vivier wrote: > On 28/06/2019 13:27, Philippe Mathieu-Daudé wrote: >> Hi, >> >> On 3/12/19 9:54 AM, David Gibson wrote: >>> From: Suraj Jitindar Singh >>> >>> There are currently 3 mitigations the availability of which is controlled >>> by the spapr-caps mechanism, cap-

Re: [Qemu-devel] [PATCH] qemu-bridge-helper: restrict bridge name to IFNAMSIZ

2019-06-28 Thread Daniel P . Berrangé
On Fri, Jun 28, 2019 at 04:51:31PM +0530, P J P wrote: > +-- On Fri, 28 Jun 2019, Daniel P. Berrangé wrote --+ > | Can you elaborate on the way to exploit this as I'm not seeing > | any way that doesn't involve mis-configuration of the ACL > | config file data. > > True, it depends on having an 'a

[Qemu-devel] [PATCH v24 7/7] target/avr: Register AVR support with the rest of QEMU, the build system, and the MAINTAINERS file

2019-06-28 Thread Michael Rolnik
From: Sarah Harris Signed-off-by: Michael Rolnik --- MAINTAINERS | 6 ++ arch_init.c | 2 ++ configure | 7 +++ default-configs/avr-softmmu.mak | 5 + include/disas/dis-asm.h | 6 ++ include/sysemu/arch_i

Re: [Qemu-devel] [Patchew-devel] [PATCH v15 0/5] linux-user: A set of miscellaneous patches

2019-06-28 Thread Aleksandar Markovic
> I've moved the env/rpm/uname commands before the actual testing commands, so > the information can be collected even upon failures. Would it be hard for you to capture output of the command "ldd --version" and include it early in the log? That would be sufficient for us to deduce "glibc versio

[Qemu-devel] [PATCH] docs/devel/testing: Fix typo in dockerfile path

2019-06-28 Thread Liam Merwick
Signed-off-by: Liam Merwick --- docs/devel/testing.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/devel/testing.rst b/docs/devel/testing.rst index da2d0fc9646f..3ef50a61db4d 100644 --- a/docs/devel/testing.rst +++ b/docs/devel/testing.rst @@ -327,7 +327,7 @@ Images

[Qemu-devel] [PATCH v24 4/7] target/avr: Add instruction translation

2019-06-28 Thread Michael Rolnik
This includes: - TCG translations for each instruction Signed-off-by: Michael Rolnik --- target/avr/translate.c | 2888 1 file changed, 2888 insertions(+) create mode 100644 target/avr/translate.c diff --git a/target/avr/translate.c b/target/avr/transla

Re: [Qemu-devel] [PATCH v0 2/3] qcow2: add compression type processing

2019-06-28 Thread Denis Plotnikov
On 28.06.2019 15:06, Kevin Wolf wrote: > Am 28.06.2019 um 13:24 hat Denis Plotnikov geschrieben: >> >> >> On 28.06.2019 13:23, Kevin Wolf wrote: >>> Am 28.05.2019 um 16:37 hat Denis Plotnikov geschrieben: With the patch, qcow2 is able to process image compression type defined in the ima

  1   2   3   4   >