Re: [Qemu-devel] [RFC v5 0/2] virtio: introduce `info virtio' hmp command

2017-12-14 Thread Jan Dakinevich
On Thu, 14 Dec 2017 12:05:19 +0100 Cornelia Huck wrote: > On Tue, 12 Dec 2017 16:54:50 +0300 > Jan Dakinevich wrote: > > > I am going to reanimate works under this QMP/HMP. First of all, it > > could be meaningful to settle what output would

[Qemu-devel] [Bug 1738283] Re: 'Less than' (<), 'more than' (>), and 'pipe' (|) can't be typed via VNC

2017-12-14 Thread Michal Nowak
Wondering if it's a SUSE-specific problem: https://build.opensuse.org/package/view_file/Virtualization/qemu/0026 -Fix-tigervnc-long-press-issue.patch?expand=1 -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU.

Re: [Qemu-devel] [PATCH for-2.12 2/2] net: Remove the deprecated -tftp, -bootp, -redir and -smb options

2017-12-14 Thread Thomas Huth
Hi Peter, On 11.12.2017 23:04, Peter Maydell wrote: > On 7 December 2017 at 18:02, Thomas Huth wrote: >> These options likely do not work as expected as soon as the user >> tries to use more than one network interface at once. The parameters >> have been marked as deprecated

Re: [Qemu-devel] [PATCH v3 1/1] s390-ccw-virtio: allow for systems larger that 7.999TB

2017-12-14 Thread Cornelia Huck
On Thu, 14 Dec 2017 14:26:17 +0100 David Hildenbrand wrote: > On 14.12.2017 14:21, Cornelia Huck wrote: > > On Mon, 11 Dec 2017 13:21:46 +0100 > > Christian Borntraeger wrote: > > > >> KVM does not allow memory regions > KVM_MEM_MAX_NR_PAGES,

Re: [Qemu-devel] [PATCH 3/4] hw/registerfields: add 64-bit extract/deposit macros

2017-12-14 Thread Philippe Mathieu-Daudé
Hi Francisco, On 12/13/2017 06:37 PM, francisco iglesias wrote: > On 13 December 2017 at 06:17, Philippe Mathieu-Daudé > wrote: [...] >> /* Extract a field from an array of registers */ [...] >> +#define FIELD_DP64(storage, reg, field, val) ({ >> \ >> +struct { >> \ >> +

Re: [Qemu-devel] [PATCH v4 2/6] vhost: Simplify ring verification checks

2017-12-14 Thread Igor Mammedov
On Wed, 13 Dec 2017 18:08:03 + "Dr. David Alan Gilbert (git)" wrote: > From: "Dr. David Alan Gilbert" > > vhost_verify_ring_mappings() were used to verify that > rings are still accessible and related memory hasn't > been moved after flatview is

[Qemu-devel] [PATCH v2 03/15] imx_fec: Change queue flushing heuristics

2017-12-14 Thread Andrey Smirnov
In current implementation, packet queue flushing logic seem to suffer from a deadlock like scenario if a packet is received by the interface before before Rx ring is initialized by Guest's driver. Consider the following sequence of events: 1. A QEMU instance is started against a TAP

[Qemu-devel] [PATCH v2 09/15] imx_fec: Use correct length for packet size

2017-12-14 Thread Andrey Smirnov
Use 'frame_size' instead of 'len' when calling qemu_send_packet(), failing to do so results in malformed packets send in case when that packed is fragmented into multiple DMA transactions. Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé

Re: [Qemu-devel] [PATCH] vhost: fix crash on virtio_error while device stop

2017-12-14 Thread Ilya Maximets
On 14.12.2017 17:31, Ilya Maximets wrote: > One update for the testing scenario: > > No need to kill OVS. The issue reproducible with simple 'del-port' > and 'add-port'. virtio driver in guest could crash on both operations. > Most times it crashes in my case on 'add-port' after deletion. > >

Re: [Qemu-devel] [PATCH v1] s390x/tcg: don't include z13 features in the qemu model

2017-12-14 Thread Cornelia Huck
On Wed, 13 Dec 2017 18:15:12 +0100 David Hildenbrand wrote: > As Cornelia noticed, -cpu qemu will not boot on a z12 machine. Don't > enable z13 features as default for now (as we are emulating a z12 in > TCG for now). > > Signed-off-by: David Hildenbrand >

[Qemu-devel] [PULL 2/2] tests: test-hmp: print command execution result

2017-12-14 Thread Dr. David Alan Gilbert (git)
From: Vadim Galitsyn Provide HMP monitor command execution result as it would be seen by user who established an HMP monitor session. Currently many commands may silently fail without any sign of that. This patch let this info to be printed once test is running

[Qemu-devel] [PULL 1/2] hmp-commands: Remove the deprecated usb_add and usb_del

2017-12-14 Thread Dr. David Alan Gilbert (git)
From: Thomas Huth It's easy to use device_add and device_del as replacement instead. The usb_add and usb_del commands are deprecated since QEMU 2.10, and nobody complained that they are still needed, so let's get rid of them now to make the HMP interface a little bit less

Re: [Qemu-devel] [PATCH v5 06/28] migration: allow dst vm pause on postcopy

2017-12-14 Thread Dr. David Alan Gilbert
* Peter Xu (pet...@redhat.com) wrote: > When there is IO error on the incoming channel (e.g., network down), > instead of bailing out immediately, we allow the dst vm to switch to the > new POSTCOPY_PAUSE state. Currently it is still simple - it waits the > new semaphore, until someone poke it for

[Qemu-devel] [Bug 1738202] Re: qemu 2.11 segfaults on elf file that worked with qemu2.7

2017-12-14 Thread Roman
Thanks Peter for this information! I guess our code was tweaked to run with this options a long time ago - so I will have to do some investigations to get it working with a valid NVIC... As of writing I remember having a similar issue some time ago (which I now found to have resulted in Bug

[Qemu-devel] [PATCH v2] Add ability for user to specify mouse ungrab key

2017-12-14 Thread John Arbuckle
Currently the ungrab keys for the Cocoa and GTK interface are Control-Alt-g. This combination may not be very fun for the user to have to enter, so we now enable the user to specify their own key as the ungrab key. Since the function keys are the keys that don't tend to be used that often and are

[Qemu-devel] [PATCH v2 02/15] imx_fec: Refactor imx_eth_enable_rx()

2017-12-14 Thread Andrey Smirnov
Refactor imx_eth_enable_rx() to have more meaningfull variable name than 'tmp' and to reduce number of logical negations done. Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc:

[Qemu-devel] [PATCH v2 05/15] imx_fec: Use ENET_FTRL to determine truncation length

2017-12-14 Thread Andrey Smirnov
Frame truncation length, TRUNC_FL, is determined by the contents of ENET_FTRL register, so convert the code to use it instead of a hardcoded constant. To avoid the case where TRUNC_FL is greater that ENET_MAX_FRAME_SIZE, increase the value of the latter to its theoretical maximum of 16K. Cc:

[Qemu-devel] [PATCH v2 01/15] imx_fec: Do not link to netdev

2017-12-14 Thread Andrey Smirnov
Binding to a particular netdev doesn't seem to belong to this layer and should probably be done as a part of board or SoC specific code. Convert all of the users of this IP block to use qdev_set_nic_properties() instead. Cc: Peter Maydell Cc: Jason Wang

[Qemu-devel] [Bug 1429841] Re: error "rom: requested regions overlap" for NOLOAD sections

2017-12-14 Thread Roman
Just tested with QEMU 2.10.93 in cygwin: problem does not occour anymore! Thanks a lot! -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1429841 Title: error "rom: requested regions overlap" for

Re: [Qemu-devel] [RFC v5 20/26] qmp: support out-of-band (oob) execution

2017-12-14 Thread Stefan Hajnoczi
On Tue, Dec 05, 2017 at 01:51:54PM +0800, Peter Xu wrote: > if (qdict) { > id = qdict_get(qdict, "id"); > +/* When OOB is enabled, the "id" field is mandatory. */ > +if (qmp_oob_enabled(mon) && !id) { > +error_setg(, "Out-Of-Band capability requires that "

[Qemu-devel] [PATCH v2 12/15] sdhci: Add i.MX specific subtype of SDHCI

2017-12-14 Thread Andrey Smirnov
IP block found on several generations of i.MX family does not use vanilla SDHCI implementation and it comes with a number of quirks. Introduce i.MX SDHCI subtype of SDHCI block to add code necessary to support unmodified Linux guest driver. Cc: Peter Maydell Cc: Jason

[Qemu-devel] [PATCH v2 11/15] imx_fec: Reserve full FSL_IMX25_FEC_SIZE page for the register file

2017-12-14 Thread Andrey Smirnov
Some i.MX SoCs (e.g. i.MX7) have FEC registers going as far as offset 0x614, so to avoid getting aborts when accessing those on QEMU, extend the register file to cover FSL_IMX25_FEC_SIZE(16K) of address space instead of just 1K. Cc: Peter Maydell Cc: Jason Wang

Re: [Qemu-devel] [PATCH v19 3/7] xbitmap: add more operations

2017-12-14 Thread Matthew Wilcox
On Wed, Dec 13, 2017 at 08:26:06PM +0800, Wei Wang wrote: > On 12/12/2017 09:20 PM, Tetsuo Handa wrote: > > Can you eliminate exception path and fold all xbitmap patches into one, and > > post only one xbitmap patch without virtio-baloon changes? If exception path > > is valuable, you can add

Re: [Qemu-devel] [Qemu-arm] [PATCH 0/2] GICv2 & GICv3: RAZ/WI reserved addresses rather than aborting

2017-12-14 Thread Ard Biesheuvel
On 13 December 2017 at 16:54, Peter Maydell wrote: > On 13 December 2017 at 16:52, Peter Maydell wrote: >> The GICv2 and GICv3 specifications say that reserved register >> addresses should RAZ/WI. This means we need to return MEMTX_OK, not >>

Re: [Qemu-devel] [PATCH for-2.12 2/2] net: Remove the deprecated -tftp, -bootp, -redir and -smb options

2017-12-14 Thread Peter Maydell
On 14 December 2017 at 12:28, Thomas Huth wrote: > On 11.12.2017 23:04, Peter Maydell wrote: >> The deprecation message says: >>error_report("The -redir option is deprecated. " >> "Please use '-netdev user,hostfwd=...' >> instead.");

Re: [Qemu-devel] [PATCH v3 1/1] s390-ccw-virtio: allow for systems larger that 7.999TB

2017-12-14 Thread David Hildenbrand
On 14.12.2017 14:21, Cornelia Huck wrote: > On Mon, 11 Dec 2017 13:21:46 +0100 > Christian Borntraeger wrote: > >> KVM does not allow memory regions > KVM_MEM_MAX_NR_PAGES, basically >> limiting the memory per slot to 8TB-4k. As memory slots on s390/kvm must >> be a

Re: [Qemu-devel] [PATCH 01/26] sdbus: add a QMP command to access a SDBus

2017-12-14 Thread Philippe Mathieu-Daudé
Hi Paolo, On 12/14/2017 06:34 AM, Paolo Bonzini wrote: > On 14/12/2017 10:06, Kevin Wolf wrote: [...] >> Doing this kind of thing over QMP doesn't look right to me. qtests >> should access hardware the same way as real guests access the hardware >> (i.e. MMIO and I/O ports). [...] > > Yeah, what

Re: [Qemu-devel] [PATCH v3 41/50] qapi: add a 'unit' pragma

2017-12-14 Thread Marc-André Lureau
Hi On Thu, Dec 14, 2017 at 2:54 PM, Markus Armbruster wrote: > Marc-André Lureau writes: > >> Add a pragma that allows to tag the following expressions with a unit >> name. By default, an expression has no unit name. > > Please explain the unit

[Qemu-devel] [PATCH v2 06/15] imx_fec: Use MIN instead of explicit ternary operator

2017-12-14 Thread Andrey Smirnov
Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Andrey Smirnov

[Qemu-devel] [PATCH v2 14/15] sd: Check for READ_MULTIPLE_BLOCK size limit violation first

2017-12-14 Thread Andrey Smirnov
Check for READ_MULTIPLE_BLOCK size limit violation first as opposed to doing at the end of the command handler. Consider the following scenario: Emulated host driver is trying to read last byte of the last sector via CMD18/ADMA, so what would happen is the following: 1. "ret" is filled with

[Qemu-devel] [PATCH v2 07/15] imx_fec: Emulate SHIFT16 in ENETx_RACC

2017-12-14 Thread Andrey Smirnov
Needed to support latest Linux kernel driver which relies on that functionality. Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Reviewed-by:

Re: [Qemu-devel] [virtio-dev] [PATCH v3 0/7] Vhost-pci for inter-VM communication

2017-12-14 Thread Stefan Hajnoczi
On Wed, Dec 13, 2017 at 10:59:10PM +0200, Michael S. Tsirkin wrote: > > * VHOST_USER_SET_VRING_KICK > > > >Set up vring kick doorbell (unless bit 8 is set) before sending > >VHOST_USER_SET_VRING_KICK to the guest. > > But guest can't use it, now can it? > > What guest needs is a

[Qemu-devel] [PATCH v2 15/15] sdhci: Implement write method of ACMD12ERRSTS register

2017-12-14 Thread Andrey Smirnov
Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Reviewed-by: Peter Maydell Signed-off-by: Andrey Smirnov

Re: [Qemu-devel] [PATCH 01/26] sdbus: add a QMP command to access a SDBus

2017-12-14 Thread Philippe Mathieu-Daudé
Hi Kevin, On 12/14/2017 06:06 AM, Kevin Wolf wrote: > Am 14.12.2017 um 00:20 hat Philippe Mathieu-Daudé geschrieben: >> Use Base64 to serialize the binary blobs in JSON. >> So far at most 512 bytes will be transfered, which result >> in a 684 bytes payload. >> Since this command is intented for

Re: [Qemu-devel] [PATCH 00/13] i.MX FEC and SD changes

2017-12-14 Thread Andrey Smirnov
On Wed, Dec 13, 2017 at 6:09 PM, Philippe Mathieu-Daudé wrote: > Hi Andrey, Peter, > > On 12/12/2017 02:40 PM, Peter Maydell wrote: >> On 11 December 2017 at 21:29, Andrey Smirnov >> wrote: >>> Hi everyone, >>> >>> This patchset is a spin-off from

Re: [Qemu-devel] [PATCH] vhost: fix crash on virtio_error while device stop

2017-12-14 Thread Ilya Maximets
One update for the testing scenario: No need to kill OVS. The issue reproducible with simple 'del-port' and 'add-port'. virtio driver in guest could crash on both operations. Most times it crashes in my case on 'add-port' after deletion. Hi Maxime, I already saw below patches and original linux

Re: [Qemu-devel] [RFC v5 00/26] QMP: out-of-band (OOB) execution support

2017-12-14 Thread Stefan Hajnoczi
On Tue, Dec 05, 2017 at 01:51:34PM +0800, Peter Xu wrote: > This version is mostly document update, and dropped the single patch > that is migration related (will be put into postcopy recovery > series). I've finished reviewing this revision. The overall approach looks good. Stefan

[Qemu-devel] [PATCH v2 04/15] imx_fec: Move Tx frame buffer away from the stack

2017-12-14 Thread Andrey Smirnov
Make Tx frame assembly buffer to be a paort of IMXFECState structure to avoid a concern about having large data buffer on the stack. Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc:

[Qemu-devel] [PATCH v2 00/15] i.MX FEC and SD changes

2017-12-14 Thread Andrey Smirnov
Hi everyone, This patchset is v2 of a spin-off from original i.MX7 support submission found here [1], containing all of the patchest that are more or less agreed upon and are ready (hopefully!) for inclusion. Changes since [v1]: - Collected Reviewed-by tags from Peter -

[Qemu-devel] [PATCH v2 10/15] imx_fec: Fix a typo in imx_enet_receive()

2017-12-14 Thread Andrey Smirnov
Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Reviewed-by: Peter Maydell Signed-off-by: Andrey Smirnov

[Qemu-devel] [PATCH v2 08/15] imx_fec: Add support for multiple Tx DMA rings

2017-12-14 Thread Andrey Smirnov
More recent version of the IP block support more than one Tx DMA ring, so add the code implementing that feature. Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc:

Re: [Qemu-devel] [PATCH v1] s390x/cpumodel: make qemu cpu model play with "none" machine

2017-12-14 Thread Cornelia Huck
On Wed, 13 Dec 2017 14:24:07 +0100 David Hildenbrand wrote: > Make sure "-cpu qemu" works with "-M none". > > Signed-off-by: David Hildenbrand > --- > > Conny, if this is okay, can you squash with the original patch? > > hw/s390x/s390-virtio-ccw.c | 4

[Qemu-devel] [PULL 0/2] hmp queue

2017-12-14 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" <dgilb...@redhat.com> The following changes since commit 0a0dc59d27527b78a195c2d838d28b7b49e5a639: Update version for v2.11.0 release (2017-12-13 14:31:09 +) are available in the Git repository at: git://github.com/dagrh/qemu.git tags/p

Re: [Qemu-devel] [PATCH 0/6] QTests: use Python to run complex tests

2017-12-14 Thread Philippe Mathieu-Daudé
Hi Stefan, On 12/14/2017 06:39 AM, Stefan Hajnoczi wrote: [...] > Device qtests are better done in C than Python. Python is not good at > binary I/O and porting this to Python 3 will be extra work later (Python > 2 is set for End-of-Life in 2020, see https://pythonclock.org/). > > More

Re: [Qemu-devel] [RFC v5 25/26] tests: qmp-test: verify command batching

2017-12-14 Thread Stefan Hajnoczi
On Tue, Dec 05, 2017 at 01:51:59PM +0800, Peter Xu wrote: > OOB introduced DROP event for flow control. This should not affect old > QMP clients. Add a command batching check to make sure of it. > > Signed-off-by: Peter Xu > --- > tests/qmp-test.c | 19 +++ >

Re: [Qemu-devel] [PATCH v2] Add ability for user to specify mouse ungrab key

2017-12-14 Thread no-reply
Hi, This series seems to have some coding style problems. See output below for more information: Message-id: 20171214143713.3795-1-programmingk...@gmail.com Subject: [Qemu-devel] [PATCH v2] Add ability for user to specify mouse ungrab key Type: series === TEST SCRIPT BEGIN === #!/bin/bash

Re: [Qemu-devel] [RFC v5 26/26] tests: qmp-test: add oob test

2017-12-14 Thread Stefan Hajnoczi
On Tue, Dec 05, 2017 at 01:52:00PM +0800, Peter Xu wrote: > +/* Try a fake capability, it should fail. */ > +resp = qmp("{ 'execute': 'qmp_capabilities', " > + " 'arguments': { 'enable': [ 'cap-does-not-exist' ] } }"); > +g_assert(qdict_haskey(resp, "error")); Missing

[Qemu-devel] [PATCH v2 13/15] hw: i.MX: Convert i.MX6 to use TYPE_IMX_USDHC

2017-12-14 Thread Andrey Smirnov
Convert i.MX6 to use TYPE_IMX_USDHC since that's what real HW comes with. Cc: Peter Maydell Cc: Jason Wang Cc: Philippe Mathieu-Daudé Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Signed-off-by: Andrey

Re: [Qemu-devel] [PATCH v4 05/46] windbg: added helper features

2017-12-14 Thread Ladi Prosek
On Mon, Dec 11, 2017 at 2:21 PM, Mihail Abakumov wrote: > Added some helper features for windbgstub. > > Signed-off-by: Mihail Abakumov > Signed-off-by: Pavel Dovgalyuk > Signed-off-by: Dmitriy Koltunov

[Qemu-devel] [Bug 1738202] [NEW] qemu 2.11 segfaults on elf file that worked with qemu2.7

2017-12-14 Thread Roman
Public bug reported: running on cygwin in Windows 7 QEMU 2.10.93 segfaults: $ /opt/qemu2.11/qemu-system-arm -M integratorcp -cpu cortex-m4 -semihosting -nographic -monitor null -serial null -no-reboot -kernel MFWso_Cycle_f1uP2_CUNIT_0.elf Segmentation fault where QEMU 2.7.0 worked: $

Re: [Qemu-devel] [PATCH v3 1/1] s390-ccw-virtio: allow for systems larger that 7.999TB

2017-12-14 Thread Cornelia Huck
On Mon, 11 Dec 2017 13:21:46 +0100 Christian Borntraeger wrote: > KVM does not allow memory regions > KVM_MEM_MAX_NR_PAGES, basically > limiting the memory per slot to 8TB-4k. As memory slots on s390/kvm must > be a multiple of 1MB we need start a new memory region if we

Re: [Qemu-devel] [PATCH v5 08/28] migration: allow send_rq to fail

2017-12-14 Thread Dr. David Alan Gilbert
* Peter Xu (pet...@redhat.com) wrote: > We will not allow failures to happen when sending data from destination > to source via the return path. However it is possible that there can be > errors along the way. This patch allows the migrate_send_rp_message() > to return error when it happens, and

Re: [Qemu-devel] [RFC v5 21/26] qmp: isolate responses into io thread

2017-12-14 Thread Stefan Hajnoczi
On Tue, Dec 05, 2017 at 01:51:55PM +0800, Peter Xu wrote: > @@ -4429,6 +4515,13 @@ void monitor_cleanup(void) > */ > iothread_stop(mon_global.mon_iothread); > > +/* > + * After we have IOThread to send responses, it's possible that > + * when we stop the IOThread there are

Re: [Qemu-devel] [PATCH v3 41/50] qapi: add a 'unit' pragma

2017-12-14 Thread Markus Armbruster
Marc-André Lureau writes: > Add a pragma that allows to tag the following expressions with a unit > name. By default, an expression has no unit name. Please explain the unit name's intended purpose. > Signed-off-by: Marc-André Lureau >

Re: [Qemu-devel] [PATCH 12/13] sdhci: Add i.MX specific subtype of SDHCI

2017-12-14 Thread Andrey Smirnov
On Tue, Dec 12, 2017 at 9:52 AM, Peter Maydell wrote: > On 11 December 2017 at 21:30, Andrey Smirnov wrote: >> IP block found on several generations of i.MX family does not use >> vanilla SDHCI implementation and it comes with a number of

Re: [Qemu-devel] [PULL 0/4] VFIO updates for v2.12

2017-12-14 Thread Peter Maydell
On 13 December 2017 at 18:08, Alex Williamson wrote: > The following changes since commit 0a0dc59d27527b78a195c2d838d28b7b49e5a639: > > Update version for v2.11.0 release (2017-12-13 14:31:09 +) > > are available in the git repository at: > >

Re: [Qemu-devel] [PATCH v4 3/6] vhost: Add temporary memory structure

2017-12-14 Thread Igor Mammedov
On Wed, 13 Dec 2017 18:08:04 + "Dr. David Alan Gilbert (git)" wrote: > From: "Dr. David Alan Gilbert" > > Add a 2nd 'vhost_memory' structure that will be used to build > the new version as the listener iterates over the address space. I'd suggest

Re: [Qemu-devel] [PATCH 12/13] sdhci: Add i.MX specific subtype of SDHCI

2017-12-14 Thread Andrey Smirnov
On Thu, Dec 14, 2017 at 7:32 AM, Philippe Mathieu-Daudé wrote: > Hi Andrey, > > On 12/14/2017 11:03 AM, Andrey Smirnov wrote: >> On Tue, Dec 12, 2017 at 9:52 AM, Peter Maydell >> wrote: >>> On 11 December 2017 at 21:30, Andrey Smirnov

Re: [Qemu-devel] [PULL 0/2] hmp queue

2017-12-14 Thread Peter Maydell
.0 release (2017-12-13 14:31:09 +) > > are available in the Git repository at: > > git://github.com/dagrh/qemu.git tags/pull-hmp-20171214 > > for you to fetch changes up to 0eaf3b824745cacebfc321aef6787528d33d58fe: > > tests: test-h

Re: [Qemu-devel] [virtio-dev] Re: [virtio-dev] [PATCH v3 0/7] Vhost-pci for inter-VM communication

2017-12-14 Thread Michael S. Tsirkin
On Thu, Dec 14, 2017 at 05:39:19PM +0100, Maxime Coquelin wrote: > > > On 12/14/2017 05:27 PM, Michael S. Tsirkin wrote: > > On Thu, Dec 14, 2017 at 03:46:56PM +, Stefan Hajnoczi wrote: > > > On Wed, Dec 13, 2017 at 10:50:11PM +0100, Maxime Coquelin wrote: > > > > On 12/13/2017 09:08 PM,

Re: [Qemu-devel] [PATCH v1 1/2] qmp.c: (re)implement qmp_cpu

2017-12-14 Thread Markus Armbruster
Eric Blake writes: > On 12/13/2017 12:15 PM, Daniel Henrique Barboza wrote: >> Commit 755f196898 ("qapi: Convert the cpu command") added the qmp_cpu >> function in qmp.c, leaving it blank. It the same commit, a working >> hmp_cpu was implemented. Since then, no further changes

[Qemu-devel] [PATCH] hw/misc: Add code to emulate Xilinx Slave Serial port

2017-12-14 Thread Andrey Smirnov
Add code to emulate Xilinx Slave Serial FPGA configuration port. Cc: "Edgar E. Iglesias" Cc: Alistair Francis Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.org Cc: yurov...@gmail.com Signed-off-by: Andrey Smirnov

[Qemu-devel] [PATCH 0/2] scsi: Simple ALUA support

2017-12-14 Thread Hannes Reinecke
Hi all, qemu allows for a simple multipath emulation by just using the same backing file for two distinct block devices. This patchset adds a very basic ALUA support to properly report this scenario go the guest. As usual, comments and reviews are welcome. Hannes Reinecke (2): block:

Re: [Qemu-devel] [PATCH 3/7] blockjob: create block_job_throttle

2017-12-14 Thread John Snow
On 12/14/2017 03:39 AM, Paolo Bonzini wrote: > On 14/12/2017 01:59, John Snow wrote: >> + * Yield if it has been SLICE_TIME nanoseconds since the last yield. >> + * Otherwise, check if we need to pause (and update the yield counter). > > What is the yield counter? > > Thanks, > > Paolo >

Re: [Qemu-devel] [PATCH v2] Add ability for user to specify mouse ungrab key

2017-12-14 Thread Daniel P. Berrange
On Thu, Dec 14, 2017 at 09:37:13AM -0500, John Arbuckle wrote: > Currently the ungrab keys for the Cocoa and GTK interface are Control-Alt-g. > This combination may not be very fun for the user to have to enter, so we > now enable the user to specify their own key as the ungrab key. Since the >

Re: [Qemu-devel] [Qemu-block] [PATCH 0/6] QTests: use Python to run complex tests

2017-12-14 Thread Philippe Mathieu-Daudé
Hi Nir, On 12/14/2017 12:39 PM, Nir Soffer wrote: > On Thu, Dec 14, 2017 at 1:36 PM Paolo Bonzini > Device qtests are better done in C than Python.  Python is not good at > > binary I/O and porting this to Python 3 will be extra work later > (Python >

Re: [Qemu-devel] [PATCH v3 43/50] build-sys: move qmp-introspect per target

2017-12-14 Thread Markus Armbruster
Marc-André Lureau writes: > The following patches are going to introduce per-target #ifdef, and > but the introspection data is generated only once, and must thus be > built with the target. "and but"? > Drop "do_test_visitor_in_qmp_introspect(&_schema_qlit)" since

Re: [Qemu-devel] [PATCH v3 44/50] build-sys: add a target schema

2017-12-14 Thread Markus Armbruster
Marc-André Lureau writes: > This schema is going to contain target-specific commands/events & > types, that can be conditionnally guarded with poisoned defines. To > filter it out by default, set the unit name to 'target'. > > And new rules to compile this unit

Re: [Qemu-devel] [virtio-dev] Re: [virtio-dev] [PATCH v3 0/7] Vhost-pci for inter-VM communication

2017-12-14 Thread Maxime Coquelin
On 12/14/2017 05:27 PM, Michael S. Tsirkin wrote: On Thu, Dec 14, 2017 at 03:46:56PM +, Stefan Hajnoczi wrote: On Wed, Dec 13, 2017 at 10:50:11PM +0100, Maxime Coquelin wrote: On 12/13/2017 09:08 PM, Stefan Hajnoczi wrote: On Wed, Dec 13, 2017 at 3:01 PM, Michael S. Tsirkin

Re: [Qemu-devel] [PATCH v2 14/15] sd: Check for READ_MULTIPLE_BLOCK size limit violation first

2017-12-14 Thread Andrey Smirnov
On Thu, Dec 14, 2017 at 6:52 AM, Andrey Smirnov wrote: > Check for READ_MULTIPLE_BLOCK size limit violation first as opposed to > doing at the end of the command handler. Consider the following > scenario: > > Emulated host driver is trying to read last byte of the last

Re: [Qemu-devel] QMP, HMP: introduce 'writeconfig' command

2017-12-14 Thread Eric Blake
On 10/23/2017 10:13 AM, Vadim Galitsyn wrote: > Hi Guys, > > This thread is a continuation of discussion started in > http://lists.nongnu.org/archive/html/qemu-devel/2017-02/msg03182.html. > > This series introduces ‘writeconfig’ command support for QMP and HMP > monitors. This functionality

[Qemu-devel] [PATCH 2/2] scsi: Implement multipath support

2017-12-14 Thread Hannes Reinecke
Implement simple multipath support based on the shared block device feature. Whenever a shared device is detected the scsi-disk driver will report a simple ALUA setup with all paths in active/optimized. Signed-off-by: Hannes Reinecke --- block.c | 15 +++

Re: [Qemu-devel] [PATCH v4 4/6] vhost: add regions to temporary list

2017-12-14 Thread Igor Mammedov
On Wed, 13 Dec 2017 18:08:05 + "Dr. David Alan Gilbert (git)" wrote: > From: "Dr. David Alan Gilbert" > > As regions are reported by the listener to the _nop and _add > methods, add them to our new temporary list. > Regions that abut can be merged

Re: [Qemu-devel] [PATCH 12/13] sdhci: Add i.MX specific subtype of SDHCI

2017-12-14 Thread Philippe Mathieu-Daudé
Hi Andrey, On 12/14/2017 11:03 AM, Andrey Smirnov wrote: > On Tue, Dec 12, 2017 at 9:52 AM, Peter Maydell > wrote: >> On 11 December 2017 at 21:30, Andrey Smirnov >> wrote: [...] >>> +case ESDHC_DLL_CTRL: >>> +case

Re: [Qemu-devel] [PATCH v3 41/50] qapi: add a 'unit' pragma

2017-12-14 Thread Markus Armbruster
Marc-André Lureau writes: > Add a pragma that allows to tag the following expressions with a unit > name. By default, an expression has no unit name. > > Signed-off-by: Marc-André Lureau > --- > scripts/qapi.py | 9

Re: [Qemu-devel] [PATCH 4/7] blockjob: allow block_job_throttle to take delay_ns

2017-12-14 Thread John Snow
On 12/14/2017 03:49 AM, Paolo Bonzini wrote: > On 14/12/2017 01:59, John Snow wrote: >> Instead of only sleeping for 0ms when we've hit a timeout, optionally >> take a longer more explicit delay_ns that always forces the sleep. >> >> Signed-off-by: John Snow >> --- >>

Re: [Qemu-devel] [PATCH] docs: update information for TLS certificate management

2017-12-14 Thread Eric Blake
On 12/14/2017 03:41 AM, Thomas Huth wrote: >>> You can use '--object' with qemu as well (getopt_long_only() accepts >>> double-dash form in addition to single dash). If it makes it any easier >>> to only document the double-dash form, then go for it. >> >> Since the QEMU -help text only mentions

[Qemu-devel] [PATCH] hw/misc: Add code to emulate PFUZE3000 PMIC

2017-12-14 Thread Andrey Smirnov
Add trivial code to emulate PFUZE3000 PMIC. Cc: qemu-devel@nongnu.org Cc: qemu-...@nongnu.orgn Cc: yurov...@gmail.com Cc: Peter Maydell Signed-off-by: Andrey Smirnov --- Integrating this into a build system via "obj-y" might not be the best

Re: [Qemu-devel] [PATCH v4 1/6] vhost: Move log_dirty check

2017-12-14 Thread Dr. David Alan Gilbert
* Igor Mammedov (imamm...@redhat.com) wrote: > On Wed, 13 Dec 2017 18:08:02 + > "Dr. David Alan Gilbert (git)" wrote: > > > From: "Dr. David Alan Gilbert" > > > > Move the log_dirty check into vhost_section. > > > > Signed-off-by: Dr. David Alan

[Qemu-devel] [PATCH 1/2] block: implement shared block device count

2017-12-14 Thread Hannes Reinecke
By setting 'locking=off' when creating a 'file' format drive one can simulate a multipath setup. This patch adds infrastructure for tracking shared block devices. Signed-off-by: Hannes Reinecke --- block.c | 36

Re: [Qemu-devel] [PULL 00/43] target-arm queue

2017-12-14 Thread Peter Maydell
On 13 December 2017 at 18:11, Peter Maydell wrote: > First arm pullreq for the 2.12 cycle, with all the > things that queued up during the release phase. > 2.11 isn't quite released yet, but might as well put > the pullreq on the mailing list :-) > > thanks > -- PMM > >

Re: [Qemu-devel] [virtio-dev] Re: [virtio-dev] [PATCH v3 0/7] Vhost-pci for inter-VM communication

2017-12-14 Thread Stefan Hajnoczi
On Wed, Dec 13, 2017 at 10:50:11PM +0100, Maxime Coquelin wrote: > On 12/13/2017 09:08 PM, Stefan Hajnoczi wrote: > > On Wed, Dec 13, 2017 at 3:01 PM, Michael S. Tsirkin wrote: > > > On Wed, Dec 13, 2017 at 12:35:21PM +, Stefan Hajnoczi wrote: > > > > I'm not saying that DPDK

Re: [Qemu-devel] [PATCH v4 4/6] vhost: add regions to temporary list

2017-12-14 Thread Dr. David Alan Gilbert
* Paolo Bonzini (pbonz...@redhat.com) wrote: > On 13/12/2017 19:08, Dr. David Alan Gilbert (git) wrote: > > +if (dev->tmp_mem->nregions) { > > +/* Since we already have at least one region, lets see if > > + * this extends it; since we're scanning in order, we only > > +

Re: [Qemu-devel] [Qemu-block] [PATCH 0/6] QTests: use Python to run complex tests

2017-12-14 Thread Markus Armbruster
Nir Soffer writes: > On Thu, Dec 14, 2017 at 1:36 PM Paolo Bonzini wrote: > >> On 14/12/2017 10:39, Stefan Hajnoczi wrote: >> >> # verify Card ID >> >> data = self.bus.do_cmd(ALL_SEND_CID) >> >> oid, pnm, psn =

Re: [Qemu-devel] [PATCH v3 42/50] qapi: add a -u/--unit option to specify which unit to visit

2017-12-14 Thread Markus Armbruster
Marc-André Lureau writes: > Allow to filter expressions based on unit name. > > By default, only default units are processed (unspecified pragma). > > 'all' will include all units. Anything else will filter by unit name. You therefore can't have a unit called 'all'.

Re: [Qemu-devel] [PATCH 12/13] sdhci: Add i.MX specific subtype of SDHCI

2017-12-14 Thread Philippe Mathieu-Daudé
On Thu, Dec 14, 2017 at 1:05 PM, Andrey Smirnov wrote: > On Thu, Dec 14, 2017 at 7:32 AM, Philippe Mathieu-Daudé > wrote: >> [...] > +case ESDHC_DLL_CTRL: > +case ESDHC_TUNE_CTRL_STATUS: > +case 0x6c: Isn't there a

Re: [Qemu-devel] [virtio-dev] Re: [virtio-dev] [PATCH v3 0/7] Vhost-pci for inter-VM communication

2017-12-14 Thread Michael S. Tsirkin
On Thu, Dec 14, 2017 at 03:46:56PM +, Stefan Hajnoczi wrote: > On Wed, Dec 13, 2017 at 10:50:11PM +0100, Maxime Coquelin wrote: > > On 12/13/2017 09:08 PM, Stefan Hajnoczi wrote: > > > On Wed, Dec 13, 2017 at 3:01 PM, Michael S. Tsirkin > > > wrote: > > > > On Wed, Dec 13,

[Qemu-devel] [PATCH 1/2] vhost: add used memslot number for vhost-user

2017-12-14 Thread Jay Zhou
Used_memslots is equal to dev->mem->nregions now, it is true for vhost kernel, but not for vhost user, which uses the memory regions that have file descriptor. In fact, not all of the memory regions have file descriptor. It is usefully in some scenarios, e.g. used_memslots is 8, and only 5 memory

[Qemu-devel] [PATCH 0/2] vhost: two fixes

2017-12-14 Thread Jay Zhou
Jay Zhou (2): vhost: add used memslot number for vhost-user vhost: double check memslot number hw/virtio/vhost-user.c| 31 + hw/virtio/vhost.c | 49 ++- include/hw/virtio/vhost-backend.h | 4 3

[Qemu-devel] [PATCH 2/2] vhost: double check memslot number

2017-12-14 Thread Jay Zhou
If the VM already has N(N>=8) available memory slots for vhost user, the VM will be crashed in vhost_user_set_mem_table if we try to hotplug the first vhost user NIC. This patch checks if memslot number exceeded or not after updating vhost_user_used_memslots. Signed-off-by: Jay Zhou

Re: [Qemu-devel] [virtio-dev] Re: [virtio-dev] [PATCH v3 0/7] Vhost-pci for inter-VM communication

2017-12-14 Thread Maxime Coquelin
On 12/14/2017 05:40 PM, Michael S. Tsirkin wrote: On Thu, Dec 14, 2017 at 05:39:19PM +0100, Maxime Coquelin wrote: On 12/14/2017 05:27 PM, Michael S. Tsirkin wrote: On Thu, Dec 14, 2017 at 03:46:56PM +, Stefan Hajnoczi wrote: On Wed, Dec 13, 2017 at 10:50:11PM +0100, Maxime Coquelin

Re: [Qemu-devel] [PATCH for-2.12 2/2] net: Remove the deprecated -tftp, -bootp, -redir and -smb options

2017-12-14 Thread Thomas Huth
On 14.12.2017 14:16, Peter Maydell wrote: > On 14 December 2017 at 12:28, Thomas Huth wrote: >> On 11.12.2017 23:04, Peter Maydell wrote: >>> The deprecation message says: >>>error_report("The -redir option is deprecated. " >>> "Please

Re: [Qemu-devel] [PATCH 1/7] blockjob: record time of last yield

2017-12-14 Thread John Snow
On 12/14/2017 03:38 AM, Paolo Bonzini wrote: > On 14/12/2017 01:59, John Snow wrote: >> qemu_coroutine_yield(); >> +job->last_yield_ns = qemu_clock_get_ns(QEMU_CLOCK_REALTIME); > > This is not the time the job has yielded control, but the time the job > has gotten it back. Is it

Re: [Qemu-devel] [PATCH v19 3/7] xbitmap: add more operations

2017-12-14 Thread Tetsuo Handa
Wei Wang wrote: > I used the example of xb_clear_bit_range(), and xb_find_next_bit() is > the same fundamentally. Please let me know if anywhere still looks fuzzy. I don't think it is the same for xb_find_next_bit() with set == 0. + if (radix_tree_exception(bmap)) { +

[Qemu-devel] [Bug 1716028] Re: qemu 2.10 locks images with no feature flag

2017-12-14 Thread Scott Moser
I've taked this qemu-file-locking just so we can group/easily find other bugs that have this tag. link to search for all bugs with that tag is: https://goo.gl/W2aT2T or the longer form:

Re: [Qemu-devel] [PATCH v2 03/19] spapr: introduce the XIVE interrupt sources

2017-12-14 Thread Cédric Le Goater
> diff --git a/include/hw/ppc/spapr_xive.h b/include/hw/ppc/spapr_xive.h > index 5b1f78e06a1e..ecc15d889b74 100644 > --- a/include/hw/ppc/spapr_xive.h > +++ b/include/hw/ppc/spapr_xive.h > @@ -24,8 +24,17 @@ struct sPAPRXive { > /* Properties */ > uint32_t nr_irqs; > > +/* IRQ

Re: [Qemu-devel] [Qemu-block] [PATCH 0/6] QTests: use Python to run complex tests

2017-12-14 Thread Nir Soffer
On Thu, Dec 14, 2017 at 11:39 AM Stefan Hajnoczi wrote: > On Wed, Dec 13, 2017 at 06:35:51PM -0300, Philippe Mathieu-Daudé wrote: > > Hi, > > > > With this series we can now write tests using Python rather than C. > > For complex tests this can reduce the test development

Re: [Qemu-devel] [Qemu-block] [PATCH 0/6] QTests: use Python to run complex tests

2017-12-14 Thread Nir Soffer
On Thu, Dec 14, 2017 at 1:36 PM Paolo Bonzini wrote: > On 14/12/2017 10:39, Stefan Hajnoczi wrote: > >> # verify Card ID > >> data = self.bus.do_cmd(ALL_SEND_CID) > >> oid, pnm, psn = struct.unpack(">x2s5sxLxxx", data) > >>

[Qemu-devel] [Bug 1716028] Re: qemu 2.10 locks images with no feature flag

2017-12-14 Thread Scott Moser
** Tags added: qemu-file-locking -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1716028 Title: qemu 2.10 locks images with no feature flag Status in QEMU: Opinion Status in libvirt package in

Re: [Qemu-devel] [PATCH v4 00/46] Windbg supporting

2017-12-14 Thread Ladi Prosek
On Mon, Dec 11, 2017 at 2:21 PM, Mihail Abakumov wrote: > An update of: > > v1: > https://lists.nongnu.org/archive/html/qemu-devel/2017-09/msg07092.html > > We made the debugger module WinDbg (like GDB) for QEMU. This is the > replacement > of the remote stub

  1   2   3   4   5   >