Re: [Qemu-devel] [PATCH 4/5] tests/uefi-test-tools: add build scripts

2019-01-24 Thread Laszlo Ersek
On 01/23/19 17:13, Laszlo Ersek wrote: > FWIW, I've asked > > - both on edk2-devel, about adding .NOTPARALLEL to the generated inner > makefiles: > > "parallelism in the module-level, generated GNUmakefile's" > https://lists.01.org/pipermail/edk2-devel/2019-January/035463.html > > - and on

Re: [Qemu-devel] [PATCH v6 00/10] hw/m68k: add Apple Machintosh Quadra 800 machine

2019-01-24 Thread Thomas Huth
On 2018-11-02 16:22, Mark Cave-Ayland wrote: > (MCA: here's the latest version of the q800 patchset. I've hope that I've > addressed most of the comments, plus this will now boot into the Debian > installer correctly when applied to git master. Any update on this series? Why did it get stalled aga

Re: [Qemu-devel] [PATCH 0/3] WHPX introduce changes for Windows Insider SDK 17110

2019-01-24 Thread Frank Yang via Qemu-devel
Is this useful at all for the Android Emulator? Does it break backward compatibility for older Windows versions? On Thu, Jan 17, 2019 at 12:39 PM Stefan Weil wrote: > Am 14.03.2018 um 15:52 schrieb Justin Terry (VM) via Qemu-devel: > > This change set fixes two breaking changes that were introdu

Re: [Qemu-devel] [PATCH V10 4/4] docs: Added MAP_SYNC documentation

2019-01-24 Thread Eduardo Habkost
On Thu, Jan 24, 2019 at 07:21:03PM +0800, Yi Zhang wrote: > On 2019-01-23 at 12:50:50 -0200, Eduardo Habkost wrote: > > On Wed, Jan 23, 2019 at 11:00:02AM +0800, Zhang, Yi wrote: > > > From: Zhang Yi > > > > > > Signed-off-by: Zhang Yi > > > --- > > > docs/nvdimm.txt | 29 ++

Re: [Qemu-devel] [PATCH RFC 8/9] tests: Add OpenBSD image

2019-01-24 Thread Daniel P . Berrangé
On Thu, Jan 24, 2019 at 05:10:19PM +0100, Philippe Mathieu-Daudé wrote: > On 1/24/19 4:56 PM, Kamil Rytarowski wrote: > > On 24.01.2019 16:52, Philippe Mathieu-Daudé wrote: > >> On 8/16/17 9:21 AM, Fam Zheng wrote: > >>> The image is prepared following instructions as in: > >>> > >>> https://wiki.q

Re: [Qemu-devel] [PATCH v2] tests/vm: move images to $HOME/.cache/qemu-vm/images

2019-01-24 Thread Philippe Mathieu-Daudé
On 1/24/19 12:54 PM, Gerd Hoffmann wrote: > It's easier to move around the images then, by replacing the > subdirectory with a symlink. Allows to share the images between > multiple qemu checkouts for example. > > Signed-off-by: Gerd Hoffmann > --- > > Notes: > v2: use $HOME/.cache/qemu-vm/

Re: [Qemu-devel] [PATCH] file-posix: Cache lseek result for data regions

2019-01-24 Thread Kevin Wolf
Am 24.01.2019 um 17:18 hat Vladimir Sementsov-Ogievskiy geschrieben: > 24.01.2019 17:17, Kevin Wolf wrote: > > Depending on the exact image layout and the storage backend (tmpfs is > > konwn to have very slow SEEK_HOLE/SEEK_DATA), caching lseek results can > > save us a lot of time e.g. during a mi

[Qemu-devel] [PATCH v12 1/2] target/arm: Send interrupts on PMU counter overflow

2019-01-24 Thread Aaron Lindsay OS
Whenever we notice that a counter overflow has occurred, send an interrupt. This is made more reliable with the addition of a timer in a follow-on commit. Signed-off-by: Aaron Lindsay Reviewed-by: Richard Henderson --- target/arm/helper.c | 61 + 1 fi

[Qemu-devel] [PATCH v12 2/2] target/arm: Add a timer to predict PMU counter overflow

2019-01-24 Thread Aaron Lindsay OS
Make PMU overflow interrupts more accurate by using a timer to predict when they will overflow rather than waiting for an event to occur which allows us to otherwise check them. Signed-off-by: Aaron Lindsay Reviewed-by: Richard Henderson --- target/arm/cpu.c| 12 target/arm/cpu.h

Re: [Qemu-devel] [PATCH RFC 8/9] tests: Add OpenBSD image

2019-01-24 Thread Peter Maydell
On Thu, 24 Jan 2019 at 15:52, Philippe Mathieu-Daudé wrote: > After spending various hours trying to fix various issues on OpenBSD, I > notice that we never ran tests on this OS. When I was running tests on a custom OpenBSD VM rather than using the tests/vm one I'm pretty sure I used to run "make

Re: [Qemu-devel] [PATCH RFC 8/9] tests: Add OpenBSD image

2019-01-24 Thread Philippe Mathieu-Daudé
On 1/24/19 4:56 PM, Kamil Rytarowski wrote: > On 24.01.2019 16:52, Philippe Mathieu-Daudé wrote: >> On 8/16/17 9:21 AM, Fam Zheng wrote: >>> The image is prepared following instructions as in: >>> >>> https://wiki.qemu.org/Hosts/BSD >>> >>> Signed-off-by: Fam Zheng >>> --- >>> tests/vm/openbsd |

[Qemu-devel] [PATCH v12 0/2] More fully implement ARM PMUv3

2019-01-24 Thread Aaron Lindsay OS
Most of this patchset implementing the PMU has been merged already, but the interrupt-on-overflow behavior had some additional review comments. This most recent version fixes a type promotion issue and adds Richard's Reviewed-by's. Aaron Lindsay (2): target/arm: Send interrupts on PMU counter ov

Re: [Qemu-devel] [PATCH v5] log: Make glib logging go through QEMU

2019-01-24 Thread Markus Armbruster
Christophe Fergeau writes: > This commit adds a qemu_init_logging() helper which calls > g_log_set_default_handler() so that glib logs (g_log, g_warning, ...) > are handled similarly to other QEMU logs. This means they will get a > timestamp if timestamps are enabled, and they will go through the

Re: [Qemu-devel] [PATCH] file-posix: Cache lseek result for data regions

2019-01-24 Thread Vladimir Sementsov-Ogievskiy
24.01.2019 17:17, Kevin Wolf wrote: > Depending on the exact image layout and the storage backend (tmpfs is > konwn to have very slow SEEK_HOLE/SEEK_DATA), caching lseek results can > save us a lot of time e.g. during a mirror block job or qemu-img convert > with a fragmented source image (.bdrv_co

[Qemu-devel] [PATCH] hw: sd: set category of the sd memory card

2019-01-24 Thread kumar sourav
Sets the category of the sd memory card as DEVICE_CATEGORY_STORAGE. Devices should be assigned to one of DEVICE_CATEGORY_. Signed-off-by: kumar sourav --- hw/sd/sd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/sd/sd.c b/hw/sd/sd.c index d4356e9b73..aaab15f386 100644 --- a/hw/sd/sd

Re: [Qemu-devel] [PATCH] file-posix: Cache lseek result for data regions

2019-01-24 Thread Eric Blake
On 1/24/19 8:17 AM, Kevin Wolf wrote: > Depending on the exact image layout and the storage backend (tmpfs is > konwn to have very slow SEEK_HOLE/SEEK_DATA), caching lseek results can > save us a lot of time e.g. during a mirror block job or qemu-img convert > with a fragmented source image (.bdrv_

Re: [Qemu-devel] [RFC v2 06/38] plugin: add core code

2019-01-24 Thread Alex Bennée
Emilio G. Cota writes: > Some design requirements/goals: Also this commit breaks bisect-ability: 15:56:23 [alex@zen:~/l/q/qemu.git] (0138e1a5…)|BISECTING 2 + head -n 3 config.log # QEMU configure log Thu Jan 24 15:19:36 GMT 2019 # Configured with: './configure' '--disable-tools' '--di

Re: [Qemu-devel] [PATCH RFC 8/9] tests: Add OpenBSD image

2019-01-24 Thread Kamil Rytarowski
On 24.01.2019 16:52, Philippe Mathieu-Daudé wrote: > On 8/16/17 9:21 AM, Fam Zheng wrote: >> The image is prepared following instructions as in: >> >> https://wiki.qemu.org/Hosts/BSD >> >> Signed-off-by: Fam Zheng >> --- >> tests/vm/openbsd | 45 + >> 1

Re: [Qemu-devel] [PATCH] block: don't probe zeroes in bs->file by default on block_status

2019-01-24 Thread Eric Blake
On 1/24/19 9:39 AM, Kevin Wolf wrote: >>> >>> Hmm, and one more idea from Den: >>> >>> We can detect preallocated image, comparing allocated size of real file with >>> number of non-zero qcow2 refcounts. So, real allocation is much less than >>> allocation in qcow2 point of view, we'll enable lsee

Re: [Qemu-devel] [PATCH v11 1/2] target/arm: Send interrupts on PMU counter overflow

2019-01-24 Thread Aaron Lindsay OS
On Jan 23 15:37, Richard Henderson wrote: > On 1/23/19 1:32 PM, Aaron Lindsay OS wrote: > > +uint64_t overflow_mask = env->cp15.c9_pmcr & PMCRLC ? \ > > + INT64_MIN : INT32_MIN; > > With type promotion, this is the same as writing > > ? 0x80

Re: [Qemu-devel] [PATCH] block: don't probe zeroes in bs->file by default on block_status

2019-01-24 Thread Vladimir Sementsov-Ogievskiy
24.01.2019 18:39, Kevin Wolf wrote: > Am 24.01.2019 um 15:37 hat Vladimir Sementsov-Ogievskiy geschrieben: >> 23.01.2019 15:04, Vladimir Sementsov-Ogievskiy wrote: >>> 22.01.2019 21:57, Kevin Wolf wrote: Am 11.01.2019 um 12:40 hat Vladimir Sementsov-Ogievskiy geschrieben: > 11.01.2019 13:4

Re: [Qemu-devel] [PATCH] file-posix: Cache lseek result for data regions

2019-01-24 Thread Kevin Wolf
Am 24.01.2019 um 16:22 hat Vladimir Sementsov-Ogievskiy geschrieben: > 24.01.2019 18:11, Kevin Wolf wrote: > > Am 24.01.2019 um 15:40 hat Vladimir Sementsov-Ogievskiy geschrieben: > >> 24.01.2019 17:17, Kevin Wolf wrote: > >>> Depending on the exact image layout and the storage backend (tmpfs is >

Re: [Qemu-devel] [PATCH RFC 8/9] tests: Add OpenBSD image

2019-01-24 Thread Philippe Mathieu-Daudé
On 8/16/17 9:21 AM, Fam Zheng wrote: > The image is prepared following instructions as in: > > https://wiki.qemu.org/Hosts/BSD > > Signed-off-by: Fam Zheng > --- > tests/vm/openbsd | 45 + > 1 file changed, 45 insertions(+) > create mode 100755 tests

Re: [Qemu-devel] [PATCH] block: don't probe zeroes in bs->file by default on block_status

2019-01-24 Thread Vladimir Sementsov-Ogievskiy
24.01.2019 18:31, Kevin Wolf wrote: > Am 24.01.2019 um 15:36 hat Vladimir Sementsov-Ogievskiy geschrieben: >> 23.01.2019 19:33, Kevin Wolf wrote: >>> Am 23.01.2019 um 12:53 hat Vladimir Sementsov-Ogievskiy geschrieben: 22.01.2019 21:57, Kevin Wolf wrote: > Am 11.01.2019 um 12:40 hat Vladim

Re: [Qemu-devel] [PATCH] block: don't probe zeroes in bs->file by default on block_status

2019-01-24 Thread Kevin Wolf
Am 24.01.2019 um 15:36 hat Vladimir Sementsov-Ogievskiy geschrieben: > 23.01.2019 19:33, Kevin Wolf wrote: > > Am 23.01.2019 um 12:53 hat Vladimir Sementsov-Ogievskiy geschrieben: > >> 22.01.2019 21:57, Kevin Wolf wrote: > >>> Am 11.01.2019 um 12:40 hat Vladimir Sementsov-Ogievskiy geschrieben: > >

Re: [Qemu-devel] [RFC PATCH 1/3] tests/vm: call make check directly for netbsd/freebsd

2019-01-24 Thread Philippe Mathieu-Daudé
On Mon, Jan 21, 2019 at 11:53 PM Philippe Mathieu-Daudé wrote: > > On 1/21/19 6:15 PM, Alex Bennée wrote: > > The "make check" target calls check-qtest which has the appropriate > > system binaries as dependencies so we shouldn't need to do two steps > > of make invocation. Now I remember, this w

Re: [Qemu-devel] [PULL 0/3] Block patches

2019-01-24 Thread Peter Maydell
On Thu, 24 Jan 2019 at 10:29, Stefan Hajnoczi wrote: > > The following changes since commit f6b06fcceef465de0cf2514c9f76fe0192896781: > > Merge remote-tracking branch 'remotes/kraxel/tags/ui-20190121-pull-request' > into staging (2019-01-23 17:57:47 +) > > are available in the Git repositor

Re: [Qemu-devel] [PATCH 1/2] qemu-doc: Add nanoMIPS ISA information

2019-01-24 Thread Aleksandar Markovic
> From: Stefan Markovic > Sent: Wednesday, November 28, 2018 2:43 PM > To: qemu-devel@nongnu.org > Cc: Aleksandar Markovic; Stefan Markovic; Petar Jovanovic; > peter.mayd...@linaro.org; h...@tuxfamily.org; > hpous...@reactos.org; Paul > Burton; jho...@kernel.org > Subject: [PATCH 1/2] qemu-doc:

Re: [Qemu-devel] [PATCH v2 3/4] configure: Let SDL support be optional on OpenBSD

2019-01-24 Thread Gerd Hoffmann
On Thu, Jan 24, 2019 at 02:51:08PM +0100, Philippe Mathieu-Daudé wrote: > On 1/24/19 12:23 PM, Gerd Hoffmann wrote: > >> sdl) > >> if test "$sdl" = "no"; then > >> -error_exit "sdl not found or disabled, can not use sdl audio > >> driver" > >> +echo "WARN: sdl not found o

Re: [Qemu-devel] [PATCH] block: don't probe zeroes in bs->file by default on block_status

2019-01-24 Thread Kevin Wolf
Am 24.01.2019 um 15:37 hat Vladimir Sementsov-Ogievskiy geschrieben: > 23.01.2019 15:04, Vladimir Sementsov-Ogievskiy wrote: > > 22.01.2019 21:57, Kevin Wolf wrote: > >> Am 11.01.2019 um 12:40 hat Vladimir Sementsov-Ogievskiy geschrieben: > >>> 11.01.2019 13:41, Kevin Wolf wrote: > Am 10.01.20

Re: [Qemu-devel] [PATCH v4 0/3] tests: Reorganize MIPS TCG directories and files

2019-01-24 Thread Aleksandar Rikalo
> From: Aleksandar Markovic > Sent: Thursday, January 24, 2019 4:19 PM > To: qemu-devel@nongnu.org > Cc: aurel...@aurel32.net; Aleksandar Markovic; Aleksandar Rikalo > Subject: [PATCH v4 0/3] tests: Reorganize MIPS TCG directories and files > > From: Aleksandar Markovic > > Reorganize MIPS TCG di

Re: [Qemu-devel] [PATCH v4 01/16] virtio: split vhost vsock bits from virtio-pci

2019-01-24 Thread Michael S. Tsirkin
On Thu, Jan 24, 2019 at 04:08:50PM +0100, Thomas Huth wrote: > On 2019-01-24 16:06, Michael S. Tsirkin wrote: > > On Thu, Jan 24, 2019 at 04:04:01PM +0100, Thomas Huth wrote: > >> .. > >> Reviewed-by: Thomas Huth > > > > A bit late for that, I can't apply your tag retroactively, sorry. > > Oops,

Re: [Qemu-devel] [PATCH] file-posix: Cache lseek result for data regions

2019-01-24 Thread Vladimir Sementsov-Ogievskiy
24.01.2019 18:11, Kevin Wolf wrote: > Am 24.01.2019 um 15:40 hat Vladimir Sementsov-Ogievskiy geschrieben: >> 24.01.2019 17:17, Kevin Wolf wrote: >>> Depending on the exact image layout and the storage backend (tmpfs is >>> konwn to have very slow SEEK_HOLE/SEEK_DATA), caching lseek results can >>>

[Qemu-devel] [PATCH v4 0/3] tests: Reorganize MIPS TCG directories and files

2019-01-24 Thread Aleksandar Markovic
From: Aleksandar Markovic Reorganize MIPS TCG directories and files. Directories for DSP tests in system mode are deleted. They introduce more complexity in test structure compared to the value they add. Still, these tests may be moved somewhere else, let's say in a new acceptance test that wil

Re: [Qemu-devel] [PATCH v5] log: Make glib logging go through QEMU

2019-01-24 Thread Markus Armbruster
Christophe Fergeau writes: > Hey, > > On Thu, Jan 24, 2019 at 10:38:37AM +0100, Markus Armbruster wrote: >> Christophe Fergeau writes: >> >> > This commit adds a qemu_init_logging() helper which calls >> > g_log_set_default_handler() so that glib logs (g_log, g_warning, ...) >> > are handled si

[Qemu-devel] [PATCH v4 1/3] tests: tcg: mips: Move source files to new locations

2019-01-24 Thread Aleksandar Markovic
From: Aleksandar Markovic MIPS TCG test will be organized by ISAs and ASEs in future. Signed-off-by: Aleksandar Markovic --- .../mips/{mips32-dsp/absq_s_ph.c => user/ase/dsp/test_dsp_r1_absq_s_ph.c} | 0 .../mips/{mips32-dsp/absq_s_w.c => user/ase/dsp/test_dsp_r1_absq_s_w.c} | 0 .../tcg/mip

[Qemu-devel] [PATCH v4 2/3] tests: tcg: mips: Add two new Makefiles

2019-01-24 Thread Aleksandar Markovic
From: Aleksandar Markovic Add Makefiles for two new direcitories. Signed-off-by: Aleksandar Markovic --- tests/tcg/mips/user/ase/dsp/Makefile | 184 + tests/tcg/mips/user/isa/r5900/Makefile | 32 ++ 2 files changed, 216 insertions(+) create mode 100644 t

Re: [Qemu-devel] [PATCH]gtk-egl: Blend cursor buffer within a scaled viewport

2019-01-24 Thread Gerd Hoffmann
On Thu, Jan 24, 2019 at 10:11:24PM +0800, Chen Zhang wrote: > Hi, > > > On Jan 24, 2019, at 8:07 PM, Gerd Hoffmann wrote: > > > >> diff --git a/include/ui/egl-helpers.h b/include/ui/egl-helpers.h > >> index 3fc656a..63ffc2d 100644 > >> --- a/include/ui/egl-helpers.h > >> +++ b/include/ui/egl-hel

Re: [Qemu-devel] [PATCH] file-posix: Cache lseek result for data regions

2019-01-24 Thread Kevin Wolf
Am 24.01.2019 um 15:40 hat Vladimir Sementsov-Ogievskiy geschrieben: > 24.01.2019 17:17, Kevin Wolf wrote: > > Depending on the exact image layout and the storage backend (tmpfs is > > konwn to have very slow SEEK_HOLE/SEEK_DATA), caching lseek results can > > save us a lot of time e.g. during a mi

Re: [Qemu-devel] [PATCH v4 01/16] virtio: split vhost vsock bits from virtio-pci

2019-01-24 Thread Thomas Huth
On 2019-01-24 16:06, Michael S. Tsirkin wrote: > On Thu, Jan 24, 2019 at 04:04:01PM +0100, Thomas Huth wrote: >> .. >> Reviewed-by: Thomas Huth > > A bit late for that, I can't apply your tag retroactively, sorry. Oops, this has already been merged :-) ... so never mind. Thomas

Re: [Qemu-devel] [PATCH v4 02/16] virtio: split virtio input host bits from virtio-pci

2019-01-24 Thread Thomas Huth
On 2019-01-03 15:09, Juan Quintela wrote: > For consistency with other devices, rename > virtio_host_{initfn,pci_info} to virtio_input_host_{initfn,info}. > > Reviewed-by: Laurent Vivier > Signed-off-by: Juan Quintela > --- > default-configs/virtio.mak| 1 + > hw/virtio/Makefile.objs

Re: [Qemu-devel] [PATCH v4 01/16] virtio: split vhost vsock bits from virtio-pci

2019-01-24 Thread Michael S. Tsirkin
On Thu, Jan 24, 2019 at 04:04:01PM +0100, Thomas Huth wrote: > .. > Reviewed-by: Thomas Huth A bit late for that, I can't apply your tag retroactively, sorry. -- MST

Re: [Qemu-devel] [PULL 0/9] migration queue

2019-01-24 Thread Peter Maydell
On Wed, 23 Jan 2019 at 16:05, Dr. David Alan Gilbert (git) wrote: > > From: "Dr. David Alan Gilbert" > > The following changes since commit 9f33051abce238ab43a23125e237aac8b0931b88: > > Merge remote-tracking branch > 'remotes/kraxel/tags/ipxe-20190122-pull-request' into staging (2019-01-22 >

Re: [Qemu-devel] [PATCH v4 01/16] virtio: split vhost vsock bits from virtio-pci

2019-01-24 Thread Thomas Huth
On 2019-01-03 15:09, Juan Quintela wrote: > Reviewed-by: Laurent Vivier > Signed-off-by: Juan Quintela > > --- > > Updated copyright info > Also split virtio-pci.h bits > --- > hw/virtio/Makefile.objs | 3 ++ > hw/virtio/vhost-vsock-pci.c | 86 + > hw/v

Re: [Qemu-devel] [PATCH v1] s390x/pci: Warn when adding PCI devices without the 'zpci' feature

2019-01-24 Thread Thomas Huth
On 2019-01-22 16:11, David Hildenbrand wrote: > On 22.01.19 16:03, Christian Borntraeger wrote: >> >> >> On 22.01.2019 13:52, David Hildenbrand wrote: >>> On 22.01.19 13:44, Cornelia Huck wrote: On Tue, 22 Jan 2019 10:41:43 +0100 David Hildenbrand wrote: > We decided to always c

Re: [Qemu-devel] [RFC v2 09/38] cputlb: introduce get_page_addr_code_hostp

2019-01-24 Thread Alex Bennée
Emilio G. Cota writes: > This will be used by plugins to get the host address > of instructions. > > Signed-off-by: Emilio G. Cota > --- > include/exec/exec-all.h | 13 + > accel/tcg/cputlb.c | 14 +- > 2 files changed, 26 insertions(+), 1 deletion(-) > > diff --g

Re: [Qemu-devel] [PATCH] hw: edu: set category of the edu device

2019-01-24 Thread Thomas Huth
On 2019-01-24 15:46, kumar sourav wrote: > Sets the category of edu device as DEVICE_CATEGORY_MISC. > Devices should be assigned to one of DEVICE_CATEGORY_. > > Signed-off-by: kumar sourav > --- > hw/misc/edu.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/hw/misc/edu.c b/hw/mi

[Qemu-devel] [PATCH] hw: edu: set category of the edu device

2019-01-24 Thread kumar sourav
Sets the category of edu device as DEVICE_CATEGORY_MISC. Devices should be assigned to one of DEVICE_CATEGORY_. Signed-off-by: kumar sourav --- hw/misc/edu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/misc/edu.c b/hw/misc/edu.c index ceaf688bfb..91af452c9e 100644 --- a/hw/misc/

Re: [Qemu-devel] [RFC v2 04/38] translate-all: use cpu_in_exclusive_work_context() in tb_flush

2019-01-24 Thread Alex Bennée
Emilio G. Cota writes: > tb_flush will be called by the plugin module from a safe > work environment. Prepare for that. > > Suggested-by: Alex Bennée > Signed-off-by: Emilio G. Cota Reviewed-by: Alex Bennée > --- > accel/tcg/translate-all.c | 9 +++-- > 1 file changed, 7 insertions(+)

[Qemu-devel] [PULL 2/4] qapi: Eliminate indirection through qmp_event_get_func_emit()

2019-01-24 Thread Markus Armbruster
The qapi_event_send_FOO() functions emit events like this: QMPEventFuncEmit emit; emit = qmp_event_get_func_emit(); if (!emit) { return; } qmp = qmp_event_build_dict("FOO"); [put event arguments into @qmp...] emit(QAPI_EVENT_FOO, qmp); The value of qmp_event

Re: [Qemu-devel] [RFC v2 03/38] cpu: introduce cpu_in_exclusive_work_context()

2019-01-24 Thread Alex Bennée
Emilio G. Cota writes: > Suggested-by: Alex Bennée > Signed-off-by: Emilio G. Cota > --- > include/qom/cpu.h | 13 + > cpus-common.c | 2 ++ > 2 files changed, 15 insertions(+) > > diff --git a/include/qom/cpu.h b/include/qom/cpu.h > index 772cc960fe..fab18089db 100644 > ---

Re: [Qemu-devel] [RFC v2 01/38] trace: expand mem_info:size_shift to 3 bits

2019-01-24 Thread Alex Bennée
Emilio G. Cota writes: > This will allow us to trace 16B-long memory accesses. > > While at it, add some defines for the mem_info bits and simplify > trace_mem_get_info by making it a wrapper around trace_mem_build_info. > > Signed-off-by: Emilio G. Cota Reviewed-by: Alex Bennée > --- > tr

Re: [Qemu-devel] [RFC v2 15/38] tcg: let plugins instrument memory accesses

2019-01-24 Thread Alex Bennée
Emilio G. Cota writes: > XXX: store hostaddr from non-i386 TCG backends > XXX: what hostaddr to return for I/O accesses? > XXX: what hostaddr to return for cross-page accesses? Just a heads up this patch now clashes with changes that have been made to master. > > Here the trickiest feature is

[Qemu-devel] [PULL 1/4] qapi: Belatedly update docs for commit 9c2f56e9f9d

2019-01-24 Thread Markus Armbruster
Signed-off-by: Markus Armbruster Message-Id: <20181218182234.28876-2-arm...@redhat.com> Reviewed-by: Marc-André Lureau --- docs/devel/qapi-code-gen.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/devel/qapi-code-gen.txt b/docs/devel/qapi-code-gen.txt index 43bd85

Re: [Qemu-devel] [PATCH] file-posix: Cache lseek result for data regions

2019-01-24 Thread Vladimir Sementsov-Ogievskiy
24.01.2019 17:17, Kevin Wolf wrote: > Depending on the exact image layout and the storage backend (tmpfs is > konwn to have very slow SEEK_HOLE/SEEK_DATA), caching lseek results can > save us a lot of time e.g. during a mirror block job or qemu-img convert > with a fragmented source image (.bdrv_co

[Qemu-devel] [PULL 4/4] json: Fix % handling when not interpolating

2019-01-24 Thread Markus Armbruster
From: Christophe Fergeau Commit 8bca4613 added support for %% in json strings when interpolating, but in doing so broke handling of % when not interpolating. When parse_string() is fed a string token containing '%', it skips the '%' regardless of ctxt->ap, i.e. even it's not interpolating. If t

[Qemu-devel] [PULL 0/4] QAPI patches for 2019-01-24

2019-01-24 Thread Markus Armbruster
The following changes since commit f6b06fcceef465de0cf2514c9f76fe0192896781: Merge remote-tracking branch 'remotes/kraxel/tags/ui-20190121-pull-request' into staging (2019-01-23 17:57:47 +) are available in the Git repository at: git://repo.or.cz/qemu/armbru.git tags/pull-qapi-2019-01-2

[Qemu-devel] [PULL 3/4] qmp: Add examples to qom list, get, and set commands

2019-01-24 Thread Markus Armbruster
From: Wainer dos Santos Moschetta Added examples for the qom-list, qom-get, and qom-set commands in qapi misc JSON file. Signed-off-by: Wainer dos Santos Moschetta Message-Id: <20181228194442.3506-1-waine...@redhat.com> Reviewed-by: Markus Armbruster Signed-off-by: Markus Armbruster --- qapi

Re: [Qemu-devel] [PATCH] block: don't probe zeroes in bs->file by default on block_status

2019-01-24 Thread Vladimir Sementsov-Ogievskiy
23.01.2019 19:33, Kevin Wolf wrote: > Am 23.01.2019 um 12:53 hat Vladimir Sementsov-Ogievskiy geschrieben: >> 22.01.2019 21:57, Kevin Wolf wrote: >>> Am 11.01.2019 um 12:40 hat Vladimir Sementsov-Ogievskiy geschrieben: 11.01.2019 13:41, Kevin Wolf wrote: > Am 10.01.2019 um 14:20 hat Vladim

Re: [Qemu-devel] [PATCH] json: Fix % handling when not interpolating

2019-01-24 Thread Markus Armbruster
Christophe Fergeau writes: > commit 8bca4613 added support for %% in json strings when interpolating, > but in doing so, this broke handling of % when not interpolating as the > '%' is skipped in both cases. > This commit ensures we only try to handle %% when interpolating. > > Signed-off-by: Chr

Re: [Qemu-devel] [PATCH] block: don't probe zeroes in bs->file by default on block_status

2019-01-24 Thread Vladimir Sementsov-Ogievskiy
23.01.2019 15:04, Vladimir Sementsov-Ogievskiy wrote: > 22.01.2019 21:57, Kevin Wolf wrote: >> Am 11.01.2019 um 12:40 hat Vladimir Sementsov-Ogievskiy geschrieben: >>> 11.01.2019 13:41, Kevin Wolf wrote: Am 10.01.2019 um 14:20 hat Vladimir Sementsov-Ogievskiy geschrieben: > drv_co_block_st

Re: [Qemu-devel] [RFC PATCH v2 00/15] qapi: add #if pre-processor conditions to generated code (part 3)

2019-01-24 Thread Markus Armbruster
Markus Armbruster writes: > Marc-André posted v1 that relies on a QAPI schema language extension > 'top-unit' to permit splitting the generated code. Here is his cover > letter: > > The thrid and last part (of "[PATCH v2 00/54] qapi: add #if > pre-processor conditions to generated code")

Re: [Qemu-devel] [PATCH v2 7/9] target/mips: nanoMIPS: Fix branch handling

2019-01-24 Thread Aleksandar Rikalo
> From: Aleksandar Markovic > Sent: Wednesday, January 23, 2019 12:15 PM > To: qemu-devel@nongnu.org > Cc: aurel...@aurel32.net; Aleksandar Markovic; Aleksandar Rikalo > Subject: [PATCH v2 7/9] target/mips: nanoMIPS: Fix branch handling > > From: Stefan Markovic > > Fix nanoMIPS branch handling.

Re: [Qemu-devel] Consistency of iotests 093 and 136

2019-01-24 Thread Alberto Garcia
On Thu 24 Jan 2019 11:11:06 AM CET, Alberto Garcia wrote: > On Wed 23 Jan 2019 06:00:49 PM CET, Max Reitz wrote: >> Hi, >> >> 093 and 136 seem really flaky to me. I can reproduce that by running: > > That's interesting, I can make 093 fail quite easily now (I haven't > tested the other one yet), b

Re: [Qemu-devel] [PATCH v2 8/9] target/mips: Add I6500 core configuration

2019-01-24 Thread Aleksandar Rikalo
> From: Yongbok Kim > > Add I6500 core configuration. Note that this configuration is > supported only on best-effort basis due to the lack of certain > features in QEMU. > > Signed-off-by: Yongbok Kim > Signed-off-by: Aleksandar Markovic > --- Reviewed-by: Aleksandar Rikalo

Re: [Qemu-devel] [PATCH v2 6/9] disas: nanoMIPS: Amend DSP instructions related comments

2019-01-24 Thread Aleksandar Rikalo
> From: Aleksandar Markovic > > Amend some DSP instructions related comments. > > Signed-off-by: Aleksandar Markovic > > --- Reviewed-by: Aleksandar Rikalo

Re: [Qemu-devel] [PATCH v2 3/9] target/mips: nanoMIPS: Rename macros for extracting 3-bit-coded GPR numbers

2019-01-24 Thread Aleksandar Markovic
From: Aleksandar Markovic Sent: Wednesday, January 23, 2019 12:15 PM To: qemu-devel@nongnu.org Cc: aurel...@aurel32.net; Aleksandar Markovic; Aleksandar Rikalo Subject: [PATCH v2 3/9] target/mips: nanoMIPS: Rename macros for extracting 3-bit-coded GPR nu

[Qemu-devel] gdb run / pause broken for some debuggers

2019-01-24 Thread Lucien Anti-Spam via Qemu-devel
Hi gdbstub maintainers (CC: Luc Michel as he wrote the patch that probably caused this issue) I have found an issue with IDA Pro when moving to QEMU3.x where RUN/PAUSE has stopped working. I am pretty sure its to do with this debugger sending no thread-id with the vCont packet action That is tha

Re: [Qemu-devel] [PATCH v2 5/9] target/mips: Extend gen_scwp() functionality to support EVA

2019-01-24 Thread Aleksandar Rikalo
> From: Aleksandar Markovic > Sent: Wednesday, January 23, 2019 12:15 PM > To: qemu-devel@nongnu.org > Cc: aurel...@aurel32.net; Aleksandar Markovic; Aleksandar Rikalo > Subject: [PATCH v2 5/9] target/mips: Extend gen_scwp() functionality to > support EVA > > From: Aleksandar Markovic > > Extend

Re: [Qemu-devel] [PATCH v4 0/4] trace: make systemtap easier to use for simple logging

2019-01-24 Thread Stefan Hajnoczi
On Wed, Jan 23, 2019 at 12:00:12PM +, Daniel P. Berrangé wrote: > This is a followup to > > v1: https://lists.gnu.org/archive/html/qemu-devel/2019-01/msg04173.html > v2: https://lists.gnu.org/archive/html/qemu-devel/2019-01/msg04759.html > v3: https://lists.gnu.org/archive/html/qemu-devel/2

Re: [Qemu-devel] [PATCH v5 01/11] block/backup: simplify backup_incremental_init_copy_bitmap

2019-01-24 Thread Vladimir Sementsov-Ogievskiy
23.01.2019 17:36, Eric Blake wrote: > On 1/23/19 2:20 AM, Vladimir Sementsov-Ogievskiy wrote: > +hbitmap_set(job->copy_bitmap, cluster, last_cluster - cluster + 1); >>> >>> Why the +1? Shouldn't the division for last_cluster round up instead? >>> +

[Qemu-devel] [Bug 1813165] Re: KVM internal error. Suberror: 1 emulation failure

2019-01-24 Thread Thomas
** Description changed: Hello Devs. Having problems getting VM to run with qemu 3.1.0. - 2019-01-24 13:46:08.648+: starting up libvirt version: 4.10.0, qemu version: 3.1.0, kernel: 4.14.94, hostname: one.lordcritical.de + 2019-01-24 13:46:08.648+: starting up libvirt version: 4.

[Qemu-devel] [PATCH] file-posix: Cache lseek result for data regions

2019-01-24 Thread Kevin Wolf
Depending on the exact image layout and the storage backend (tmpfs is konwn to have very slow SEEK_HOLE/SEEK_DATA), caching lseek results can save us a lot of time e.g. during a mirror block job or qemu-img convert with a fragmented source image (.bdrv_co_block_status on the protocol layer can be c

Re: [Qemu-devel] [PATCH] tests/microbit-test: Add tests for nRF51 NVMC

2019-01-24 Thread Thomas Huth
On 2019-01-24 15:11, Stefan Hajnoczi wrote: > From: Steffen Görtz > > Signed-off-by: Steffen Görtz > Signed-off-by: Stefan Hajnoczi > --- > This resolves the conflict with Julia's UART test series due to > global_qtest removal. > > tests/microbit-test.c | 108 +

Re: [Qemu-devel] [PATCH] xlnx-zynqmp: Don't create rpu-cluster if there are no RPUs

2019-01-24 Thread Peter Maydell
On Mon, 21 Jan 2019 at 18:43, Peter Maydell wrote: > > If we aren't going to create any RPUs, then don't create the > rpu-cluster unit. This allows us to add an assertion to the > cluster object that it contains at least one CPU, which helps > to avoid bugs in creating clusters and putting CPUs in

Re: [Qemu-devel] [PATCH]gtk-egl: Blend cursor buffer within a scaled viewport

2019-01-24 Thread Chen Zhang via Qemu-devel
Hi, > On Jan 24, 2019, at 8:07 PM, Gerd Hoffmann wrote: > >> diff --git a/include/ui/egl-helpers.h b/include/ui/egl-helpers.h >> index 3fc656a..63ffc2d 100644 >> --- a/include/ui/egl-helpers.h >> +++ b/include/ui/egl-helpers.h >> @@ -28,6 +28,8 @@ void egl_fb_read(void *dst, egl_fb *src); >> voi

Re: [Qemu-devel] unknown keycodes `(unnamed)', please report to qemu-devel@nongnu.org

2019-01-24 Thread Daniel P . Berrangé
On Thu, Jan 24, 2019 at 08:34:50AM +, Burgess, Alison E wrote: > I am running Ubuntu 18.04 and I am sending this email because when > I try to run these series of commands in an executable file in > > > arm-none-eabi-as -mcpu=arm926ej-s -g ts.s -o ts.o > arm-none-eabi-gcc -c -mcpu=arm926ej-s

[Qemu-devel] [PATCH 1/4] aspeed/smc: fix default read value

2019-01-24 Thread Cédric Le Goater
0x should be returned for non implemented registers. Signed-off-by: Cédric Le Goater --- hw/ssi/aspeed_smc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/ssi/aspeed_smc.c b/hw/ssi/aspeed_smc.c index 1270842dcf0c..7af808c33c50 100644 --- a/hw/ssi/aspeed_smc.c +++

Re: [Qemu-devel] [PATCH] aspeed/smc: snoop SPI transfers to fake dummy cycles

2019-01-24 Thread Cédric Le Goater
On 1/24/19 2:24 PM, Peter Maydell wrote: > On Mon, 21 Jan 2019 at 15:49, Cédric Le Goater wrote: >> >> The m25p80 models dummy cycles using byte transfers. This works well >> when the transfers are initiated by the QEMU model of a SPI controller >> but when these are initiated by the OS, it breaks

Re: [Qemu-devel] unknown keycodes `(unnamed)', please report to qemu-devel@nongnu.org

2019-01-24 Thread Peter Maydell
On Thu, 24 Jan 2019 at 13:30, Burgess, Alison E wrote: > I am running Ubuntu 18.04 and I am sending this email because when I try to > run these series of commands in an executable file in > > > arm-none-eabi-as -mcpu=arm926ej-s -g ts.s -o ts.o > arm-none-eabi-gcc -c -mcpu=arm926ej-s -g t.c -o t.

Re: [Qemu-devel] [RFC PATCH v4 41/44] virtio: make virtio dependencies with Kconfig

2019-01-24 Thread Yang Zhong
On Thu, Jan 24, 2019 at 01:51:58PM +0100, Thomas Huth wrote: > On 2019-01-23 07:56, Yang Zhong wrote: > > Signed-off-by: Yang Zhong > > Reviewed-by: Thomas Huth > > --- > > default-configs/i386-softmmu.mak | 1 - > > default-configs/s390x-softmmu.mak | 1 - > > default-configs/virtio.mak

Re: [Qemu-devel] [PATCH v2 0/5] arm: microbit Non-Volatile Memory Controller

2019-01-24 Thread Peter Maydell
On Thu, 24 Jan 2019 at 13:38, Peter Maydell wrote: > > On Wed, 23 Jan 2019 at 21:23, Stefan Hajnoczi wrote: > > > > v2: > > * Add Patch 2 to call memory_region_flush_rom_device() from pflash devices > >[Peter] > > > > This series adds the Non-Volatile Memory Controller, which controls access

Re: [Qemu-devel] [PATCH] gdbstub: shutdown guest when the target is killed

2019-01-24 Thread KONRAD Frederic
Le 1/24/19 à 2:04 PM, Peter Maydell a écrit : On Thu, 24 Jan 2019 at 12:47, KONRAD Frederic wrote: Under MinGW when the target is killed no "W00" packet are received by GDB because gdbstub takes the "exit(0)" path. Why is this a problem? The gdb protocol documentation for the 'k' packet s

Re: [Qemu-devel] [RFC PATCH v4 41/44] virtio: make virtio dependencies with Kconfig

2019-01-24 Thread Paolo Bonzini
On 24/01/19 13:51, Thomas Huth wrote: > not fully converted yet: > > Exception: contradiction between clauses when setting VIRTIO_MMIO > make: *** No rule to make target `aarch64-softmmu/config-devices.mak', > needed by `config-all-devices.mak'. Stop. > > I think you temporarily have not to set

Re: [Qemu-devel] [PATCH v2] checkpatch: Don't emit spurious warnings about block comments

2019-01-24 Thread Peter Maydell
On Fri, 18 Jan 2019 at 17:06, Eric Blake wrote: > > On 1/18/19 10:50 AM, Peter Maydell wrote: > > In checkpatch we attempt to check for and warn about > > block comments which start with /* or /** followed by a > > non-blank. Unfortunately a bug in the regex meant that > > we would incorrectly war

Re: [Qemu-devel] [PATCH 2/2] iotest: fix 169: do not run qmp_cont in RUN_STATE_FINISH_MIGRATE

2019-01-24 Thread Vladimir Sementsov-Ogievskiy
24.01.2019 15:25, Vladimir Sementsov-Ogievskiy wrote: > qmp_cont fails if vm in RUN_STATE_FINISH_MIGRATE, so let's wait for > final RUN_STATE_POSTMIGRATE. Also, while being here, check qmp_cont > result. > > Reported-by: Max Reitz > Signed-off-by: Vladimir Sementsov-Ogievskiy > --- > tests/qem

[Qemu-devel] [PATCH] tests/microbit-test: Add tests for nRF51 NVMC

2019-01-24 Thread Stefan Hajnoczi
From: Steffen Görtz Signed-off-by: Steffen Görtz Signed-off-by: Stefan Hajnoczi --- This resolves the conflict with Julia's UART test series due to global_qtest removal. tests/microbit-test.c | 108 ++ 1 file changed, 108 insertions(+) diff --git a/tes

Re: [Qemu-devel] [PATCH V10 2/4] util/mmap-alloc: support MAP_SYNC in qemu_ram_mmap()

2019-01-24 Thread Michael S. Tsirkin
On Thu, Jan 24, 2019 at 10:15:24PM +0800, Yi Zhang wrote: > On 2019-01-23 at 10:04:01 -0500, Michael S. Tsirkin wrote: > > On Wed, Jan 23, 2019 at 10:59:45AM +0800, Zhang, Yi wrote: > > > From: Zhang Yi > > > > > > When a file supporting DAX is used as vNVDIMM backend, mmap it with > > > MAP_SYNC

Re: [Qemu-devel] [PATCH] target/arm: Don't clear supported PMU events when initializing PMCEID1

2019-01-24 Thread Peter Maydell
On Wed, 23 Jan 2019 at 19:59, Aaron Lindsay OS wrote: > > A bug was introduced during a respin of: > > commit 57a4a11b2b281bb548b419ca81bfafb214e4c77a > target/arm: Add array for supported PMU events, generate > PMCEID[01]_EL0 > > This patch introduced two calls to get_pmceid() du

Re: [Qemu-devel] [PATCH] aspeed/smc: snoop SPI transfers to fake dummy cycles

2019-01-24 Thread Peter Maydell
On Mon, 21 Jan 2019 at 15:49, Cédric Le Goater wrote: > > The m25p80 models dummy cycles using byte transfers. This works well > when the transfers are initiated by the QEMU model of a SPI controller > but when these are initiated by the OS, it breaks emulation. > > Snoop the SPI transfer to catch

Re: [Qemu-devel] [PULL v2 00/11] check-softfloat, fp-bench and clang compile fixes

2019-01-24 Thread Peter Maydell
On Wed, 23 Jan 2019 at 11:42, Alex Bennée wrote: > > The following changes since commit 952bc8b3c2cbba78261923a1e8ca55cda261dee9: > > Merge remote-tracking branch 'remotes/ericb/tags/pull-nbd-2019-01-21' into > staging (2019-01-22 17:56:21 +) > > are available in the Git repository at: > >

Re: [Qemu-devel] [PATCH v5 0/3] tests/microbit-test: Add UART device test

2019-01-24 Thread Peter Maydell
On Wed, 23 Jan 2019 at 12:08, Julia Suvorova wrote: > > v5: > * Replace g_assert with g_assert_* [Thomas, Alex] > * Increase the waiting time for an event [Thomas] > * Remove 'nowait' [Thomas] > * Rewrite uart_wait_for_event to use time difference instead of loop > v4: > * Repl

[Qemu-devel] [PATCH 4/4] aspeed/smc: snoop SPI transfers to fake dummy cycles

2019-01-24 Thread Cédric Le Goater
The m25p80 models dummy cycles using byte transfers. This works well when the transfers are initiated by the QEMU model of a SPI controller but when these are initiated by the OS, it breaks emulation. Snoop the SPI transfer to catch commands requiring dummy cycles and replace them with byte transf

[Qemu-devel] [Bug 1813165] [NEW] KVM internal error. Suberror: 1 emulation failure

2019-01-24 Thread Thomas
Public bug reported: Hello Devs. Having problems getting VM to run with qemu 3.1.0. 2019-01-24 13:46:08.648+: starting up libvirt version: 4.10.0, qemu version: 3.1.0, kernel: 4.14.94, hostname: one LC_ALL=C PATH=/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bi

[Qemu-devel] [PATCH 2/4] aspeed/smc: define registers for all possible CS

2019-01-24 Thread Cédric Le Goater
The model should expose one control register per possible CS. When testing the validity of the register number in the read operation, replace 's->num_cs' by 'ctrl->max_slaves' which represents the maximum number of flash devices a controller can handle. Signed-off-by: Cédric Le Goater --- hw/ssi

[Qemu-devel] [PATCH 0/4] aspeed/smc: add fast read support under User command mode.

2019-01-24 Thread Cédric Le Goater
Hello, When in the User command mode, the Aspeed SMC controller driver performs the dummy cycles of a fast read command using byte transfers, that is ony byte for eight cycles. But, the QEMU m25p80 models one dummy cycle with one byte transfer. To restore the correct number of cycles, this series

[Qemu-devel] [PATCH 3/4] aspeed/smc: Add dummy data register

2019-01-24 Thread Cédric Le Goater
The SMC controllers have a register containing the byte that will be used as dummy output. It can be modified by software. Signed-off-by: Cédric Le Goater Reviewed-by: Philippe Mathieu-Daudé --- hw/ssi/aspeed_smc.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/hw/

Re: [Qemu-devel] [RFC PATCH v4 26/44] kconfig: introduce kconfig files

2019-01-24 Thread Thomas Huth
On 2019-01-23 07:56, Yang Zhong wrote: > From: Paolo Bonzini > > The Kconfig files were generated mostly with this script: > > for i in `grep -ho CONFIG_[A-Z0-9_]* default-configs/* | sort -u`; do > set fnord `git grep -lw $i -- 'hw/*/Makefile.objs' ` > shift > if test $# = 1; then

Re: [Qemu-devel] [PATCH v2 3/4] configure: Let SDL support be optional on OpenBSD

2019-01-24 Thread Philippe Mathieu-Daudé
On 1/24/19 12:23 PM, Gerd Hoffmann wrote: >> sdl) >> if test "$sdl" = "no"; then >> -error_exit "sdl not found or disabled, can not use sdl audio driver" >> +echo "WARN: sdl not found or disabled, can not use sdl audio driver" >> +audio_drv_list=$(echo "$audio_drv_

Re: [Qemu-devel] [PATCH v2] MAINTAINERS: update microbit ARM board files

2019-01-24 Thread Peter Maydell
On Wed, 23 Jan 2019 at 18:36, Stefan Hajnoczi wrote: > > New source files were added without corresponding ./MAINTAINERS file > entries. Let's get things up to date. > > Reviewed-by: Thomas Huth > Signed-off-by: Stefan Hajnoczi > --- > v2: > * Simplify using wildcard patterns [Thomas] > --- >

<    1   2   3   4   >