Re: [Qemu-devel] [PATCH RFC 0/2] Fix migration issues

2018-10-29 Thread Fei Li
On 10/26/2018 11:24 PM, Dr. David Alan Gilbert wrote: * Peter Xu (pet...@redhat.com) wrote: On Fri, Oct 26, 2018 at 09:10:19PM +0800, Fei Li wrote: On 10/25/2018 08:58 PM, Peter Xu wrote: On Thu, Oct 25, 2018 at 05:04:00PM +0800, Fei Li wrote: [...] @@ -1325,22 +1325,24 @@ bool multifd_

Re: [Qemu-devel] [RFC PATCH 00/21] Trace updates and plugin RFC

2018-10-29 Thread Pavel Dovgalyuk
> From: Alex Bennée [mailto:alex.ben...@linaro.org] > Pavel Dovgalyuk writes: > > >> From: Alex Bennée [mailto:alex.ben...@linaro.org] > >> Pavel Dovgalyuk writes: > >> > >> >> From: Alex Bennée [mailto:alex.ben...@linaro.org] > >> >> Any serious analysis tool should allow for us to track all me

[Qemu-devel] KVM Forum 2018 BoF Meeting minutes - architecture common code

2018-10-29 Thread Christian Borntraeger
Participants: Christopher Dall, Marc Zyngier, Paolo Bonzini, Suraj Jitindar Singh, Frediano Ziglio, Sean Christopherson, Radim Krcmar, Janosch Frank, Christian Borntraeger +some more - Discussion about common code for different architectures - initiated by my talk https://schd.ws/hosted_files/

Re: [Qemu-devel] [PATCH] hw/pvrdma: Check the correct return value

2018-10-29 Thread Marcel Apfelbaum
On 10/25/18 9:17 AM, Yuval Shaia wrote: Return value of 0 means ok, we want to free the memory only in case of error. Signed-off-by: Yuval Shaia --- hw/rdma/vmw/pvrdma_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/rdma/vmw/pvrdma_cmd.c b/hw/rdma/vmw/pvrdma_c

Re: [Qemu-devel] [PULL 8/9] tests: add qmp/qom-set-without-value test

2018-10-29 Thread Markus Armbruster
Marc-André Lureau writes: > Hi > > On Tue, Oct 9, 2018 at 8:41 PM Markus Armbruster wrote: >> >> Markus Armbruster writes: >> >> > Thomas Huth writes: >> > >> >> On 2018-08-31 15:24, Marc-André Lureau wrote: [...] >> >>> Tbh, I don't care so much about the naming of the test, but (for once) >>

[Qemu-devel] [PATCH v2 0/1] Add PKU on Skylake-Server CPU model

2018-10-29 Thread Tao Xu
This patch adds PKU on Skylake-Server CPU model. Changelog: v2 Remove OSPKE which is not needed. Add Skylake-Server-*-cpu.pku=off entries on PC_COMPAT_3_0 to keep PKU disabled on pc-*-3.0 and older. Tao Xu (1): i386: Add PKU on Skylake-Server CPU model includ

[Qemu-devel] [PATCH v2 1/1] i386: Add PKU on Skylake-Server CPU model

2018-10-29 Thread Tao Xu
As the release document ref below link (page 13): https://software.intel.com/sites/default/files/managed/c5/15/\ architecture-instruction-set-extensions-programming-reference.pdf PKU is supported in Skylake Server (Only Server) and later, and on Intel(R) Xeon(R) Processor Scalable Family. So PKU i

Re: [Qemu-devel] [PATCH 0/3] Mark non-volatile memory regions

2018-10-29 Thread Marc-André Lureau
Hi On Wed, Oct 3, 2018 at 3:46 PM Marc-André Lureau wrote: > > Hi, > > As discussed in the "[PATCH v10 6/6] tpm: add ACPI memory clear > interface" thread, and proposed in the "[PATCH] RFC: mark non-volatile > memory region", here is a small series to mark non-volvatile memory > regions and skip

Re: [Qemu-devel] [PATCH 2/3] adlib: mark as insecure and deprecated.

2018-10-29 Thread Gerd Hoffmann
On Fri, Oct 26, 2018 at 05:23:37PM +0530, P J P wrote: > +-- On Fri, 26 Oct 2018, Paolo Bonzini wrote --+ > | Oh, thanks! I said I was dumb. :) So the fix is just this: > | > | diff --git a/hw/audio/fmopl.h b/hw/audio/fmopl.h > | index e7e578a48e..7199afaa3c 100644 > | --- a/hw/audio/fmopl.h > |

Re: [Qemu-devel] [PATCH 3/3] cirrus: mark as deprecated

2018-10-29 Thread Gerd Hoffmann
On Thu, Oct 25, 2018 at 09:37:58PM +0100, Daniel P. Berrangé wrote: > On Thu, Oct 25, 2018 at 10:52:56AM +0200, Gerd Hoffmann wrote: > > While being at it deprecate cirrus too. > > > > Reason (short version): use stdvga instead. > > Verbose version: > > https://www.kraxel.org/blog/2014/10/qemu

Re: [Qemu-devel] [PATCH 1/3] qdev: add deprecation_reason to DeviceClass

2018-10-29 Thread Gerd Hoffmann
On Thu, Oct 25, 2018 at 01:12:15PM +0200, Philippe Mathieu-Daudé wrote: > Hi Gerd, > > On 25/10/18 10:52, Gerd Hoffmann wrote: > > Simliar to deprecated machine types. > > "Similar" > > > Print a warning when creating a deprecated device. > > Add deprecation notice to -device help. > > > > TODO

Re: [Qemu-devel] [PATCH] SDL: set a hint to not bypass the window compositor

2018-10-29 Thread Gerd Hoffmann
On Wed, Oct 24, 2018 at 04:37:48PM +0200, Sebastian Krzyszkowiak wrote: > Without that, window effects in KWin get suspended as soon as any > qemu-sdl window becomes visible. While the SDL default makes sense > for games, it's not really suitable for QEMU. > > Signed-off-by: Sebastian Krzyszkowiak

Re: [Qemu-devel] [PATCH] usb: ohci: make num_ports to an unsinged integer

2018-10-29 Thread Gerd Hoffmann
On Mon, Oct 22, 2018 at 08:00:18PM -0700, Li Qiang wrote: > This can avoid setting OCHIState.num_ports to a negative num. Added to usb queue. thanks, Gerd

Re: [Qemu-devel] [PATCH] vga_int: remove unused function protype

2018-10-29 Thread Gerd Hoffmann
On Mon, Oct 22, 2018 at 04:00:53PM +0800, yuchen...@synology.com wrote: > From: yuchenlin > > Signed-off-by: yuchenlin > --- > hw/display/vga_int.h | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/hw/display/vga_int.h b/hw/display/vga_int.h > index 6e4fa48a79..55c418eab5 100644 > --- a/

Re: [Qemu-devel] [PATCH 0/2] hw: ccid-card-emulated: fix some resources leak

2018-10-29 Thread Gerd Hoffmann
On Fri, Oct 19, 2018 at 03:50:34AM -0700, Li Qiang wrote: > > Li Qiang (2): > hw: ccid-card-emulated: introduce clean_event_notifier > hw: ccid-card-emulated: cleanup resource when realize in error path Added to usb queue. thanks, Gerd

Re: [Qemu-devel] [RFC 00/48] Plugin support

2018-10-29 Thread Pavel Dovgalyuk
> From: Emilio G. Cota [mailto:c...@braap.org] > - 2-pass translation. Once a "TB translation" callback is called, > the plugin must know the span of the TB. We should not > force plugins to guess where the TB will end; that is strictly > QEMU's job, and can change any time. A TB is thus a se

Re: [Qemu-devel] [PATCH 3/3] memory-mapping: skip non-volatile memory regions in GuestPhysBlockList

2018-10-29 Thread Paolo Bonzini
On 03/10/2018 13:44, Marc-André Lureau wrote: > diff --git a/memory_mapping.c b/memory_mapping.c > index 775466f3a8..724dd0b417 100644 > --- a/memory_mapping.c > +++ b/memory_mapping.c > @@ -206,7 +206,8 @@ static void guest_phys_blocks_region_add(MemoryListener > *listener, > > /* we only

Re: [Qemu-devel] [PATCH 1/9] qom/user-creatable: add a few helper macros

2018-10-29 Thread Igor Mammedov
On Fri, 26 Oct 2018 12:13:21 -0300 Eduardo Habkost wrote: > On Mon, Oct 22, 2018 at 03:33:30PM +0100, Igor Mammedov wrote: > > On Wed, 12 Sep 2018 16:55:23 +0400 > > Marc-André Lureau wrote: > > > > > Improve a bit code readability. > > > > > > Signed-off-by: Marc-André Lureau > > > --- > >

Re: [Qemu-devel] [PATCH] vga_int: remove unused function protype

2018-10-29 Thread yuchenlin via Qemu-devel
On 2018-10-29 17:44, Gerd Hoffmann wrote: On Mon, Oct 22, 2018 at 04:00:53PM +0800, yuchen...@synology.com wrote: From: yuchenlin Signed-off-by: yuchenlin --- hw/display/vga_int.h | 1 - 1 file changed, 1 deletion(-) diff --git a/hw/display/vga_int.h b/hw/display/vga_int.h index 6e4fa48a79.

[Qemu-devel] [PATCH] migration: fix concurrent call of multifd_save_cleanup

2018-10-29 Thread Liang Li
Concurrent call of multifd_save_cleanup() is unsafe, it will lead to null pointer dereference. 'multifd_save_cleanup()' should not be called in multifd_new_send_channel_async(), move it to ram_save_cleanup() like other features do. Signed-off-by: Liang Li --- migration/migration.c | 5 - mig

Re: [Qemu-devel] [PATCH v7 04/20] target/mips: Add and integrate MXU decoding engine placeholder

2018-10-29 Thread Stefan Markovic
In that case, I guess this should be OK for now, as MXU support is initiated by Craig and this will be an easy add-on when he provide necessary information. Reviewed-by: Stefan Markovic On 28.10.18. 19:39, Aleksandar Markovic wrote: >> Subject: Re: [PATCH v7 04/20] target/mips: Add and integ

Re: [Qemu-devel] [PATCH v7 13/20] target/mips: Move MUL, S32M2I, S32I2M handling out of main MXU switch

2018-10-29 Thread Stefan Markovic
Following the patch 04/20 discussion: Reviewed-by: Stefan Markovic On 26.10.18. 11:45, Stefan Markovic wrote: > > On 24.10.18. 14:18, Aleksandar Markovic wrote: >> From: Aleksandar Markovic >> >> Move MUL, S32M2I, S32I2M handling out of switch. These are all >> instructions that do not depend

Re: [Qemu-devel] [PULL 0/9] Testing patches

2018-10-29 Thread Peter Maydell
On 26 October 2018 at 15:15, Fam Zheng wrote: > The following changes since commit 808ebd66e467f77c0d1f8c6346235f81e9c99cf2: > > Merge remote-tracking branch 'remotes/riscv/tags/riscv-for-master-3.1-sf0' > into staging (2018-10-25 17:41:03 +0100) > > are available in the Git repository at: > >

[Qemu-devel] could somebody who understands the block refcounting look at CID 1395870, CID 1395871?

2018-10-29 Thread Peter Maydell
Hi; could somebody who understands the block layer refcounting have a look at Coverity issues CID 1395870 and 1395871, please? In both cases, Coverity reports a use-after-free because it thinks that a sequence where a code path might (conditionally) end up calling blk_deref() twice could be freeing

Re: [Qemu-devel] [PULL 2/3] target/mips: Implement emulation of nanoMIPS EVA instructions

2018-10-29 Thread Peter Maydell
On 25 October 2018 at 21:19, Aleksandar Markovic wrote: > From: Dimitrije Nikolic > > Implement emulation of nanoMIPS EVA instructions. They are all > part of P.LS.E0 instruction pool, or one of its subpools. > > Reviewed-by: Stefan Markovic > Signed-off-by: Dimitrije Nikolic > Signed-off-by: A

Re: [Qemu-devel] [RFC 48/48] plugin: add a couple of very simple examples

2018-10-29 Thread Pavel Dovgalyuk
> From: Emilio G. Cota [mailto:c...@braap.org] > Signed-off-by: Emilio G. Cota > --- > plugin-examples/bbcount_avgsize_racy.c | 50 ++ > plugin-examples/mem_count_racy_both.c | 58 ++ > plugin-examples/Makefile | 31 ++ > 3 fi

Re: [Qemu-devel] bochs-display and the future of VGA support

2018-10-29 Thread Gerd Hoffmann
On Sun, Oct 28, 2018 at 01:40:29PM +0100, John Paul Adrian Glaubitz wrote: > Hi! > > I just happened to read Gerd Hoffmann's post on the bochs-display [1] driver > and was wondering what the future plans for VGA support are. > > Phoronix makes it sound like [2] that VGA support for guests is supp

Re: [Qemu-devel] [PULL V2 01/26] filter-rewriter: Add TCP state machine and fix memory leak in connection_track_table

2018-10-29 Thread Peter Maydell
On 19 October 2018 at 04:22, Jason Wang wrote: > From: Zhang Chen > > We add almost full TCP state machine in filter-rewriter, except > TCPS_LISTEN and some simplify in VM active close FIN states. > The reason for this simplify job is because guest kernel will track > the TCP status and wait 2MSL

Re: [Qemu-devel] [PATCH v9 2/6] monitor: resume the monitor earlier if needed

2018-10-29 Thread Marc-André Lureau
Hi On Wed, Oct 10, 2018 at 7:22 AM Peter Xu wrote: > > On Tue, Oct 09, 2018 at 12:54:37PM +0400, Marc-André Lureau wrote: > > Hi > > On Tue, Oct 9, 2018 at 10:28 AM Peter Xu wrote: > > > > > > Currently when QMP request queue full we won't resume the monitor until > > > we have completely handle

Re: [Qemu-devel] [PULL 2/3] target/mips: Implement emulation of nanoMIPS EVA instructions

2018-10-29 Thread Aleksandar Markovic
> From: Peter Maydell > Sent: Monday, October 29, 2018 11:57 AM > Subject: Re: [PULL 2/3] target/mips: Implement emulation of nanoMIPS EVA > instructions > > On 25 October 2018 at 21:19, Aleksandar Markovic > wrote: > > From: Dimitrije Nikolic > > > > Implement emulation of nanoMIPS EVA instru

[Qemu-devel] [PATCH] target/mips: Add two missing breaks for NM_LLWPE and NM_SCWPE decoder cases

2018-10-29 Thread Aleksandar Markovic
From: Aleksandar Markovic Coverity found two fallthroughs that lack break statements. Fix them. Signed-off-by: Aleksandar Markovic --- target/mips/translate.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target/mips/translate.c b/target/mips/translate.c index b8ace0b..813ad19 100644 -

Re: [Qemu-devel] [PATCH] vhost-user: fix qemu crash caused by failed backend

2018-10-29 Thread Liang Li
On Tue, Oct 02, 2018 at 01:54:25PM +0400, Marc-André Lureau wrote: > Hi > > On Thu, Sep 27, 2018 at 7:37 PM Liang Li wrote: > > > > During live migration, when stopping vhost-user device, 'vhost_dev_stop' > > will be called, 'vhost_dev_stop' will call a batch of 'vhost_user_read' > > and 'vhost_u

[Qemu-devel] [PATCH v8 04/20] target/mips: Add and integrate MXU decoding engine placeholder

2018-10-29 Thread Aleksandar Markovic
From: Aleksandar Markovic Provide the placeholder and add the invocation logic for MXU decoding engine. Reviewed-by: Stefan Markovic Signed-off-by: Aleksandar Markovic --- target/mips/translate.c | 8 1 file changed, 8 insertions(+) diff --git a/target/mips/translate.c b/target/mips

[Qemu-devel] [PATCH v8 00/20] target/mips: Add limited support for Ingenic's MXU ASE

2018-10-29 Thread Aleksandar Markovic
From: Aleksandar Markovic This patch set begins to add MXU ASE instruction support. v7->v8: - corrected several mistakes in MXU ASE overview note - add several clarifying comments - rebased to the latest code v6->v7: - move MXU_EN check to the main MXU decoding function - amend MXU

[Qemu-devel] [PATCH v8 01/20] target/mips: Introduce MXU registers

2018-10-29 Thread Aleksandar Markovic
From: Craig Janeczek Define and initialize the 16 MXU registers - 15 general computational register, and 1 control register). There is also a zero register, but it does not have any corresponding variable. Reviewed-by: Richard Henderson Signed-off-by: Craig Janeczek Signed-off-by: Aleksandar M

[Qemu-devel] [PATCH v8 05/20] target/mips: Add MXU decoding engine

2018-10-29 Thread Aleksandar Markovic
From: Aleksandar Markovic Add MXU decoding engine: add handlers for all instruction pools, and main decode handler. The handlers, for now, for the purpose of this patch, contain only sceleton in the form of a single switch statement. Reviewed-by: Stefan Markovic Signed-off-by: Aleksandar Markov

[Qemu-devel] [PATCH v8 06/20] target/mips: Add bit encoding for MXU accumulate add/sub 1-bit pattern 'aptn1'

2018-10-29 Thread Aleksandar Markovic
From: Aleksandar Markovic Add bit encoding for MXU accumulate add/subtract 1-bit pattern 'aptn1'. Reviewed-by: Stefan Markovic Signed-off-by: Aleksandar Markovic --- target/mips/translate.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/target/mips/translate.c b/target/mips/transla

[Qemu-devel] [PATCH v8 02/20] target/mips: Define a bit for MXU in insn_flags

2018-10-29 Thread Aleksandar Markovic
From: Craig Janeczek Define a bit for MXU in insn_flags. This is the first non-MIPS (third party) ASE supported in QEMU for MIPS, so it is placed in the section "bits 56-63: vendor-specific ASEs". Reviewed-by: Aleksandar Markovic Signed-off-by: Craig Janeczek Signed-off-by: Aleksandar Markovic

[Qemu-devel] [PATCH v8 10/20] target/mips: Add bit encoding for MXU operand getting pattern 'optn3'

2018-10-29 Thread Aleksandar Markovic
From: Craig Janeczek Add bit encoding for MXU operand getting pattern 'optn3'. Reviewed-by: Stefan Markovic Signed-off-by: Craig Janeczek Signed-off-by: Aleksandar Markovic --- target/mips/translate.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/target/mips/translate.c b/t

[Qemu-devel] [PATCH v8 07/20] target/mips: Add bit encoding for MXU accumulate add/sub 2-bit pattern 'aptn2'

2018-10-29 Thread Aleksandar Markovic
From: Craig Janeczek Add bit encoding for MXU accumulate add/subtract 2-bit pattern 'aptn2'. Reviewed-by: Stefan Markovic Signed-off-by: Craig Janeczek Signed-off-by: Aleksandar Markovic --- target/mips/translate.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/target/mips/transla

[Qemu-devel] [PATCH v8 03/20] target/mips: Amend MXU instruction opcodes

2018-10-29 Thread Aleksandar Markovic
From: Aleksandar Markovic Amend MXU instruction opcodes. Pool04 is actually only instruction OPC_MXU_S16MAD. Two cases within S16MAD are recognized by 1-bit subfield 'aptn1'. Reviewed-by: Stefan Markovic Signed-off-by: Aleksandar Markovic --- target/mips/translate.c | 160

[Qemu-devel] [PATCH v8 09/20] target/mips: Add bit encoding for MXU operand getting pattern 'optn2'

2018-10-29 Thread Aleksandar Markovic
From: Craig Janeczek Add bit encoding for MXU operand getting pattern 'optn2'. Reviewed-by: Stefan Markovic Signed-off-by: Craig Janeczek Signed-off-by: Aleksandar Markovic --- target/mips/translate.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/target/mips/translate.c b/target/

[Qemu-devel] [PATCH v8 11/20] target/mips: Add emulation of non-MXU MULL within MXU decoding engine

2018-10-29 Thread Aleksandar Markovic
From: Craig Janeczek Add emulation of non-MXU MULL within MXU decoding engine. Reviewed-by: Aleksandar Markovic Signed-off-by: Craig Janeczek Signed-off-by: Aleksandar Markovic --- target/mips/translate.c | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a

[Qemu-devel] [PATCH v8 12/20] target/mips: Add emulation of MXU instructions S32I2M and S32M2I

2018-10-29 Thread Aleksandar Markovic
From: Craig Janeczek Add support for emulating the S32I2M and S32M2I MXU instructions. This commit also contains utility functions for reading/writing to MXU registers. This is required for overall MXU instruction support. Reviewed-by: Aleksandar Markovic Signed-off-by: Craig Janeczek Signed-o

Re: [Qemu-devel] [RFC PATCH 00/21] Trace updates and plugin RFC

2018-10-29 Thread Alex Bennée
Pavel Dovgalyuk writes: >> From: Alex Bennée [mailto:alex.ben...@linaro.org] >> Pavel Dovgalyuk writes: >> >> >> From: Alex Bennée [mailto:alex.ben...@linaro.org] >> >> Pavel Dovgalyuk writes: >> >> >> >> >> From: Alex Bennée [mailto:alex.ben...@linaro.org] >> >> >> Any serious analysis tool

[Qemu-devel] [PATCH v8 08/20] target/mips: Add bit encoding for MXU execute add/sub pattern 'eptn2'

2018-10-29 Thread Aleksandar Markovic
From: Aleksandar Markovic Add bit encoding for MXU execute 2-bit add/subtract pattern 'eptn2'. Reviewed-by: Stefan Markovic Signed-off-by: Aleksandar Markovic --- target/mips/translate.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/target/mips/translate.c b/target/mips/translate.

[Qemu-devel] [PATCH v8 20/20] target/mips: Amend MXU ASE overview note

2018-10-29 Thread Aleksandar Markovic
From: Aleksandar Markovic Add prefix, suffix, operation descriptions, and other corrections and amendments to the comment that describes MXU ASE. Reviewed-by: Stefan Markovic Signed-off-by: Aleksandar Markovic --- target/mips/translate.c | 84 +++--

[Qemu-devel] [PATCH v8 14/20] target/mips: Add emulation of MXU instruction S8LDD

2018-10-29 Thread Aleksandar Markovic
From: Craig Janeczek Add support for emulating the S8LDD MXU instruction. Reviewed-by: Aleksandar Markovic Signed-off-by: Craig Janeczek Signed-off-by: Aleksandar Markovic --- target/mips/translate.c | 90 +++-- 1 file changed, 87 insertions(+), 3

[Qemu-devel] [PATCH v8 13/20] target/mips: Move MUL, S32M2I, S32I2M handling out of main MXU switch

2018-10-29 Thread Aleksandar Markovic
From: Aleksandar Markovic Move MUL, S32M2I, S32I2M handling out of switch. These are all instructions that do not depend on MXU_EN flag of MXU_CR. Reviewed-by: Stefan Markovic Signed-off-by: Aleksandar Markovic --- target/mips/translate.c | 41 +++-- 1 file

[Qemu-devel] [PATCH v8 19/20] target/mips: Move MXU_EN check one level higher

2018-10-29 Thread Aleksandar Markovic
From: Aleksandar Markovic Move MXU_EN check to the main MXU decoding function, to avoid code repetition. Reviewed-by: Stefan Markovic Signed-off-by: Aleksandar Markovic --- target/mips/translate.c | 509 ++-- 1 file changed, 238 insertions(+), 271 d

[Qemu-devel] [PATCH v8 15/20] target/mips: Add emulation of MXU instruction D16MUL

2018-10-29 Thread Aleksandar Markovic
From: Craig Janeczek Add support for emulating the D16MUL MXU instruction. Reviewed-by: Aleksandar Markovic Signed-off-by: Craig Janeczek Signed-off-by: Aleksandar Markovic --- target/mips/translate.c | 66 ++--- 1 file changed, 63 insertions(+), 3

[Qemu-devel] [PATCH v8 17/20] target/mips: Add emulation of MXU instructions Q8MUL and Q8MULSU

2018-10-29 Thread Aleksandar Markovic
From: Craig Janeczek Adds support for emulating the Q8MUL and Q8MULSU MXU instructions. Reviewed-by: Aleksandar Markovic Signed-off-by: Craig Janeczek Signed-off-by: Aleksandar Markovic --- target/mips/translate.c | 101 1 file changed, 94 ins

[Qemu-devel] [PATCH v8 16/20] target/mips: Add emulation of MXU instruction D16MAC

2018-10-29 Thread Aleksandar Markovic
From: Craig Janeczek Add support for emulating the D16MAC MXU instruction. Reviewed-by: Aleksandar Markovic Signed-off-by: Craig Janeczek Signed-off-by: Aleksandar Markovic --- target/mips/translate.c | 90 +++-- 1 file changed, 87 insertions(+), 3

[Qemu-devel] [PATCH v8 18/20] target/mips: Add emulation of MXU instructions S32LDD and S32LDDR

2018-10-29 Thread Aleksandar Markovic
From: Craig Janeczek Add support for emulating the S32LDD and S32LDDR MXU instructions. Reviewed-by: Aleksandar Markovic Signed-off-by: Craig Janeczek Signed-off-by: Aleksandar Markovic --- target/mips/translate.c | 54 ++--- 1 file changed, 47 ins

Re: [Qemu-devel] [PATCH 3/6] char: add a QEMU_CHAR_FEATURE_GCONTEXT flag

2018-10-29 Thread Marc-André Lureau
Hi On Wed, Oct 10, 2018 at 7:54 AM Peter Xu wrote: > > On Tue, Oct 09, 2018 at 05:12:48PM +0400, Marc-André Lureau wrote: > > The feature should be set if the chardev is able to switch > > GMainContext. Callers that want to put a chardev in a different thread > > context can/should check this cap

Re: [Qemu-devel] [PATCH v8 00/20] target/mips: Add limited support for Ingenic's MXU ASE

2018-10-29 Thread Aleksandar Markovic
> From: Aleksandar Markovic > Subject: [PATCH v8 00/20] target/mips: Add limited support for Ingenic's MXU > ASE > > From: Aleksandar Markovic > > This patch set begins to add MXU ASE instruction support. > Craig, do you have any comments/suggestions on this series? Regards, Aleksandar > v

[Qemu-devel] qemu3.0.0: Linux on non x86 CPUs run x86 executable

2018-10-29 Thread wj193102
Hi, everyone. When I have installed the QEMU3.0.0 in the Linux on non X86 CPUS, I want to use user space emulator to run X86 executable. So I get the document from the QEMU web page (QEMU document) . I find the section 5.3 and read the content. But I have some questions in the following:

Re: [Qemu-devel] [PATCH 2/6] monitor: accept chardev input from iothread

2018-10-29 Thread Marc-André Lureau
Hi On Wed, Oct 10, 2018 at 7:45 AM Peter Xu wrote: > > On Tue, Oct 09, 2018 at 05:12:47PM +0400, Marc-André Lureau wrote: > > Chardev backends may not handle safely IO events from concurrent > > threads. Better to wake up the chardev from the monitor IO thread if > > it's being used as the charde

Re: [Qemu-devel] [PATCH] target/mips: Support Toshiba specific three-operand MADD and MADDU

2018-10-29 Thread Aleksandar Markovic
> > From: Aleksandar Markovic > Subject: Re: [PATCH] target/mips: Support Toshiba specific three-operand MADD > and MADDU > > > From: Richard Henderson > > Sent: Tuesday, October 16, 2018 8:37 PM > > Subject: Re: [PATCH] target/mips: Support Toshiba specific three-operand > > MADD and > MADDU

Re: [Qemu-devel] [PULL 00/20] Trivial patches patches

2018-10-29 Thread Peter Maydell
On 26 October 2018 at 16:31, Laurent Vivier wrote: > The following changes since commit 808ebd66e467f77c0d1f8c6346235f81e9c99cf2: > > Merge remote-tracking branch 'remotes/riscv/tags/riscv-for-master-3.1-sf0' > into staging (2018-10-25 17:41:03 +0100) > > are available in the Git repository at:

Re: [Qemu-devel] [PATCH 4/6] monitor: check if chardev can switch gcontext for OOB

2018-10-29 Thread Marc-André Lureau
Hi On Wed, Oct 10, 2018 at 8:38 AM Peter Xu wrote: > > On Tue, Oct 09, 2018 at 05:12:49PM +0400, Marc-André Lureau wrote: > > Note: this patch will conflict with Peter "[PATCH v9 3/6] monitor: > > remove "x-oob", turn oob on by default", but can be trivially updated. > > > > Signed-off-by: Marc-A

[Qemu-devel] a64 simd decode in handle_vec_simd_shli()

2018-10-29 Thread Peter Maydell
Hi; Coverity is complaining (in CID 1396476) about a problem in the handle_vec_simd_shli() function, where we might dereference sli_op[] with a size that's greater than 3. It thinks size might be > 3 because we do a check if (size > 3 && !is_q) { unallocated_encoding(s); retu

Re: [Qemu-devel] [PATCH 6/9] qom/object: set globals when initializing object

2018-10-29 Thread Igor Mammedov
On Wed, 12 Sep 2018 16:55:28 +0400 Marc-André Lureau wrote: > Set globals for all objects, although only TYPE_DEVICE & > TYPE_USER_CREATABLE can have globals for now. > > Signed-off-by: Marc-André Lureau > --- > hw/core/qdev.c | 6 -- > qom/object.c | 2 ++ > 2 files changed, 2 insertion

Re: [Qemu-devel] [RFC PATCH 00/21] Trace updates and plugin RFC

2018-10-29 Thread Pavel Dovgalyuk
> From: Alex Bennée [mailto:alex.ben...@linaro.org] > Pavel Dovgalyuk writes: > > One more question about your trace points. > > In case of using trace point on every instruction execution, we may need > > accessing vCPU registers (including the flags). Are they valid in such > > cases? > > They

Re: [Qemu-devel] qemu3.0.0: Linux on non x86 CPUs run x86 executable

2018-10-29 Thread Alex Bennée
wj193102 writes: > Hi, everyone. >When I have installed the QEMU3.0.0 in the Linux on non X86 CPUS, I > want to use user space emulator to run X86 executable. So I get the document > from the QEMU web page (QEMU document) . > I find the section 5.3 and read the content. But I have som

[Qemu-devel] Transcript from KVM Forum Contributor Q&A Panel

2018-10-29 Thread Stefan Hajnoczi
The transcript of the KVM Forum Contributor Q&A Panel is available here: https://etherpad.net/p/KVMForum2018Panel The topics discussed included how to get big features upstream, email/patch workflow, how to discuss ideas with the community, Spectre/Meltdown, and the perspective of cloud providers

Re: [Qemu-devel] [PATCH 2/2] nvme: free cmbuf in nvme_exit

2018-10-29 Thread Philippe Mathieu-Daudé
On 29/10/18 7:29, Li Qiang wrote: This avoid a memory leak in unhotplug nvme device. Signed-off-by: Li Qiang Reviewed-by: Philippe Mathieu-Daudé --- hw/block/nvme.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hw/block/nvme.c b/hw/block/nvme.c index 359a06d0ad..09d7c90259 1006

Re: [Qemu-devel] a64 simd decode in handle_vec_simd_shli()

2018-10-29 Thread Richard Henderson
On 10/29/18 12:06 PM, Peter Maydell wrote: > I'm having difficulty figuring out where this check has come from; > it doesn't seem to match up with the pseudocode and in any case > I don't think size can ever be > 3. We calculate: > > int size = 32 - clz32(immh) - 1; > where immh is a 4 bit fie

Re: [Qemu-devel] a64 simd decode in handle_vec_simd_shli()

2018-10-29 Thread Philippe Mathieu-Daudé
On 29/10/18 13:06, Peter Maydell wrote: Hi; Coverity is complaining (in CID 1396476) about a problem in the handle_vec_simd_shli() function, where we might dereference sli_op[] with a size that's greater than 3. It thinks size might be > 3 because we do a check if (size > 3 && !is_q) {

Re: [Qemu-devel] a64 simd decode in handle_vec_simd_shli()

2018-10-29 Thread Peter Maydell
On 29 October 2018 at 12:32, Richard Henderson wrote: > On 10/29/18 12:06 PM, Peter Maydell wrote: >> I'm having difficulty figuring out where this check has come from; >> it doesn't seem to match up with the pseudocode and in any case >> I don't think size can ever be > 3. We calculate: >> >>

[Qemu-devel] [PULL 0/2] Vga 20181029 patches

2018-10-29 Thread Gerd Hoffmann
The following changes since commit b312532fd03413d0e6ae6767ec793a3e30f487b8: Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging (2018-10-19 19:01:07 +0100) are available in the git repository at: git://git.kraxel.org/qemu tags/vga-20181029-pull-reques

[Qemu-devel] [PULL 2/2] vga_int: remove unused function protype

2018-10-29 Thread Gerd Hoffmann
From: yuchenlin Signed-off-by: yuchenlin Reviewed-by: Philippe Mathieu-Daudé Message-id: 20181022080053.9379-1-yuchen...@synology.com Signed-off-by: Gerd Hoffmann --- hw/display/vga_int.h | 1 - 1 file changed, 1 deletion(-) diff --git a/hw/display/vga_int.h b/hw/display/vga_int.h index 6e4f

[Qemu-devel] [PULL 1/2] qxl: store channel id in qxl->id

2018-10-29 Thread Gerd Hoffmann
See qemu_spice_add_display_interface(), the console index is also used as channel id. So put that into the qxl->id field too. In typical use cases (one primary qxl-vga device, optionally one or more secondary qxl devices, no non-qxl display devices) this doesn't change anything. With this in pla

Re: [Qemu-devel] [PATCH] target/mips: Add two missing breaks for NM_LLWPE and NM_SCWPE decoder cases

2018-10-29 Thread Stefan Markovic
On 29.10.18. 12:15, Aleksandar Markovic wrote: > From: Aleksandar Markovic > > Coverity found two fallthroughs that lack break statements. Fix them. > > Signed-off-by: Aleksandar Markovic > --- > target/mips/translate.c | 2 ++ > 1 file changed, 2 insertions(+) Reviewed-by: Stefan Markovic

[Qemu-devel] [PATCH v2 0/6] monitor: misc fixes

2018-10-29 Thread Marc-André Lureau
Hi, Here is a small series of fixes for the monitor, mostly related to threading issues. v2: after Peter review - patch 2: fix resuming with oob=off - patch 4: keep MUX case explicit, improve commit message Marc-André Lureau (6): monitor: inline ambiguous helper functions monitor: accept c

[Qemu-devel] [PATCH v2 3/6] char: add a QEMU_CHAR_FEATURE_GCONTEXT flag

2018-10-29 Thread Marc-André Lureau
The feature should be set if the chardev is able to switch GMainContext. Callers that want to put a chardev in a different thread context can/should check this capabilities. Signed-off-by: Marc-André Lureau --- include/chardev/char.h | 3 +++ chardev/char.c | 11 +++ 2 files cha

[Qemu-devel] [PATCH v2 2/6] monitor: accept chardev input from iothread

2018-10-29 Thread Marc-André Lureau
Chardev backends may not handle safely IO events from concurrent threads. Better to wake up the chardev from the monitor IO thread if it's being used as the chardev context. Unify code paths by using a BH in all cases. Drop the now redundant aio_notify() call. Signed-off-by: Marc-André Lureau -

[Qemu-devel] [PATCH v2 1/6] monitor: inline ambiguous helper functions

2018-10-29 Thread Marc-André Lureau
The function were not named with "mon_iothread", or following the AIO vs GMainContext distinction. Inline them instead. Signed-off-by: Marc-André Lureau --- monitor.c | 14 ++ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/monitor.c b/monitor.c index 823b5a1099..07712

[Qemu-devel] [PATCH v2 6/6] monitor: avoid potential dead-lock when cleaning up

2018-10-29 Thread Marc-André Lureau
When a monitor is connected to a Spice chardev, the monitor cleanup can dead-lock: #0 0x7f43446637fd in __lll_lock_wait () at /lib64/libpthread.so.0 #1 0x7f434465ccf4 in pthread_mutex_lock () at /lib64/libpthread.so.0 #2 0x556dd79f22ba in qemu_mutex_lock_impl (mutex=0x556dd81c922

[Qemu-devel] [PATCH RFC v6 5/7] migration: fix the multifd code when receiving less channels

2018-10-29 Thread Fei Li
In our current code, when multifd is used during migration, if there is an error before the destination receives all new channels, the source keeps running, however the destination does not exit but keeps waiting until the source is killed deliberately. Fix this by simply killing the destination w

[Qemu-devel] [PATCH RFC v6 1/7] Fix segmentation fault when qemu_signal_init fails

2018-10-29 Thread Fei Li
When qemu_signal_init() fails in qemu_init_main_loop(), we return without setting an error. Its callers crash then when they try to report the error with error_report_err(). To avoid such segmentation fault, add a new Error parameter to make the call trace to propagate the err to the final caller

[Qemu-devel] [PATCH v3] milkymist-minimac2: Use qemu_log_mask(GUEST_ERROR) instead of error_report

2018-10-29 Thread Philippe Mathieu-Daudé
qemu_log_mask(GUEST_ERROR) is more appropriate: $ qemu -d help Log items (comma separated): guest_errorslog when the guest OS does something invalid (eg accessing a non-existent register) Signed-off-by: Philippe Mathieu-Daudé Acked-by: Michael Walle --- v3: Fixed format string (Peter

[Qemu-devel] [PATCH RFC v6 0/7] qemu_thread_create: propagate errors to callers to check

2018-10-29 Thread Fei Li
Hi, This idea comes from BiteSizedTasks, and this patch series implement the error checking of qemu_thread_create: make qemu_thread_create return a flag to indicate if it succeeded rather than failing with an error; make all callers check it. The first and the third patch fixes some segmentation

[Qemu-devel] [PATCH v2 5/6] monitor: prevent inserting new monitors after cleanup

2018-10-29 Thread Marc-André Lureau
Add a monitor_destroyed global to check if monitor_cleanup() has been already called. In this case, don't insert the new monitor in the list, but free it instead. Signed-off-by: Marc-André Lureau --- monitor.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/mo

[Qemu-devel] [PATCH RFC v6 4/7] migration: fix some segmentation faults when using multifd

2018-10-29 Thread Fei Li
When multifd is used during migration, a segmentaion fault will occur in the source when multifd_save_cleanup() is called again if the multifd_send_state has been freed in earlier error handling. This can happen when migrate_fd_connect() fails and multifd_fd_cleanup() is called, and then multifd_ne

[Qemu-devel] [PATCH RFC v6 2/7] qemu_init_vcpu: add a new Error parameter to propagate

2018-10-29 Thread Fei Li
This patch is to pave the way for a later patch as it is too long: "qemu_thread_create: propagate the error to callers to handle." The callers of qemu_init_vcpu() already passed the **errp to handle errors. In view of this, add a new Error parameter to all the functions called by qemu_init_vcpu()

[Qemu-devel] [PATCH RFC v6 6/7] migration: fix some error handling

2018-10-29 Thread Fei Li
Add error handling for qemu_ram_foreach_migratable_block() when it fails. Always call migrate_set_error() to set the error state without relying on whether multifd_save_cleanup() succeeds. As the passed &local_err is never used in multifd_save_cleanup(), remove it. Signed-off-by: Fei Li --- mig

[Qemu-devel] [PATCH RFC v6 3/7] qemu_thread_join: fix segmentation fault

2018-10-29 Thread Fei Li
To avoid the segmentation fault in qemu_thread_join(), just directly return when the QemuThread *thread failed to be created in either qemu-thread-posix.c or qemu-thread-win32.c. Signed-off-by: Fei Li Reviewed-by: Fam Zheng --- util/qemu-thread-posix.c | 3 +++ util/qemu-thread-win32.c | 2 +-

[Qemu-devel] [PATCH v2 4/6] monitor: check if chardev can switch gcontext for OOB

2018-10-29 Thread Marc-André Lureau
Not all backends are able to switch gcontext. Those backends cannot drive a OOB monitor (the monitor would then be blocking on main thread). For example, ringbuf, spice, or more esoteric input chardevs like braille or MUX. We currently forbid MUX because not all frontends are ready to run outside

[Qemu-devel] [PATCH RFC v6 7/7] qemu_thread_create: propagate the error to callers to handle

2018-10-29 Thread Fei Li
Make qemu_thread_create() return a Boolean to indicate if it succeeds rather than failing with an error. And add an Error parameter to hold the error message and let the callers handle it. Signed-off-by: Fei Li --- cpus.c | 45 ++- dump.c

Re: [Qemu-devel] [PATCH] hw/arm/virt: Set VIRT_COMPAT_3_0 compat

2018-10-29 Thread Peter Maydell
On 24 October 2018 at 12:25, Andrew Jones wrote: > On Wed, Oct 24, 2018 at 10:56:02AM +0200, Eric Auger wrote: >> We are missing the VIRT_COMPAT_3_0 definition and setting. >> Let's add them. >> >> Signed-off-by: Eric Auger >> --- >> hw/arm/virt.c | 4 >> 1 file changed, 4 insertions(+) >>

Re: [Qemu-devel] [PATCH v2] strongarm: mask off high[32:28] bits from dir and state registers

2018-10-29 Thread Peter Maydell
On 26 October 2018 at 08:30, P J P wrote: > From: Prasad J Pandit > > The high[32:28] bits of 'direction' and 'state' registers of > SA-1100/SA-1110 device are reserved. Setting them may lead to > OOB 's->handler[]' array access issue. Mask off [32:28] bits to > avoid it. There is no bit 32 in a

Re: [Qemu-devel] ?==?utf-8?q? ?==?utf-8?q? [PATCH 5/6] Determine the desired FPU mode

2018-10-29 Thread Stefan Markovic
exit() error codes are taken and left over from related kernel code. Will be set to 1 in next series version. Also, appropriate error messages printing will be added. Regards, Stefan Original Message Subject: Re: [Qemu-devel] [PATCH 5/6] Determine the desired FPU mode Date:

Re: [Qemu-devel] [PATCH 5/9] qom/globals: generalize object_property_set_globals()

2018-10-29 Thread Igor Mammedov
On Wed, 12 Sep 2018 16:55:27 +0400 Marc-André Lureau wrote: > Handle calls of object_property_set_globals() with any object type, > but only apply globals to TYPE_DEVICE & TYPE_USER_CREATABLE. > > Signed-off-by: Marc-André Lureau > --- > qom/globals.c | 22 ++ > 1 file chan

Re: [Qemu-devel] [PATCH 0/2] Deprecate the "collie" machine and Strongarm devices

2018-10-29 Thread Peter Maydell
On 27 October 2018 at 12:04, Guenter Roeck wrote: > On 10/26/18 3:12 AM, Peter Maydell wrote: >> Hi Guenter; there's a proposal here to deprecate (and eventually >> remove) the 'collie' board (strongarm) from QEMU. Is that one of >> the ones you're currently using in your automated testing of Linu

Re: [Qemu-devel] vhost-user devices work with chardev from different threads

2018-10-29 Thread Yury Kotov
29.10.2018, 09:46, "Marc-André Lureau" : > Hi > > On Mon, Oct 22, 2018 at 5:24 PM Yury Kotov wrote: > >>  Hi, >> >>  I examined vhost-user devices and found some chardev using strangeness. >> >>  Is it ok, that vhost-user's set_status do sync chardev io ops from KVM >> thread? >>  It seems tha

[Qemu-devel] [PULL 4/4] audio: use TYPE_MV88W8618_AUDIO instead of hardcoded string

2018-10-29 Thread Gerd Hoffmann
From: Mao Zhongyi Cc: Jan Kiszka Cc: Philippe Mathieu-Daudé Cc: Peter Maydell Signed-off-by: Mao Zhongyi Reviewed-by: Philippe Mathieu-Daudé Message-id: 20181022074050.19638-4-maozhon...@cmss.chinamobile.com Signed-off-by: Gerd Hoffmann --- include/hw/audio/wm8750.h | 1 + hw/arm/musicpa

[Qemu-devel] [PULL 0/4] Audio 20181029 patches

2018-10-29 Thread Gerd Hoffmann
The following changes since commit 285278ca785f5fa9a570927e1c0958a2ca2b2150: Merge remote-tracking branch 'remotes/famz/tags/testing-pull-request' into staging (2018-10-27 19:55:08 +0100) are available in the git repository at: git://git.kraxel.org/qemu tags/audio-20181029-pu

[Qemu-devel] [PULL 1/4] hw: AC97: make it more QOMconventional

2018-10-29 Thread Gerd Hoffmann
From: Li Qiang Signed-off-by: Li Qiang Reviewed-by: Philippe Mathieu-Daudé Message-id: 20181013060809.52496-1-liq...@163.com Signed-off-by: Gerd Hoffmann --- hw/audio/ac97.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/hw/audio/ac97.c b/hw/audio/ac97.c inde

[Qemu-devel] [PATCH v5 02/11] hw/m68k: implement ADB bus support for via

2018-10-29 Thread Mark Cave-Ayland
From: Laurent Vivier Co-developed-by: Mark Cave-Ayland Signed-off-by: Mark Cave-Ayland Signed-off-by: Laurent Vivier --- hw/misc/mac_via.c | 190 ++ include/hw/misc/mac_via.h | 7 ++ 2 files changed, 197 insertions(+) diff --git a/hw/misc

  1   2   3   4   >