[Qemu-devel] [PULL 06/16] hw/arm/iotkit-sysctl: Add SSE-200 registers

2019-02-28 Thread Peter Maydell
The SYSCTL block in the SSE-200 has some extra registers that are not present in the IoTKit version. Add these registers (as reads-as-written stubs), enabled by a new QOM property. Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson Message-id: 20190219125808.25174-7-peter.mayd...@linaro

[Qemu-devel] [PULL 05/16] hw/misc/iotkit-sysctl: Correct typo in INITSVTOR0 register name

2019-02-28 Thread Peter Maydell
The iotkit-sysctl device has a register it names INITSVRTOR0. This is actually a typo present in the IoTKit documentation and also in part of the SSE-200 documentation: it should be INITSVTOR0 because it is specifying the initial value of the Secure VTOR register in the CPU. Correct the typo. Sig

[Qemu-devel] [PULL 09/16] target/arm: Use MVFR1 feature bits to gate A32/T32 FP16 instructions

2019-02-28 Thread Peter Maydell
Instead of gating the A32/T32 FP16 conversion instructions on the ARM_FEATURE_VFP_FP16 flag, switch to our new approach of looking at ID register bits. In this case MVFR1 fields FPHP and SIMDHP indicate the presence of these insns. This change doesn't alter behaviour for any of our CPUs. Signed-o

[Qemu-devel] [PULL 01/16] hw/misc/armsse-mhu.c: Model the SSE-200 Message Handling Unit

2019-02-28 Thread Peter Maydell
Implement a model of the Message Handling Unit (MHU) found in the Arm SSE-200. This is a simple device which just contains some registers which allow the two cores of the SSE-200 to raise interrupts on each other. Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson Message-id: 2019021912

[Qemu-devel] [PULL 04/16] target/arm/arm-powerctl: Add new arm_set_cpu_on_and_reset()

2019-02-28 Thread Peter Maydell
Currently the Arm arm-powerctl.h APIs allow: * arm_set_cpu_on(), which powers on a CPU and sets its initial PC and other startup state * arm_reset_cpu(), which resets a CPU which is already on (and fails if the CPU is powered off) but there is no way to say "power on a CPU as if it had jus

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

2019-02-28 Thread Peter Maydell
ull-target-arm-20190228-1 for you to fetch changes up to 1c9af3a9e05c1607a36df4943f8f5393d7621a91: linux-user: Enable HWCAP_ASIMDFHM, HWCAP_JSCVT (2019-02-28 11:03:05 +) target-arm queue: * add MHU and dual-core support to Mu

Re: [Qemu-devel] [PATCH V2] i386: extended the cpuid_level when Intel PT is enabled

2019-02-28 Thread Kang, Luwei
> -Original Message- > From: Paolo Bonzini [mailto:pbonz...@redhat.com] > Sent: Thursday, February 28, 2019 7:02 PM > To: Kang, Luwei ; m...@redhat.com; > marcel.apfelb...@gmail.com; r...@twiddle.net; ehabk...@redhat.com > Cc: qemu-devel@nongnu.org > Subject: Re: [PATCH V2] i386: extende

Re: [Qemu-devel] [PATCH V2] i386: extended the cpuid_level when Intel PT is enabled

2019-02-28 Thread Paolo Bonzini
On 30/01/19 00:52, Luwei Kang wrote: > Intel Processor Trace required CPUID[0x14] but the cpuid_level > have no change when create a kvm guest with > e.g. "-cpu qemu64,+intel-pt". > > Signed-off-by: Eduardo Habkost > Signed-off-by: Luwei Kang > --- > hw/i386/pc.c | 1 + > target/i386/cpu.c

Re: [Qemu-devel] [PATCH v1 33/33] s390x/tcg: Implement VECTOR UNPACK *

2019-02-28 Thread David Hildenbrand
On 28.02.19 10:28, David Hildenbrand wrote: > On 28.02.19 01:03, Richard Henderson wrote: >> On 2/26/19 3:39 AM, David Hildenbrand wrote: >>> Combine all variant in a single handler. As source and destination >>> have different element sizes, we can't use gvec expansion. Expand >>> manually. Also w

Re: [Qemu-devel] [RFC v3] target/arm: add ARMv6-M UNDEFINED 32-bit instruction test

2019-02-28 Thread Alex Bennée
Stefan Hajnoczi writes: > Test that 32-bit instructions declared UNDEFINED in the ARMv6-M > Reference Manual really do raise an exception. Also test that the 6 > 32-bit instructions defined in the ARMv6-M Reference Manual do not raise > an exception. > > The Intel HEX (.hex) file is included t

[Qemu-devel] [Bug 1815889] Re: qemu-system-x86_64 crashed with signal 31 in __pthread_setaffinity_new()

2019-02-28 Thread Will Cooke
Adding Timo who maintainers mesa. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1815889 Title: qemu-system-x86_64 crashed with signal 31 in __pthread_setaffinity_new() Status in Mesa: Unknown

Re: [Qemu-devel] [PATCH] migration: Cleanup during exit

2019-02-28 Thread Alex Bennée
Dr. David Alan Gilbert (git) writes: > From: "Dr. David Alan Gilbert" > > Currently we cleanup the migration object as we exit main after the > main_loop finishes; however if there's a migration running things > get messy and we can end up with the migration thread still trying > to access fre

Re: [Qemu-devel] [PATCH v4] iotests: use iotests.VM in 238

2019-02-28 Thread Kevin Wolf
Am 27.02.2019 um 15:44 hat Stefan Hajnoczi geschrieben: > Test 238 does not require the kvm accelerator. Using the qtest > accelerator allows the test to run in both non-kvm and non-tcg > environments. > > iotests.VM implicitly uses the qtest accelerator and is really the class > that this test s

[Qemu-devel] sorecvfrom freezes guest

2019-02-28 Thread llyzs
Hi, I am having a guest freeze issue (win10), and through debugging I found out that sometimes sorecvfrom() is called from slirp.c because revents == G_IO_IN, however inside sorecvfrom() function, ioctlsocket() returns 0 bytes available and recvfrom could be blocking indefinitely. I am not sure th

Re: [Qemu-devel] [PATCH 30/51] ppc64: Express dependencies of 'pseries' and 'powernv' machines with kconfig

2019-02-28 Thread Paolo Bonzini
On 07/02/19 18:57, Paolo Bonzini wrote: > diff --git a/default-configs/ppc64-softmmu.mak > b/default-configs/ppc64-softmmu.mak > index d642b67..cca5266 100644 > --- a/default-configs/ppc64-softmmu.mak > +++ b/default-configs/ppc64-softmmu.mak > @@ -5,11 +5,6 @@ include ppc-softmmu.mak > > # For

Re: [Qemu-devel] [PATCH v3 4/9] {monitor, hw/pvrdma}: Expose device internals via monitor interface

2019-02-28 Thread Marcel Apfelbaum
On 2/28/19 11:01 AM, Yuval Shaia wrote: On Thu, Feb 28, 2019 at 10:35:38AM +0200, Marcel Apfelbaum wrote: Hi Yuval, On 2/27/19 4:06 PM, Yuval Shaia wrote: Allow interrogating device internals through HMP interface. The exposed indicators can be used for troubleshooting by developers or sysa

Re: [Qemu-devel] [PULL 00/40] target/xtensa queue

2019-02-28 Thread Peter Maydell
On Mon, 25 Feb 2019 at 20:32, Max Filippov wrote: > > Hi Peter, > > please pull the following batch of target/xtensa updates: > > The following changes since commit 1c3d45df5e94042d5fb2bb31416072563ab30e49: > > Merge remote-tracking branch 'remotes/ericb/tags/pull-nbd-2019-02-04' into > staging

Re: [Qemu-devel] [PATCH v2] qcow2: discard bitmap when removed

2019-02-28 Thread Vladimir Sementsov-Ogievskiy
28.02.2019 12:26, Andrey Shinkevich wrote: > When a bitmap is removed, we can clean some space on the disk. The size > of a cluster may be larger, so is the size of the bitmap that includes > many clusters. Some bitmaps can be as large as tens of megabytes. > The flag QCOW2_DISCARD_ALWAYS allows a

Re: [Qemu-devel] [PATCH] Allow -sandbox off with --disable-seccomp

2019-02-28 Thread Daniel P . Berrangé
On Wed, Feb 27, 2019 at 08:21:40PM +0100, Markus Armbruster wrote: > Daniel P. Berrangé writes: > > > On Wed, Feb 27, 2019 at 07:59:11AM -0600, Eric Blake wrote: > >> On 2/27/19 5:01 AM, Daniel P. Berrangé wrote: > >> > On Wed, Feb 27, 2019 at 12:21:32PM +1100, David Gibson wrote: > >> >> At pres

[Qemu-devel] [Bug 1815889] Re: qemu-system-x86_64 crashed with signal 31 in __pthread_setaffinity_new()

2019-02-28 Thread Christian Ehrhardt 
Thanks Daniel and MarcAndre for chiming in here. Atfer thinking more about it I agree to Daniel that actually mesa should honor and stick with its affinity assignment. For documentation purpose: the solution proposed on the ML is at https://lists.freedesktop.org/archives/mesa-dev/2019-February/2

Re: [Qemu-devel] [PATCH v2 4/4] block/dirty-bitmaps: implement inconsistent bit

2019-02-28 Thread Vladimir Sementsov-Ogievskiy
28.02.2019 2:48, John Snow wrote: > > > On 2/25/19 11:21 AM, Vladimir Sementsov-Ogievskiy wrote: >> 23.02.2019 3:22, John Snow wrote: >>> Set the inconsistent bit on load instead of rejecting such bitmaps. >>> There is no way to un-set it; the only option is to delete it. >>> >>> Obvervations: >>

[Qemu-devel] [Bug 1815889] Re: qemu-system-x86_64 crashed with signal 31 in __pthread_setaffinity_new()

2019-02-28 Thread Christian Ehrhardt 
@Ubuntu-Desktop Team (now subscribed) - is there a chance we can revert [1] in mesa before it will be released with Disco for now. That would be needed until an accepted solution throughout the stack of libvirt/qemu/mesa is found? Otherwise using GL backed qemu graphics will fail as outlined in t

Re: [Qemu-devel] [PATCH v2 1/4] block/dirty-bitmaps: add inconsistent bit

2019-02-28 Thread Vladimir Sementsov-Ogievskiy
27.02.2019 21:45, John Snow wrote: > > > On 2/25/19 10:30 AM, Vladimir Sementsov-Ogievskiy wrote: >> 25.02.2019 17:18, Vladimir Sementsov-Ogievskiy wrote: >>> 23.02.2019 3:22, John Snow wrote: Add an inconsistent bit to dirty-bitmaps that allows us to report a bitmap as persistent

Re: [Qemu-devel] [RFC PATCH 0/4] ARM virt: ACPI memory hotplug support

2019-02-28 Thread Auger Eric
Hi Laszlo, On 2/27/19 9:14 PM, Laszlo Ersek wrote: > On 02/27/19 13:55, Shameerali Kolothum Thodi wrote: >> Hi Laszlo, >> >>> -Original Message- >>> From: Shameerali Kolothum Thodi >>> Sent: 25 February 2019 09:54 >>> To: 'Laszlo Ersek' ; Auger Eric ; >>> shannon.zha...@gmail.com; peter.ma

Re: [Qemu-devel] [PATCH 0/2] usb-mtp coverity fixes

2019-02-28 Thread Gerd Hoffmann
On Fri, Feb 22, 2019 at 05:49:32PM -0500, Bandan Das wrote: > Fix some coverity issues and a few others pointed out by Peter > > Bandan Das (2): > usb-mtp: return incomplete transfer on a lstat failure > usb-mtp: fix some usb_mtp_write_data return paths Series needs a rebase (conflicts with D

[Qemu-devel] [PULL 1/5] audio: Use g_strdup_printf instead of manual building a string

2019-02-28 Thread Gerd Hoffmann
From: Frediano Ziglio Instead of using lot of low level function and manually allocate the temporary string in audio_process_options use more high level GLib function. The function is not used in hot path but to read some initial setting. Signed-off-by: Frediano Ziglio Message-id: 2019022515433

[Qemu-devel] [PULL 3/5] audio: don't build alsa and sdl by default on linux

2019-02-28 Thread Gerd Hoffmann
In case no sound hardware is present both alsa and sdl drivers initialize successfully and throw errors later on, i.e. effectively the automatic probing doesn't work. Drop them from the list of default audio drivers for linux because of that. Fixes: 6a48541873 audio: probe audio drivers by defaul

[Qemu-devel] [PULL 2/5] audio: Do not check for audio_calloc failure

2019-02-28 Thread Gerd Hoffmann
From: Frediano Ziglio audio_calloc uses g_malloc0 which never returns in case of memory failure. Signed-off-by: Frediano Ziglio Message-id: 20190225154335.11397-2-fzig...@redhat.com Signed-off-by: Gerd Hoffmann --- audio/audio.c | 48 ++-- 1 file ch

[Qemu-devel] [PULL 0/5] Audio 20190228 patches

2019-02-28 Thread Gerd Hoffmann
The following changes since commit 86c7e2f4a93322a76afea5ee6806a83420d1dfea: Merge remote-tracking branch 'remotes/berrange/tags/authz-core-pull-request' into staging (2019-02-26 17:59:41 +) are available in the git repository at: git://git.kraxel.org/qemu tags/audio-201

[Qemu-devel] [PULL 5/5] audio/sdlaudio: Simplify the sdl_callback function

2019-02-28 Thread Gerd Hoffmann
From: Thomas Huth At the end of the while-loop, either "samples" or "sdl->live" is zero, so now that we've removed the semaphore code, the content of the while-loop is always only executed once. Thus we can remove the while-loop now to get rid of one indentation level here. Signed-off-by: Thomas

[Qemu-devel] [PULL 4/5] audio/sdlaudio: Remove the semaphore code

2019-02-28 Thread Gerd Hoffmann
From: Thomas Huth The semaphore code was only working with SDL1.2 - with SDL2, it causes a deadlock. Since we've removed support for SDL1.2 recently, we can now completely remove the semaphore code from sdlaudio.c. Signed-off-by: Thomas Huth Reviewed-by: Philippe Mathieu-Daudé Message-id: 1549

Re: [Qemu-devel] [PATCH qemu] configure: Enable werror for git worktrees

2019-02-28 Thread Peter Maydell
On Thu, 28 Feb 2019 at 04:36, Alexey Kardashevskiy wrote: > > The configure script checks multiple times whether it works in a git > repository and it does this by "test -e "${source_path}/.git" in 4 cases > but in one case where it tries to enable werror "-d" is used there which > fails on git wo

Re: [Qemu-devel] [Qemu-block] Guest unresponsive after Virtqueue size exceeded error

2019-02-28 Thread Peter Maydell
On Mon, 25 Feb 2019 at 13:06, Peter Maydell wrote: > > On Mon, 25 Feb 2019 at 12:22, Natanael Copa wrote: > > > > On Mon, 25 Feb 2019 10:34:23 + > > Peter Maydell wrote: > > > The short term fix is to fix your toolchain/compilation > > > environment options so that it isn't trying to overrid

Re: [Qemu-devel] [RFC PATCH 3/4] hw/arm/virt: Enable pc-dimm hotplug support

2019-02-28 Thread Auger Eric
Hi Igor, On 2/27/19 6:14 PM, Igor Mammedov wrote: > On Mon, 28 Jan 2019 11:05:45 + > Shameer Kolothum wrote: > >> pc-dimm memory hotplug is enabled using GPIO(Pin 2) based ACPI >> event. Hot removal functionality is not yet supported. >> >> Signed-off-by: Shameer Kolothum >> --- >> hw/arm/

Re: [Qemu-devel] [PULL 00/71] Block layer patches

2019-02-28 Thread Peter Maydell
On Mon, 25 Feb 2019 at 15:21, Kevin Wolf wrote: > > The following changes since commit 59a568b57848b10e8a44518a889323f12ccdd8f4: > > Merge remote-tracking branch > 'remotes/kraxel/tags/vga-20190222-pull-request' into staging (2019-02-25 > 12:49:07 +) > > are available in the Git repository

Re: [Qemu-devel] [PATCH v1 33/33] s390x/tcg: Implement VECTOR UNPACK *

2019-02-28 Thread David Hildenbrand
On 28.02.19 01:03, Richard Henderson wrote: > On 2/26/19 3:39 AM, David Hildenbrand wrote: >> Combine all variant in a single handler. As source and destination >> have different element sizes, we can't use gvec expansion. Expand >> manually. Also watch out for overlapping source and destination an

Re: [Qemu-devel] [PATCH 1/2] audio: Use g_strdup_printf instead of manual building a string

2019-02-28 Thread Gerd Hoffmann
On Mon, Feb 25, 2019 at 03:43:34PM +, Frediano Ziglio wrote: > Instead of using lot of low level function and manually allocate > the temporary string in audio_process_options use more high > level GLib function. The function is not used in hot path but to > read some initial setting. Added to

[Qemu-devel] [PATCH v2] qcow2: discard bitmap when removed

2019-02-28 Thread Andrey Shinkevich
When a bitmap is removed, we can clean some space on the disk. The size of a cluster may be larger, so is the size of the bitmap that includes many clusters. Some bitmaps can be as large as tens of megabytes. The flag QCOW2_DISCARD_ALWAYS allows a call to the raw_co_pdiscard() that does the actual

[Qemu-devel] [PATCH] target-i386: add kvm stubs to user-mode emulators

2019-02-28 Thread Paolo Bonzini
The CPUID code will call kvm_arch_get_supported_cpuid() and, even though it is undef kvm_enabled() so it never runs for user-mode emulators, sometimes clang will not optimize it out at -O0. That could be considered a compiler bug, however at -O0 we give it a pass and just add the stubs. Reported-

Re: [Qemu-devel] [PATCH qemu] configure: Enable werror for git worktrees

2019-02-28 Thread Paolo Bonzini
On 28/02/19 08:14, Gerd Hoffmann wrote: > On Thu, Feb 28, 2019 at 08:01:53AM +0100, Thomas Huth wrote: >> On 28/02/2019 06.00, David Gibson wrote: >>> On Thu, Feb 28, 2019 at 03:35:03PM +1100, Alexey Kardashevskiy wrote: The configure script checks multiple times whether it works in a git

Re: [Qemu-devel] [PATCH v1 32/33] s390x/tcg: Implement VECTOR STORE WITH LENGTH

2019-02-28 Thread David Hildenbrand
On 28.02.19 00:49, Richard Henderson wrote: > On 2/26/19 3:39 AM, David Hildenbrand wrote: >> Very similar to VECTOR LOAD WITH LENGTH, just the opposite direction. >> >> Signed-off-by: David Hildenbrand >> --- >> target/s390x/helper.h | 1 + >> target/s390x/insn-data.def | 2 ++ >

Re: [Qemu-devel] [PATCH v1 29/33] s390x/tcg: Implement VECTOR STORE

2019-02-28 Thread David Hildenbrand
On 28.02.19 00:46, Richard Henderson wrote: > On 2/26/19 3:39 AM, David Hildenbrand wrote: >> +static DisasJumpType op_vst(DisasContext *s, DisasOps *o) >> +{ >> +/* >> + * FIXME: On exceptions we must not modify any memory. >> + */ >> +store_vec_element(s, get_field(s->fields, v1),

Re: [Qemu-devel] [PATCH v1 27/33] s390x/tcg: Implement VECTOR SELECT

2019-02-28 Thread David Hildenbrand
On 28.02.19 00:42, Richard Henderson wrote: > On 2/26/19 3:39 AM, David Hildenbrand wrote: >> +tcg_gen_not_vec(vece, t, c); >> +tcg_gen_and_vec(vece, t, t, b); > > tcg_gen_andc_vec(t, b, c); > >> +tcg_gen_not_i64(t, c); >> +tcg_gen_and_i64(t, b, t); > > Likewise. > Changed, tha

Re: [Qemu-devel] [Qemu-ppc] [PATCH 2/5] virtio-balloon: Corrections to address verification

2019-02-28 Thread Greg Kurz
On Wed, 27 Feb 2019 10:20:12 +1100 David Gibson wrote: > On Mon, Feb 25, 2019 at 10:26:51AM +0100, Greg Kurz wrote: > > On Mon, 25 Feb 2019 10:37:11 +1100 > > David Gibson wrote: > > > > > On Fri, Feb 22, 2019 at 10:08:22AM +0100, Greg Kurz wrote: > > > > On Thu, 14 Feb 2019 15:39:13 +1100

Re: [Qemu-devel] [PATCH v1 25/33] s390x/tcg: Implement VECTOR REPLICATE IMMEDIATE

2019-02-28 Thread David Hildenbrand
On 28.02.19 00:39, Richard Henderson wrote: > On 2/26/19 3:39 AM, David Hildenbrand wrote: >> +tmp = tcg_temp_new_i64(); >> +tcg_gen_movi_i64(tmp, data); >> +gen_gvec_dup_i64(es, get_field(s->fields, v1), tmp); >> +tcg_temp_free_i64(tmp); >> +return DISAS_NEXT; > > Reuse the du

Re: [Qemu-devel] [PATCH v8 00/34] target/riscv: Convert to decodetree

2019-02-28 Thread Paolo Bonzini
On 28/02/19 09:37, Thomas Huth wrote: > On 27/02/2019 18.55, no-re...@patchew.org wrote: >> Patchew URL: >> https://patchew.org/QEMU/20190222141024.22217-1-kbast...@mail.uni-paderborn.de/ >> >> Hi, >> >> This series seems to have some coding style problems. See output below for >> more information

Re: [Qemu-devel] [PATCH v3 4/9] {monitor, hw/pvrdma}: Expose device internals via monitor interface

2019-02-28 Thread Yuval Shaia
On Thu, Feb 28, 2019 at 10:35:38AM +0200, Marcel Apfelbaum wrote: > Hi Yuval, > > On 2/27/19 4:06 PM, Yuval Shaia wrote: > > Allow interrogating device internals through HMP interface. > > The exposed indicators can be used for troubleshooting by developers or > > sysadmin. > > There is no need to

[Qemu-devel] [PATCH v7 7/7] contrib/vhost-user-blk: enable inflight I/O tracking

2019-02-28 Thread elohimes
From: Xie Yongji This patch enables inflight I/O tracking for vhost-user-blk backend so that we could restart it safely. Signed-off-by: Xie Yongji Signed-off-by: Zhang Yu --- contrib/vhost-user-blk/vhost-user-blk.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/

Re: [Qemu-devel] [RFC PATCH 3/4] spapr: Add NVDIMM device support

2019-02-28 Thread Shivaprasad G Bhat
Hi Igor, Thanks for the elaboration. Please find my response inline. On 02/21/2019 07:42 PM, Igor Mammedov wrote: On Tue, 19 Feb 2019 14:59:25 +0530 Shivaprasad G Bhat wrote: On 02/19/2019 01:41 PM, Igor Mammedov wrote: On Tue, 05 Feb 2019 23:26:27 -0600 Shivaprasad G Bhat wrote: Add

[Qemu-devel] [PATCH v7 6/7] vhost-user-blk: Add support to reconnect backend

2019-02-28 Thread elohimes
From: Xie Yongji Since we now support the message VHOST_USER_GET_INFLIGHT_FD and VHOST_USER_SET_INFLIGHT_FD. The backend is able to restart safely because it can track inflight I/O in shared memory. This patch allows qemu to reconnect the backend after connection closed. Signed-off-by: Xie Yongj

[Qemu-devel] [PATCH v7 4/7] libvhost-user: Support tracking inflight I/O in shared memory

2019-02-28 Thread elohimes
From: Xie Yongji This patch adds support for VHOST_USER_GET_INFLIGHT_FD and VHOST_USER_SET_INFLIGHT_FD message to set/get shared buffer to/from qemu. Then backend can track inflight I/O in this buffer. Signed-off-by: Xie Yongji Signed-off-by: Zhang Yu --- Makefile

Re: [Qemu-devel] [PATCH v1 19/33] s390x/tcg: Implement VECTOR MERGE (HIGH|LOW)

2019-02-28 Thread David Hildenbrand
On 27.02.19 17:20, Richard Henderson wrote: > On 2/26/19 3:39 AM, David Hildenbrand wrote: >> +for (dst_idx = 0; dst_idx < NUM_VEC_ELEMENTS(es); dst_idx++) { >> +src_idx = dst_idx / 2; >> +if (!high) { >> +src_idx += NUM_VEC_ELEMENTS(es) / 2; >> +} >> +

[Qemu-devel] [PATCH v7 5/7] vhost-user-blk: Add support to get/set inflight buffer

2019-02-28 Thread elohimes
From: Xie Yongji This patch adds support for vhost-user-blk device to get/set inflight buffer from/to backend. Signed-off-by: Xie Yongji Signed-off-by: Zhang Yu --- hw/block/vhost-user-blk.c | 28 include/hw/virtio/vhost-user-blk.h | 1 + 2 files changed

[Qemu-devel] [PATCH v7 1/7] vhost-user: Support transferring inflight buffer between qemu and backend

2019-02-28 Thread elohimes
From: Xie Yongji This patch introduces two new messages VHOST_USER_GET_INFLIGHT_FD and VHOST_USER_SET_INFLIGHT_FD to support transferring a shared buffer between qemu and backend. Firstly, qemu uses VHOST_USER_GET_INFLIGHT_FD to get the shared buffer from backend. Then qemu should send it back t

Re: [Qemu-devel] [PATCH v1 14/33] s390x/tcg: Implement VECTOR LOAD MULTIPLE

2019-02-28 Thread David Hildenbrand
On 27.02.19 17:02, Richard Henderson wrote: > On 2/26/19 3:38 AM, David Hildenbrand wrote: >> Also fairly easy to implement. One issue we have is that exceptions will >> result in some vectors already being modified. At least handle it >> consistently per vector by using a temporary vector. Good en

[Qemu-devel] [PATCH v7 0/7] vhost-user-blk: Add support for backend reconnecting

2019-02-28 Thread elohimes
From: Xie Yongji This patchset is aimed at supporting qemu to reconnect vhost-user-blk backend after vhost-user-blk backend crash or restart. The patch 1 introduces two new messages VHOST_USER_GET_INFLIGHT_FD and VHOST_USER_SET_INFLIGHT_FD to support transferring shared buffer between qemu and b

[Qemu-devel] [PATCH v7 3/7] libvhost-user: Introduce vu_queue_map_desc()

2019-02-28 Thread elohimes
From: Xie Yongji Introduce vu_queue_map_desc() which should be independent with vu_queue_pop(); Signed-off-by: Xie Yongji Signed-off-by: Zhang Yu Reviewed-by: Marc-André Lureau --- contrib/libvhost-user/libvhost-user.c | 88 --- 1 file changed, 51 insertions(+), 37 de

[Qemu-devel] [PATCH v7 2/7] libvhost-user: Remove unnecessary FD flag check for event file descriptors

2019-02-28 Thread elohimes
From: Xie Yongji The vu_check_queue_msg_file() has checked the FD flag. So let's delete the redundant check after it. Signed-off-by: Xie Yongji Signed-off-by: Zhang Yu --- contrib/libvhost-user/libvhost-user.c | 14 -- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a

Re: [Qemu-devel] [PATCH v1 15/33] s390x/tcg: Implement VECTOR LOAD TO BLOCK BOUNDARY

2019-02-28 Thread David Hildenbrand
On 27.02.19 17:08, Richard Henderson wrote: > On 2/26/19 3:38 AM, David Hildenbrand wrote: >> +void HELPER(vll)(CPUS390XState *env, void *v1, uint64_t addr, uint64_t >> bytes) >> +{ >> +S390Vector tmp = {}; >> +int i; >> + >> +bytes = MIN(bytes, 16); >> +for (i = 0; i < bytes; i++)

Re: [Qemu-devel] [PATCH v8 00/34] target/riscv: Convert to decodetree

2019-02-28 Thread Thomas Huth
On 27/02/2019 18.55, no-re...@patchew.org wrote: > Patchew URL: > https://patchew.org/QEMU/20190222141024.22217-1-kbast...@mail.uni-paderborn.de/ > > Hi, > > This series seems to have some coding style problems. See output below for > more information: Fam, Paolo, Patchew is really going wild

Re: [Qemu-devel] regression: target/ppc: convert VSX logical operations to vector operations broke X for ppc64le guest

2019-02-28 Thread Andrew Randrianasulu
В сообщении от Thursday 28 February 2019 08:06:45 Mark Cave-Ayland написал(а): > On 26/02/2019 22:25, Andrew Randrianasulu wrote: > > (adding qemu-ppc, Richard and David - please make sure you add the relevant > maintainer on bug reports, as otherwise due to the high volume of mails to > the list i

Re: [Qemu-devel] [PATCH v3 4/9] {monitor, hw/pvrdma}: Expose device internals via monitor interface

2019-02-28 Thread Marcel Apfelbaum
Hi Yuval, On 2/27/19 4:06 PM, Yuval Shaia wrote: Allow interrogating device internals through HMP interface. The exposed indicators can be used for troubleshooting by developers or sysadmin. There is no need to expose these attributes to a management system (e.x. libvirt) because (1) most of the

Re: [Qemu-devel] [PATCH v1 13/33] s390x/tcg: Implement VECTOR LOAD LOGICAL ELEMENT AND ZERO

2019-02-28 Thread David Hildenbrand
On 27.02.19 16:56, Richard Henderson wrote: > On 2/26/19 3:38 AM, David Hildenbrand wrote: >> +zero_vec(TMP_VREG_0); >> +load_vec_element(s, TMP_VREG_0, enr, o->addr1, es); >> +gen_gvec_mov(get_field(s->fields, v1), TMP_VREG_0); > > load into TCGv_i64, zero real dest, store into real d

Re: [Qemu-devel] [PATCH v1 12/33] s390x/tcg: Implement VECTOR LOAD GR FROM VR ELEMENT

2019-02-28 Thread David Hildenbrand
On 27.02.19 16:53, Richard Henderson wrote: > On 2/26/19 3:38 AM, David Hildenbrand wrote: >> To avoid an helper, we have to do the actual calculation of the element >> address (offset in cpu_env + cpu_env) manually. Factor that out into >> get_vec_element_ptr_i64(). The same logic will be reused f

Re: [Qemu-devel] [PATCH v2 3/8] decodetree: Document the usefulness of argument sets

2019-02-28 Thread Bastian Koppelmann
On 2/28/19 6:24 AM, Richard Henderson wrote: Cc: Bastian Koppelmann Signed-off-by: Richard Henderson --- docs/devel/decodetree.rst | 7 +++ 1 file changed, 7 insertions(+) Reviewed-by: Bastian Koppelmann Cheers, Bastian

Re: [Qemu-devel] [PATCH v2 2/8] decodetree: Move documentation to docs/devel/decodetree.rst

2019-02-28 Thread Bastian Koppelmann
On 2/28/19 6:24 AM, Richard Henderson wrote: One great big block comment isn't the best way to document the syntax of a language. Signed-off-by: Richard Henderson --- MAINTAINERS | 1 + docs/devel/decodetree.rst | 156 ++ scripts/decodetre

<    1   2   3   4