Re: [Qemu-devel] [PATCH v9 02/27] gdbstub: Implement deatch (D pkt) with new infra

2019-05-20 Thread Jon Doron
Hi Alex, I implemented this change but i'm having second guesses on this, basically a NULL packet means the command is not supported (as far as i understand from the protocol documentation and implementation of GDB) That being said I think it's correct to send back a NULL packet if

[Qemu-devel] [Bug 1829498] Re: window 8 stuck during boot on Qemu

2019-05-20 Thread arseniy
My host kernel is 4.15.0-47. Windows 8 version is 6.3.9600. About KVM, i've got same problem in TCG mode. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1829498 Title: window 8 stuck during boot on

Re: [Qemu-devel] [PATCH] spapr: Print out extra hints when CAS negotiation of interrupt mode fails

2019-05-20 Thread David Gibson
On Thu, May 16, 2019 at 09:36:57AM +0200, Greg Kurz wrote: > Let's suggest to the user how the machine should be configured to allow > the guest to boot successfully. > > Suggested-by: Satheesh Rajendran > Signed-off-by: Greg Kurz Applied, thanks. > --- > hw/ppc/spapr_hcall.c |4 ++-- >

Re: [Qemu-devel] [PATCH] spapr: Add forgotten capability to migration stream

2019-05-20 Thread David Gibson
On Fri, May 17, 2019 at 07:14:30PM +0200, Greg Kurz wrote: > On Fri, 17 May 2019 14:18:23 +1000 > David Gibson wrote: > > > spapr machine capabilities are supposed to be sent in the migration stream > > so that we can sanity check the source and destination have compatible > > configuration.

Re: [Qemu-devel] [PATCH v3 1/8] migration: fix multifd_recv event typo

2019-05-20 Thread Wei Yang
On Wed, May 15, 2019 at 02:15:37PM +0200, Juan Quintela wrote: >It uses num in multifd_send(). Make it coherent. > >Signed-off-by: Juan Quintela Reviewed-by: Wei Yang >--- > migration/trace-events | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/migration/trace-events

Re: [Qemu-devel] [PATCH 1/2] target/ppc: Use vector variable shifts for VSL, VSR, VSRA

2019-05-20 Thread Aleksandar Markovic
On May 18, 2019 9:21 PM, "Richard Henderson" wrote: > > The gvec expanders take care of masking the shift amount > against the element width. > > Signed-off-by: Richard Henderson > --- > target/ppc/helper.h | 12 -- > target/ppc/int_helper.c | 37

Re: [Qemu-devel] [PATCH v3 2/8] migration-test: rename parameter to parameter_int

2019-05-20 Thread Wei Yang
On Wed, May 15, 2019 at 02:15:38PM +0200, Juan Quintela wrote: >We would need _str ones on the next patch. > >Signed-off-by: Juan Quintela Reviewed-by: Wei Yang >--- > tests/migration-test.c | 49 +- > 1 file changed, 25 insertions(+), 24 deletions(-) >

Re: [Qemu-devel] [PATCH v3 0/9] s390x: new guest features

2019-05-20 Thread Cornelia Huck
On Mon, 29 Apr 2019 05:02:41 -0400 Christian Borntraeger wrote: > Adding gen15. > > v2->v3: - merge deprecation patch into gen 15 patch > - fix comments > - use gen15a and gen15b instead of cpuid > v1->v2: - rework csske deprecation > - white space fixes > - also

Re: [Qemu-devel] [PATCH] linux-headers: Update linux headers to 5.2-rc1

2019-05-20 Thread Cornelia Huck
On Mon, 20 May 2019 08:25:52 +0200 Cédric Le Goater wrote: > Update the QEMU copy of the Linux headers to upstream 5.2-rc1 (linux > commit a188339ca5a3). > > Signed-off-by: Cédric Le Goater FWIW, I have a headers update queued in my s390-next branch as well, and I plan to send a pull req

[Qemu-devel] [PATCH] linux-headers: Update linux headers to 5.2-rc1

2019-05-20 Thread Cédric Le Goater
Update the QEMU copy of the Linux headers to upstream 5.2-rc1 (linux commit a188339ca5a3). Signed-off-by: Cédric Le Goater --- .../infiniband/hw/vmw_pvrdma/pvrdma_dev_api.h | 15 +- include/standard-headers/drm/drm_fourcc.h | 114 +++- include/standard-headers/linux/ethtool.h

Re: [Qemu-devel] [PATCH] linux-headers: Update linux headers to 5.2-rc1

2019-05-20 Thread Cédric Le Goater
On 5/20/19 9:03 AM, Cornelia Huck wrote: > On Mon, 20 May 2019 08:25:52 +0200 > Cédric Le Goater wrote: > >> Update the QEMU copy of the Linux headers to upstream 5.2-rc1 (linux >> commit a188339ca5a3). >> >> Signed-off-by: Cédric Le Goater > > FWIW, I have a headers update queued in my

Re: [Qemu-devel] [PATCH 0/2] target/ppc: make use of new gvec expanders

2019-05-20 Thread David Gibson
On Sat, May 18, 2019 at 12:14:28PM -0700, Richard Henderson wrote: > Based-on: <20190518190157.21255-1-richard.hender...@linaro.org> > Aka "tcg: misc gvec improvements". > > Since Mark's initial patches, we've added (or are adding) > generic support for variable vector shifts and bitsel.

Re: [Qemu-devel] [PATCH 0/2] target/ppc: make use of new gvec expanders

2019-05-20 Thread David Gibson
On Mon, May 20, 2019 at 02:01:42PM +1000, David Gibson wrote: > On Sat, May 18, 2019 at 12:14:28PM -0700, Richard Henderson wrote: > > Based-on: <20190518190157.21255-1-richard.hender...@linaro.org> > > Aka "tcg: misc gvec improvements". > > > > Since Mark's initial patches, we've added (or are

[Qemu-devel] [PATCH v2] [RFC] qcow2: add compression type feature

2019-05-20 Thread Denis Plotnikov
The patch adds some preparation parts for incompatible compression type feature into QCOW2 header that indicates that *all* compressed clusters must be (de)compressed using a certain compression type. It is implied that the compression type is set on the image creation and can be changed only

Re: [Qemu-devel] [PATCH v7 00/74] linux-user: Split do_syscall

2019-05-20 Thread Laurent Vivier
On 19/05/2019 22:36, Richard Henderson wrote: Based-on: <20190519201953.20161-1-richard.hender...@linaro.org> Aka "linux-user: path, clone, sparc, shmat fixes" Version 6 was https://lists.gnu.org/archive/html/qemu-devel/2019-01/msg04794.html Since v5, I've fixed the ioctl failure that Laurent

Re: [Qemu-devel] [PATCH] Fix phb_placement backwards compatibility

2019-05-20 Thread Laurent Vivier
On 20/05/2019 08:05, David Gibson wrote: > When we added support for NVLink2 passthrough devices, we changed the > phb_placement hook to handle the placement of NVLink2 bridges' specific > resources. For compatibility we use a version that doesn't do this > allocation for old machine types. > >

Re: [Qemu-devel] [PULL 01/36] spapr: Support NVIDIA V100 GPU with NVLink2

2019-05-20 Thread David Gibson
On Fri, May 17, 2019 at 07:37:04PM +0200, Laurent Vivier wrote: > On 26/04/2019 08:05, David Gibson wrote: > > From: Alexey Kardashevskiy > > > > NVIDIA V100 GPUs have on-board RAM which is mapped into the host memory > > space and accessible as normal RAM via an NVLink bus. The VFIO-PCI driver

Re: [Qemu-devel] [PATCH] Fix phb_placement backwards compatibility

2019-05-20 Thread Greg Kurz
On Mon, 20 May 2019 08:21:32 +0200 Laurent Vivier wrote: > On 20/05/2019 08:05, David Gibson wrote: > > When we added support for NVLink2 passthrough devices, we changed the > > phb_placement hook to handle the placement of NVLink2 bridges' specific > > resources. For compatibility we use a

Re: [Qemu-devel] [PATCH v7 62/74] linux-user: Split out rt_sigqueueinfo, rt_tgsigqueueinfo

2019-05-20 Thread Aleksandar Markovic
On May 19, 2019 11:25 PM, "Richard Henderson" wrote: > > This does drop the (questionable) siginfo_t printing. > But since we already do not handle more important things > in this area like sigset_t, this does not feel a loss. > What is the most questionable here is the reasoning “we don't

[Qemu-devel] [PATCH] Fix phb_placement backwards compatibility

2019-05-20 Thread David Gibson
When we added support for NVLink2 passthrough devices, we changed the phb_placement hook to handle the placement of NVLink2 bridges' specific resources. For compatibility we use a version that doesn't do this allocation for old machine types. However, because of the delay between when the patch

Re: [Qemu-devel] [PATCH v3 0/8] WIP: Multifd compression support

2019-05-20 Thread Wei Yang
On Wed, May 15, 2019 at 02:15:36PM +0200, Juan Quintela wrote: >v3: >- improve the code >- address David and Markus comments >- make compression code into methods > so we can add any other method ading just three functions > >Please review, as far as I know everything is ok now. > >Todo: Add zstd

Re: [Qemu-devel] [PATCH v3 3/8] tests: Add migration multifd test

2019-05-20 Thread Wei Yang
On Wed, May 15, 2019 at 02:15:39PM +0200, Juan Quintela wrote: >We set multifd-channels. > >Reviewed-by: Dr. David Alan Gilbert >Reviewed-by: Thomas Huth >Signed-off-by: Juan Quintela >--- > tests/migration-test.c | 48 ++ > 1 file changed, 48

Re: [Qemu-devel] [PATCH v3 5/8] migration: Add multifd-compress parameter

2019-05-20 Thread Wei Yang
On Wed, May 15, 2019 at 02:15:41PM +0200, Juan Quintela wrote: >Signed-off-by: Juan Quintela > >--- >Rename it to NONE >Fix typos (dave) >--- > hmp.c| 17 + > hw/core/qdev-properties.c| 13 + > include/hw/qdev-properties.h | 1 + >

Re: [Qemu-devel] [PATCH v2 10/13] tests/vm: freebsd autoinstall, using serial console

2019-05-20 Thread Thomas Huth
On 20/05/2019 07.26, Gerd Hoffmann wrote: > On Sun, May 19, 2019 at 12:55:09AM +0200, Philippe Mathieu-Daudé wrote: >> Hi Gerd, >> >> On 5/10/19 12:46 PM, Gerd Hoffmann wrote: >>> Instead of fetching the prebuilt image from patchew download the install >>> iso and prepare the image locally.

Re: [Qemu-devel] [Qemu-block] [PATCH v2] migration/dirty-bitmaps: change bitmap enumeration method

2019-05-20 Thread Vladimir Sementsov-Ogievskiy
20.05.2019 12:27, Kevin Wolf wrote: > Am 17.05.2019 um 12:22 hat Vladimir Sementsov-Ogievskiy geschrieben: >> 16.05.2019 22:03, John Snow wrote: >>> On 5/16/19 6:12 AM, Vladimir Sementsov-Ogievskiy wrote: But, on the other, hand, if we have implicitly-filtered node on target, we were

Re: [Qemu-devel] [PULL 0/6] 9p patches 2019-05-17

2019-05-20 Thread Peter Maydell
On Fri, 17 May 2019 at 19:32, Greg Kurz wrote: > > The following changes since commit f2a930ad8c433c5583e28ec803c8ca7cb2f31ab5: > > Merge remote-tracking branch 'remotes/mcayland/tags/qemu-sparc-20190517' > into staging (2019-05-17 15:46:37 +0100) > > are available in the Git repository at: >

[Qemu-devel] [Bug] Docs build fails at interop.rst

2019-05-20 Thread Aarushi Mehta
https://paste.fedoraproject.org/paste/kOPx4jhtUli---TmxSLrlw running python3-sphinx-2.0.1-1.fc31.noarch on Fedora release 31 (Rawhide) uname - a Linux iouring 5.1.0-0.rc6.git3.1.fc31.x86_64 #1 SMP Thu Apr 25 14:25:32 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux Reverting commmit

Re: [Qemu-devel] [PULL 0/2] target/alpha: Fix user-only floating-point exceptions

2019-05-20 Thread Peter Maydell
On Sun, 19 May 2019 at 15:37, Richard Henderson wrote: > > The following changes since commit 1b46b4daa6fbf45eddcf77877379a0afac341df9: > > Merge remote-tracking branch 'remotes/kraxel/tags/ui-20190517-pull-request' > into staging (2019-05-17 17:25:19 +0100) > > are available in the Git

[Qemu-devel] [PATCH v3 05/14] tests/vm: run test builds on snapshot

2019-05-20 Thread Gerd Hoffmann
The build script doesn't shutdown the guest VMs properly, which results in filesystem corruption and guest boot failures sooner or later. Use the --snapshot to run builds on a snapshot, That way killing the VM doesn't corrupt the base image. Signed-off-by: Gerd Hoffmann Tested-by: Thomas Huth

[Qemu-devel] [PATCH v3 03/14] tests/vm: send proxy environment variables over ssh

2019-05-20 Thread Gerd Hoffmann
Packages are fetched via proxy that way, if configured on the host. That might be required to pass firewalls, and it allows to route package downloads through a caching proxy server. Needs AcceptEnv setup in sshd_config on the guest side to work. Signed-off-by: Gerd Hoffmann Reviewed-by:

[Qemu-devel] [PATCH v3 02/14] tests/vm: python3 fixes

2019-05-20 Thread Gerd Hoffmann
Add proper unicode handling when processing strings. Also need to explicitly say we want int not float. Signed-off-by: Gerd Hoffmann --- tests/vm/basevm.py | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/vm/basevm.py b/tests/vm/basevm.py index

[Qemu-devel] [PATCH v3 06/14] tests/vm: proper guest shutdown

2019-05-20 Thread Gerd Hoffmann
When not running in snapshot mode ask the guest to poweroff and wait for this to finish instead of simply quitting qemu, so the guest can flush pending updates to disk. Signed-off-by: Gerd Hoffmann Tested-by: Thomas Huth --- tests/vm/basevm.py | 22 +++--- 1 file changed, 15

[Qemu-devel] [PATCH v3 07/14] tests/vm: add vm-boot-{ssh, serial}- targets

2019-05-20 Thread Gerd Hoffmann
For testing/troubleshooting convinience. make vm-boot-serial- Boot guest, with the serial console on stdio. make vm-boot-ssh- Boot guest, login via ssh. Signed-off-by: Gerd Hoffmann Tested-by: Thomas Huth --- tests/vm/Makefile.include | 19 +++ 1 file changed, 19

Re: [Qemu-devel] [PATCH v4 2/5] target/mips: Fix MSA instructions ST. on big endian host

2019-05-20 Thread Aleksandar Markovic
On Apr 2, 2019 3:47 PM, "Mateja Marjanovic" wrote: > > From: Mateja Marjanovic > > Fix the case when the host is a big endian machine, and change > the approach toward ST. instruction helpers. > > Signed-off-by: Mateja Marjanovic > --- Hello, Mateja. There is unfortunatelly still a slight

[Qemu-devel] [PATCH v3 11/14] tests/vm: freebsd autoinstall, using serial console

2019-05-20 Thread Gerd Hoffmann
Instead of fetching the prebuilt image from patchew download the install iso and prepare the image locally. Install to disk, using the serial console. Create qemu user, configure ssh login. Install packages needed for qemu builds. Note that freebsd package downloads are delivered as

Re: [Qemu-devel] [PATCH v4 5/5] target/mips: Refactor and fix INSERT. instructions

2019-05-20 Thread Mateja Marjanovic
On 19.5.19. 07:25, Aleksandar Markovic wrote: On Apr 2, 2019 3:49 PM, "Mateja Marjanovic" mailto:mateja.marjano...@rt-rk.com>> wrote: > > From: Mateja Marjanovic > > > The old version of the helper for the INSERT. MSA instructions > has been replaced

Re: [Qemu-devel] [PATCH] usb-tablet: fix serial compat property

2019-05-20 Thread Laurent Vivier
On 20/05/2019 10:18, Gerd Hoffmann wrote: > s/kbd/tablet/, fixes cut+paste bug. > > Cc: qemu-sta...@nongnu.org > Reported-by: Dr. David Alan Gilbert > Signed-off-by: Gerd Hoffmann > --- > hw/core/machine.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

Re: [Qemu-devel] [PATCH v2 12/15] kvm: Support KVM_CLEAR_DIRTY_LOG

2019-05-20 Thread Paolo Bonzini
On 20/05/19 05:08, Peter Xu wrote: > +s->manual_dirty_log_protect = > +kvm_check_extension(s, KVM_CAP_MANUAL_DIRTY_LOG_PROTECT2); > +if (s->manual_dirty_log_protect) { > +ret = kvm_vm_enable_cap(s, KVM_CAP_MANUAL_DIRTY_LOG_PROTECT2, 0, 1); > +if (ret) { > +

Re: [Qemu-devel] [PATCH 00/10] block: AioContext management, part 1

2019-05-20 Thread Kevin Wolf
Am 06.05.2019 um 19:17 hat Kevin Wolf geschrieben: > Recently, a few bugs were reported that resulted from an inconsistent > state regarding AioContexts. Block nodes can end up in different > contexts than their users expect - the AioContext of a node can even > change under the feet of a device

Re: [Qemu-devel] [PATCH] usb-tablet: fix serial compat property

2019-05-20 Thread Philippe Mathieu-Daudé
On 5/20/19 10:18 AM, Gerd Hoffmann wrote: > s/kbd/tablet/, fixes cut+paste bug. > > Cc: qemu-sta...@nongnu.org > Reported-by: Dr. David Alan Gilbert > Signed-off-by: Gerd Hoffmann > --- > hw/core/machine.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

Re: [Qemu-devel] [RISU v2 04/11] risu_reginfo_i386: implement arch-specific reginfo interface

2019-05-20 Thread Alex Bennée
Jan Bobek writes: > CPU-specific code in risu_reginfo_* is expected to define and export > the following symbols: > > - arch_long_opts, arch_extra_help, process_arch_opt > - reginfo_size > - reginfo_init > - reginfo_is_eq > - reginfo_dump, reginfo_dump_mismatch > > Make risu_reginfo_i386.c

Re: [Qemu-devel] [PULL 00/10] MIPS queue for May 19th, 2019

2019-05-20 Thread Peter Maydell
On Sun, 19 May 2019 at 11:52, Aleksandar Markovic wrote: > > From: Aleksandar Markovic > > The following changes since commit 1b46b4daa6fbf45eddcf77877379a0afac341df9: > > Merge remote-tracking branch 'remotes/kraxel/tags/ui-20190517-pull-request' > into staging (2019-05-17 17:25:19 +0100) >

Re: [Qemu-devel] [RISU v2 05/11] risu_i386: implement missing CPU-specific functions

2019-05-20 Thread Alex Bennée
Jan Bobek writes: > risu_i386.c is expected to implement the following functions: > > - advance_pc > - get_reginfo_paramreg, set_ucontext_paramreg > - get_risuop > - get_pc > > This patch adds the necessary code. We use EAX as the parameter > register and opcode "UD1 %xxx,%eax" for triggering

Re: [Qemu-devel] [PATCH v9 26/27] gdbstub: Add support to read a MSR for KVM target

2019-05-20 Thread Alex Bennée
Jon Doron writes: > Ah cool did not know about that I will look into it and perhaps can do > a different patchset just for this no need to add it on top of this > patchset Yes just drop these arch specific patches for your next iteration while you rework them for the target/ approach.

[Qemu-devel] [PATCH v3 12/14] tests/vm: netbsd autoinstall, using serial console

2019-05-20 Thread Gerd Hoffmann
Instead of fetching the prebuilt image from patchew download the install iso and prepare the image locally. Install to disk, using the serial console. Create qemu user, configure ssh login. Install packages needed for qemu builds. Signed-off-by: Gerd Hoffmann Reviewed-by: Kamil Rytarowski

[Qemu-devel] [PATCH v3 01/14] scripts: use git archive in archive-source

2019-05-20 Thread Gerd Hoffmann
Use git archive to create tarballs of qemu and submodules instead of cloning the repository and the submodules. This is a order of magnitude faster because it doesn't fetch the submodules from the internet each time the script runs. Signed-off-by: Gerd Hoffmann Tested-by: Thomas Huth ---

[Qemu-devel] [PATCH v3 13/14] tests/vm: fedora autoinstall, using serial console

2019-05-20 Thread Gerd Hoffmann
Download the install iso and prepare the image locally. Install to disk, using the serial console. Create qemu user, configure ssh login. Install packages needed for qemu builds. Yes, we have docker images for fedora. But for trouble-shooting it might be helpful to have a vm too. When vm

Re: [Qemu-devel] [PATCH v3 5/8] migration: Add multifd-compress parameter

2019-05-20 Thread Wei Yang
On Wed, May 15, 2019 at 02:15:41PM +0200, Juan Quintela wrote: >Signed-off-by: Juan Quintela > >--- >Rename it to NONE >Fix typos (dave) >--- > hmp.c| 17 + > hw/core/qdev-properties.c| 13 + > include/hw/qdev-properties.h | 1 + >

Re: [Qemu-devel] [PATCH v2 0/3] aspeed: cleanups and extensions

2019-05-20 Thread Cédric Le Goater
Hello, On 5/20/19 1:09 PM, Philippe Mathieu-Daudé wrote: > On 5/20/19 9:47 AM, Cédric Le Goater wrote: >> Hello, >> >> On 5/6/19 4:20 PM, Cédric Le Goater wrote: >>> Hello, >>> >>> Here is a series adding a couple of cleanups to the Aspeed SoCs to >>> prepare ground for extensions and new SoCs.

Re: [Qemu-devel] [PATCH] nvme: fix copy direction in DMA reads going to CMB

2019-05-20 Thread Kevin Wolf
Am 18.05.2019 um 09:39 hat Klaus Birkelund Jensen geschrieben: > `nvme_dma_read_prp` erronously used `qemu_iovec_*to*_buf` instead of > `qemu_iovec_*from*_buf` when the request involved the controller memory > buffer. > > Signed-off-by: Klaus Birkelund Jensen Thanks, applied to the block

Re: [Qemu-devel] [PATCH v4 03/11] block: Storage child access function

2019-05-20 Thread Vladimir Sementsov-Ogievskiy
10.04.2019 23:20, Max Reitz wrote: > For completeness' sake, add a function for accessing a node's storage > child, too. For filters, this is their filtered child; for non-filters, > this is bs->file. > > Some places are deliberately left unconverted: > - BDS opening/closing functions where

Re: [Qemu-devel] [RISU v2 01/11] Makefile: undefine the arch name symbol

2019-05-20 Thread Alex Bennée
Jan Bobek writes: > At least GCC defines the symbol "i386" to 1 to signal the target > platform. We need to use "i386" as an undefined symbol in order to > correctly include risu_reginfo_i386.h from risu.h. Add an -U option to > the build command to make sure the symbol remains undefined. > >

Re: [Qemu-devel] [PATCH v2 10/13] tests/vm: freebsd autoinstall, using serial console

2019-05-20 Thread Gerd Hoffmann
Hi, > > I'd vote to keep the current approach to overwrite "freebsd.img". It's a > > "cache" directory - if you want to have something persisten, Philippe, I > > think you should simply copy your image to a different location instead. > > My concern came when thinking about bisecting: /me

Re: [Qemu-devel] [RISU v2 07/11] test_i386: change syntax from nasm to gas

2019-05-20 Thread Alex Bennée
Jan Bobek writes: > This allows us to drop dependency on NASM and build the test image > with GCC only. Adds support for x86_64, too. ./risu --master -t run.out test_i386.bin and then: ./risu -t run.out test_i386.bin Gives: loading test image test_i386.bin... starting apprentice

Re: [Qemu-devel] [RISU v2 00/11] Support for i386/x86_64 with vector extensions

2019-05-20 Thread Alex Bennée
Jan Bobek writes: > This patch series adds support for i386 and x86_64 architectures to > RISU. Notably, vector registers (SSE, AVX, AVX-512) are supported for > verification of the apprentice. This is V2 of the series posted in > [1]. > > I decided not to drop the register definitions from

[Qemu-devel] [PATCH v3 00/14] tests/vm: serial console autoinstall, misc fixes.

2019-05-20 Thread Gerd Hoffmann
This patch series changes the way virtual machines for test builds are managed. They are created locally on the developer machine now. The installer is booted on the serial console and the scripts walks through the dialogs to install and configure the guest. That takes the download.patchew.org

[Qemu-devel] [PATCH v3 10/14] tests/vm: openbsd autoinstall, using serial console

2019-05-20 Thread Gerd Hoffmann
Instead of fetching the prebuilt image from patchew download the install iso and prepare the image locally. Install to disk, using the serial console. Create qemu user, configure ssh login. Install packages needed for qemu builds. Signed-off-by: Gerd Hoffmann --- tests/vm/openbsd | 158

Re: [Qemu-devel] [RFC PATCH 00/11] semihosting cleanup and re-factor

2019-05-20 Thread Alex Bennée
Alex Bennée writes: > Hi, > > This collects together some fixes from last weeks RFC clean-up patch > as well as a generalised version of the chardev console tweak I made > last week for testing/next. As it happens it only really made sense > for ARM and MIPs logging semihost calls but there is

Re: [Qemu-devel] [PATCH v4 2/5] target/mips: Fix MSA instructions ST. on big endian host

2019-05-20 Thread Mateja Marjanovic
On 20.5.19. 14:59, Aleksandar Markovic wrote: On Apr 2, 2019 3:47 PM, "Mateja Marjanovic" mailto:mateja.marjano...@rt-rk.com>> wrote: > > From: Mateja Marjanovic > > > Fix the case when the host is a big endian machine, and change > the approach toward

Re: [Qemu-devel] [PATCH] i386: Enable IA32_MISC_ENABLE MWAIT bit when exposing mwait/monitor

2019-05-20 Thread Paolo Bonzini
On 14/05/19 08:06, Wanpeng Li wrote: > From: Wanpeng Li > > The CPUID.01H:ECX[bit 3] ought to mirror the value of the MSR > IA32_MISC_ENABLE MWAIT bit and as userspace has control of them > both, it is userspace's job to configure both bits to match on > the initial setup. Queued, thanks.

Re: [Qemu-devel] [PATCH v2 13/15] qmp: Expose manual_dirty_log_protect via "query-kvm"

2019-05-20 Thread Paolo Bonzini
On 20/05/19 05:08, Peter Xu wrote: > Expose the new capability via "query-kvm" QMP command too so we know > whether that's turned on on the source VM when we want. > > Signed-off-by: Peter Xu Is this useful? We could I guess make a migration capability in order to benchmark with the old code,

Re: [Qemu-devel] [PATCH v2 14/15] hmp: Expose manual_dirty_log_protect via "info kvm"

2019-05-20 Thread Paolo Bonzini
On 20/05/19 05:08, Peter Xu wrote: > Signed-off-by: Peter Xu > --- > hmp.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/hmp.c b/hmp.c > index 56a3ed7375..f203a25740 100644 > --- a/hmp.c > +++ b/hmp.c > @@ -102,6 +102,8 @@ void hmp_info_kvm(Monitor *mon, const QDict *qdict) >

Re: [Qemu-devel] [PATCH v2 00/15] kvm/migration: support KVM_CLEAR_DIRTY_LOG

2019-05-20 Thread Paolo Bonzini
On 20/05/19 05:08, Peter Xu wrote: > This is v2 of the QEMU's KVM_CLEAR_DIRTY_LOG series. The major reason > for the repost is due to the new kvm capability recently introduced in > Linux 5.2-rc1 which is released just one day ago while the old cap is > obsolete now, so we'll need a linux header

Re: [Qemu-devel] [PATCH v2 03/15] migration: No need to take rcu during sync_dirty_bitmap

2019-05-20 Thread Paolo Bonzini
On 20/05/19 05:08, Peter Xu wrote: > cpu_physical_memory_sync_dirty_bitmap() has one RAMBlock* as > parameter, which means that it must be with RCU read lock held > already. Taking it again inside seems redundant. Removing it. > Instead comment on the functions about the RCU read lock. > >

Re: [Qemu-devel] [PATCH v2 11/15] kvm: Introduce slots lock for memory listener

2019-05-20 Thread Paolo Bonzini
On 20/05/19 05:08, Peter Xu wrote: > +/* Must be with slots_lock held */ Perhaps "Called with KVMMemoryListener slots_lock held."? Paolo > static KVMSlot *kvm_alloc_slot(KVMMemoryListener *kml)

Re: [Qemu-devel] [RISU v2 08/11] configure: add i386/x86_64 architectures

2019-05-20 Thread Alex Bennée
Jan Bobek writes: > Now that i386 and x86_64 architectures are supported by RISU, we want > to detect them and build RISU for them automatically. > > Suggested-by: Richard Henderson > Signed-off-by: Jan Bobek Reviewed-by: Alex Bennée > --- > configure | 10 ++ > 1 file changed, 6

Re: [Qemu-devel] [PULL 00/10] MIPS queue for May 19th, 2019

2019-05-20 Thread Aleksandar Markovic
On May 20, 2019 2:11 PM, "Peter Maydell" wrote: > > On Sun, 19 May 2019 at 11:52, Aleksandar Markovic > wrote: > > > > From: Aleksandar Markovic > > > > The following changes since commit 1b46b4daa6fbf45eddcf77877379a0afac341df9: > > > > Merge remote-tracking branch

Re: [Qemu-devel] [PATCH v9 24/27] gdbstub: Add another handler for setting qemu.sstep

2019-05-20 Thread Alex Bennée
Jon Doron writes: > On Wed, May 15, 2019 at 8:44 PM Alex Bennée wrote: >> >> >> Jon Doron writes: >> >> > Follow GDB general query/set packet conventions, qemu.sstep can now >> > be set with the following command as well: >> > gdb> maint packet Qqemu.sstep:Value >> >> I;m not sure about

[Qemu-devel] [PATCH v3 09/14] tests/vm: serial console support helpers

2019-05-20 Thread Gerd Hoffmann
Add a bunch of helpers to talk to the guest using the serial console. Also drop the hard-coded -serial parameter for the vm so QEMUMachine.set_console() actually works. Signed-off-by: Gerd Hoffmann Tested-by: Thomas Huth --- tests/vm/basevm.py | 85

[Qemu-devel] [PATCH v3 08/14] tests/vm: add DEBUG=1 to help text

2019-05-20 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann Reviewed-by: Philippe Mathieu-Daudé Tested-by: Thomas Huth --- tests/vm/Makefile.include | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/vm/Makefile.include b/tests/vm/Makefile.include index 47084d5717c6..a018288b061c 100644 ---

Re: [Qemu-devel] [PATCH v7 00/74] linux-user: Split do_syscall

2019-05-20 Thread Aleksandar Markovic
On May 20, 2019 11:43 AM, "Peter Maydell" wrote: > > On Sun, 19 May 2019 at 21:39, Richard Henderson > wrote: > > > > Based-on: <20190519201953.20161-1-richard.hender...@linaro.org> > > Aka "linux-user: path, clone, sparc, shmat fixes" > > > > Version 6 was > >

Re: [Qemu-devel] [PATCH v2 0/2] Add pseudo /proc/hardware and /proc/cpuinfo

2019-05-20 Thread Philippe Mathieu-Daudé
On 5/17/19 3:31 PM, Laurent Vivier wrote: > They are used by some package setup scripts to set the default configuration. > > v2: rebase > > Laurent Vivier (2): > linux-user: add pseudo /proc/cpuinfo for sparc > linux-user: add pseudo /proc/hardware for m68k > > linux-user/syscall.c | 27

Re: [Qemu-devel] [PATCH v2 0/3] aspeed: cleanups and extensions

2019-05-20 Thread Philippe Mathieu-Daudé
On 5/20/19 9:47 AM, Cédric Le Goater wrote: > Hello, > > On 5/6/19 4:20 PM, Cédric Le Goater wrote: >> Hello, >> >> Here is a series adding a couple of cleanups to the Aspeed SoCs to >> prepare ground for extensions and new SoCs. >> >> Thanks, >> >> C. >> >> Changes since v1: >> >> - moved enum

Re: [Qemu-devel] [PATCH v2 10/13] tests/vm: freebsd autoinstall, using serial console

2019-05-20 Thread Philippe Mathieu-Daudé
On 5/20/19 9:14 AM, Thomas Huth wrote: > On 20/05/2019 07.26, Gerd Hoffmann wrote: >> On Sun, May 19, 2019 at 12:55:09AM +0200, Philippe Mathieu-Daudé wrote: >>> Hi Gerd, >>> >>> On 5/10/19 12:46 PM, Gerd Hoffmann wrote: Instead of fetching the prebuilt image from patchew download the install

Re: [Qemu-devel] [RISU v2 10/11] risu_reginfo_i386: replace xfeature constants with symbolic names

2019-05-20 Thread Alex Bennée
Jan Bobek writes: > The original code used "magic numbers", which made it unclear in > some places. Include a reference to the Intel manual where the > constants' meaning is discussed. > > Signed-off-by: Jan Bobek Reviewed-by: Alex Bennée > --- > risu_reginfo_i386.c | 48

[Qemu-devel] [PATCH v3 04/14] tests/vm: use ssh with pty unconditionally

2019-05-20 Thread Gerd Hoffmann
Allways ask ssh to run with a pseudo terminal. Not having a terminal causes problems now and then. Signed-off-by: Gerd Hoffmann Tested-by: Thomas Huth --- tests/vm/basevm.py | 13 - 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/tests/vm/basevm.py

Re: [Qemu-devel] [PATCH v9 20/27] gdbstub: Implement target halted (? pkt) with new infra

2019-05-20 Thread Alex Bennée
Jon Doron writes: > On Wed, May 15, 2019 at 8:20 PM Alex Bennée wrote: >> >> >> Jon Doron writes: >> >> > Signed-off-by: Jon Doron >> > --- >> > gdbstub.c | 36 ++-- >> > 1 file changed, 26 insertions(+), 10 deletions(-) >> > >> > diff --git a/gdbstub.c

[Qemu-devel] [PATCH v3 14/14] tests/vm: ubuntu.i386: apt proxy setup

2019-05-20 Thread Gerd Hoffmann
Configure apt proxy so package downloads can be cached and can pass firewalls. Signed-off-by: Gerd Hoffmann Reviewed-by: Philippe Mathieu-Daudé --- tests/vm/ubuntu.i386 | 4 1 file changed, 4 insertions(+) diff --git a/tests/vm/ubuntu.i386 b/tests/vm/ubuntu.i386 index

Re: [Qemu-devel] [PATCH 0/8] nvme: v1.3, sgls, metadata and new 'ocssd' device

2019-05-20 Thread Kevin Wolf
Am 17.05.2019 um 10:42 hat Klaus Birkelund Jensen geschrieben: > Hi, > > This series of patches contains a number of refactorings to the emulated > nvme device, adds additional features, such as support for metadata and > scatter gather lists, and bumps the supported NVMe version to 1.3. >

Re: [Qemu-devel] [PATCH v2 2/2] iotests: test external snapshot with bitmap copying

2019-05-20 Thread Vladimir Sementsov-Ogievskiy
18.05.2019 4:31, John Snow wrote: > > > On 5/17/19 11:21 AM, Vladimir Sementsov-Ogievskiy wrote: >> This test shows that external snapshots and incremental backups are >> friends. >> >> Signed-off-by: Vladimir Sementsov-Ogievskiy >> --- >> tests/qemu-iotests/254 | 52

Re: [Qemu-devel] [PATCH v2 1/3] lsi53c895a: hide 53c895a registers in 53c810

2019-05-20 Thread Paolo Bonzini
On 17/05/19 16:12, Mark Cave-Ayland wrote: >> Initially I implemented it exactly as you suggest, via mask. But then >> I thought that memory_region_init_alias makes aliasing more obvious. >> I don't have a strong opinion on this one though. >> >> @Paolo, what do you think? > My general feeling is

Re: [Qemu-devel] [PATCH v1 3/5] s390x/tcg: Implement VECTOR FIND ELEMENT NOT EQUAL

2019-05-20 Thread David Hildenbrand
On 17.05.19 19:56, Richard Henderson wrote: > On 5/15/19 1:31 PM, David Hildenbrand wrote: >> Similar to VECTOR FIND ELEMENT EQUAL, however the search also stops on >> any inequality. A match for inequality seems to have precedence over >> a match for zero, because both elements have to be zero.

Re: [Qemu-devel] [PATCH] Fix phb_placement backwards compatibility

2019-05-20 Thread Cédric Le Goater
On 5/20/19 8:05 AM, David Gibson wrote: > When we added support for NVLink2 passthrough devices, we changed the > phb_placement hook to handle the placement of NVLink2 bridges' specific > resources. For compatibility we use a version that doesn't do this > allocation for old machine types. > >

Re: [Qemu-devel] QEMU on OpenBSD is broken?

2019-05-20 Thread Gerd Hoffmann
Hi, > > qemu-system-arm: cannot set up guest memory 'ram': Cannot allocate memory > > Broken pipe > > How much memory is trying to be allocated here? > > The default maximum data size is set to 768MB. If there is a requirement to > go beyond > that then the default has to be adjusted in

Re: [Qemu-devel] [PATCH] spapr: Add forgotten capability to migration stream

2019-05-20 Thread Greg Kurz
On Mon, 20 May 2019 16:14:32 +1000 David Gibson wrote: > On Fri, May 17, 2019 at 07:14:30PM +0200, Greg Kurz wrote: > > On Fri, 17 May 2019 14:18:23 +1000 > > David Gibson wrote: > > > > > spapr machine capabilities are supposed to be sent in the migration stream > > > so that we can sanity

Re: [Qemu-devel] [RFC] hw/core/bus.c: Only the main system bus can have no parent

2019-05-20 Thread Damien Hedde
On 5/16/19 11:19 AM, Peter Maydell wrote: > On Thu, 16 May 2019 at 06:37, Markus Armbruster wrote: >> >> Peter Maydell writes: >> >>> In commit 80376c3fc2c38fdd453 in 2010 we added a workaround for >>> some qbus buses not being connected to qdev devices -- if the >>> bus has no parent object

Re: [Qemu-devel] [RFC PATCH] QEMU may write to system_memory before guest starts

2019-05-20 Thread Yury Kotov
It's to detect those cases in the future, yes. 17.05.2019, 21:25, "Eduardo Habkost" : > My memory is failing here: do we still need to fix a bug where > there are unexpected writes to system_memory, or this is just a > request to include a mechanism to help us detect those cases in > the future?

[Qemu-devel] [Bug 1829682] Re: QEMU PPC SYSTEM regression - 3.1.0 and GIT - Fail to boot AIX

2019-05-20 Thread Ivan Warren via Qemu-devel
** Tags added: ppc64 -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1829682 Title: QEMU PPC SYSTEM regression - 3.1.0 and GIT - Fail to boot AIX Status in QEMU: New Bug description: Built

Re: [Qemu-devel] [PATCH] usb-tablet: fix serial compat property

2019-05-20 Thread Dr. David Alan Gilbert
* Gerd Hoffmann (kra...@redhat.com) wrote: > s/kbd/tablet/, fixes cut+paste bug. > > Cc: qemu-sta...@nongnu.org > Reported-by: Dr. David Alan Gilbert > Signed-off-by: Gerd Hoffmann Reviewed-by: Dr. David Alan Gilbert > --- > hw/core/machine.c | 2 +- > 1 file changed, 1 insertion(+), 1

Re: [Qemu-devel] [PATCH v1 1/5] s390x/tcg: Implement VECTOR FIND ANY ELEMENT EQUAL

2019-05-20 Thread David Hildenbrand
On 17.05.19 18:16, Richard Henderson wrote: > On 5/15/19 1:31 PM, David Hildenbrand wrote: >> +#define DEF_VFAE(BITS) >>\ >> +static int vfae##BITS(void *v1, const void *v2, const void *v3, uint8_t m5) >> > > > First, because this

Re: [Qemu-devel] aspeed qemu question

2019-05-20 Thread Wim Vervoorn
Hello Cédric, It was not yet my intention to have this patch included in the qemu repo so I didn't pay attention to checking the indentation etc. So I misunderstood your suggestion. I am sorry about that. I will address your remarks in a new patch. Besides this I have another question. First

Re: [Qemu-devel] [PATCH v2 0/3] aspeed: cleanups and extensions

2019-05-20 Thread Cédric Le Goater
Hello, On 5/6/19 4:20 PM, Cédric Le Goater wrote: > Hello, > > Here is a series adding a couple of cleanups to the Aspeed SoCs to > prepare ground for extensions and new SoCs. > > Thanks, > > C. > > Changes since v1: > > - moved enum defining the Aspeed controller names under aspeed_soc.h >

[Qemu-devel] [PATCH] usb-tablet: fix serial compat property

2019-05-20 Thread Gerd Hoffmann
s/kbd/tablet/, fixes cut+paste bug. Cc: qemu-sta...@nongnu.org Reported-by: Dr. David Alan Gilbert Signed-off-by: Gerd Hoffmann --- hw/core/machine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/core/machine.c b/hw/core/machine.c index 5d046a43e3d2..eb34f53a85b0

Re: [Qemu-devel] [PATCH v1 2/5] s390x/tcg: Implement VECTOR FIND ELEMENT EQUAL

2019-05-20 Thread David Hildenbrand
On 17.05.19 19:42, Richard Henderson wrote: > On 5/17/19 9:47 AM, Richard Henderson wrote: >> first_equal = n; >> first_zero = n; >> for (i = n - 1; i >= 0; --i) { >> if (data1 == data2) { >> first_equal = i; >> } >> if (data1 == 0) { >>

Re: [Qemu-devel] [Qemu-block] [PATCH v2] migration/dirty-bitmaps: change bitmap enumeration method

2019-05-20 Thread Kevin Wolf
Am 17.05.2019 um 12:22 hat Vladimir Sementsov-Ogievskiy geschrieben: > 16.05.2019 22:03, John Snow wrote: > > On 5/16/19 6:12 AM, Vladimir Sementsov-Ogievskiy wrote: > >> But, on the other, hand, if we have implicitly-filtered node on target, we > >> were doing wrong thing anyway, > >> as

Re: [Qemu-devel] [PATCH v7 00/74] linux-user: Split do_syscall

2019-05-20 Thread Peter Maydell
On Sun, 19 May 2019 at 21:39, Richard Henderson wrote: > > Based-on: <20190519201953.20161-1-richard.hender...@linaro.org> > Aka "linux-user: path, clone, sparc, shmat fixes" > > Version 6 was > https://lists.gnu.org/archive/html/qemu-devel/2019-01/msg04794.html > > Since v5, I've fixed the ioctl

Re: [Qemu-devel] [Qemu-block] [PATCH] nvme: add Get/Set Feature Timestamp support

2019-05-20 Thread Kevin Wolf
Am 18.05.2019 um 03:49 hat Heitke, Kenneth geschrieben: > > > On 5/17/2019 12:24 AM, Klaus Birkelund wrote: > > On Fri, May 17, 2019 at 07:35:04AM +0200, Klaus Birkelund wrote: > > > Hi Kenneth, > > > > > > On Thu, May 16, 2019 at 05:24:47PM -0600, Heitke, Kenneth wrote: > > > > Hi Klaus, thank

Re: [Qemu-devel] [PATCH v4 2/2] vfio-ccw: support async command subregion

2019-05-20 Thread Cornelia Huck
On Tue, 7 May 2019 17:47:33 +0200 Cornelia Huck wrote: > A vfio-ccw device may provide an async command subregion for > issuing halt/clear subchannel requests. If it is present, use > it for sending halt/clear request to the device; if not, fall > back to emulation (as done today). > >

Re: [Qemu-devel] [PATCH v2 1/2] hw: report invalid disable-legacy|modern usage for virtio-1-only devs

2019-05-20 Thread Daniel P . Berrangé
On Fri, May 17, 2019 at 04:01:29PM -0300, Eduardo Habkost wrote: > Hi, > > Sorry for taking so long to look at this more closely: > > On Fri, Feb 15, 2019 at 10:32:38AM +, Daniel P. Berrangé wrote: > > A number of virtio devices (gpu, crypto, mouse, keyboard, tablet) only > > support the

Re: [Qemu-devel] [PATCH v2 0/2] block/file-posix: Fix unaligned O_DIRECT block status

2019-05-20 Thread Kevin Wolf
Am 15.05.2019 um 06:15 hat Max Reitz geschrieben: > The user-visible problem: > $ echo > foo > $ qemu-img map --image-opts driver=file,filename=foo,cache.direct=on > Offset Length Mapped to File > qemu-img: block/io.c:2093: bdrv_co_block_status: Assertion `*pnum && >

  1   2   3   4   >