Re: [PATCH v4 7/8] hw/misc/pca9552: Trace GPIO change events

2020-06-22 Thread Cédric Le Goater
On 6/21/20 12:58 AM, Philippe Mathieu-Daudé wrote: > Emit a trace event when a GPIO change its state. I understand now why you need 'pin_status'. We could compute 'pin_status' and 'pin_changed' in routine pca9552_update_pin_input() when updating the PCA9552_INPUT0/1 register values and pass th

Re: [PATCH v4 8/8] hw/misc/pca9552: Model qdev output GPIOs

2020-06-22 Thread Cédric Le Goater
On 6/21/20 12:58 AM, Philippe Mathieu-Daudé wrote: > The PCA9552 has 16 GPIOs which can be used as input, > output or PWM mode. QEMU models the output GPIO with > the qemu_irq type. Let the device expose the 16 GPIOs > to allow us to later connect LEDs to these outputs. > > Signed-off-by: Philippe

Re: [PULL 10/10] ppc/pnv: Create BMC devices only when defaults are enabled

2020-06-22 Thread Cédric Le Goater
On 6/19/20 8:02 PM, Philippe Mathieu-Daudé wrote: > Hi, > > On Tue, Apr 7, 2020 at 6:42 AM David Gibson > wrote: >> >> From: Cédric Le Goater >> >> Commit e2392d4395dd ("ppc/pnv: Create BMC devices at machine init") >> introduced default BMC devices which can be a problem when the same >> devic

Re: [PATCH] ppc/pnv: Silence missing BMC warning with qtest

2020-06-22 Thread Cédric Le Goater
On 6/22/20 8:57 AM, Greg Kurz wrote: > The device introspect test in qtest emits some warnings with the > the pnv machine types during the "nodefaults" phase: > > TEST check-qtest-ppc64: tests/qtest/device-introspect-test > qemu-system-ppc64: warning: machine has no BMC device. Use '-device > ipmi

Re: [PATCH] target/arm: Remove unnecessary gen_io_end() calls

2020-06-22 Thread Pavel Dovgalyuk
On 19.06.2020 20:03, Peter Maydell wrote: Since commit ba3e7926691ed3 it has been unnecessary for target code to call gen_io_end() after an IO instruction in icount mode; it is sufficient to call gen_io_start() before it and to force the end of the TB. Many now-unnecessary calls to gen_io_end()

Re: [PATCH] target/s390x: Fix SQXBR

2020-06-22 Thread David Hildenbrand
On 20.06.20 06:21, Richard Henderson wrote: > The output is 128-bit, and thus requires a pair of 64-bit temps. > > Buglink: https://bugs.launchpad.net/bugs/1883984 > Signed-off-by: Richard Henderson > --- > target/s390x/insn-data.def | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > d

[PATCH v4 1/9] pc-bios: s390x: cio.c cleanup and compile fix

2020-06-22 Thread Janosch Frank
Let's initialize the structs at the beginning to ease reading and also zeroing all other fields. This also makes the compiler stop complaining about sense_id_ccw.flags being ored into when it's not initialized. Signed-off-by: Janosch Frank Reviewed-by: Pierre Morel Reviewed-by: Thomas Huth Revi

[PATCH v4 4/9] pc-bios: s390x: Get rid of magic offsets into the lowcore

2020-06-22 Thread Janosch Frank
If we have a lowcore struct that has members for offsets that we want to touch, why not use it? Signed-off-by: Janosch Frank Reviewed-by: David Hildenbrand --- pc-bios/s390-ccw/cio.h | 17 +++-- pc-bios/s390-ccw/main.c | 8 +++- 2 files changed, 14 insertions(+), 11 deletions(

[PATCH v4 0/9] pc-bios: s390x: Cleanup part 1

2020-06-22 Thread Janosch Frank
The bios is in dire need for a cleanup as there are still a lot of magic constants being used throughout as well as duplicated code. In the first part of this series we consolidate constants and functions, as well as doing some minor cleanups and fixes. The patches are available here: https://git

[PATCH v4 2/9] pc-bios: s390x: Consolidate timing functions into time.h

2020-06-22 Thread Janosch Frank
Let's consolidate timing related functions into one header. Signed-off-by: Janosch Frank --- pc-bios/s390-ccw/menu.c| 1 + pc-bios/s390-ccw/netmain.c | 15 +++ pc-bios/s390-ccw/s390-ccw.h| 8 pc-bios/s390-ccw/s390-time.h | 23 +++ pc-b

[PATCH v4 9/9] pc-bios: s390x: Make u32 ptr check explicit

2020-06-22 Thread Janosch Frank
Let's make it a bit more clear that we check the full 64 bits to fit into the 32 we return. Signed-off-by: Janosch Frank Suggested-by: David Hildenbrand Reviewed-by: David Hildenbrand Reviewed-by: Thomas Huth --- pc-bios/s390-ccw/helper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH v4 6/9] pc-bios: s390x: Use PSW masks where possible and introduce PSW_MASK_SHORT_ADDR

2020-06-22 Thread Janosch Frank
Let's move some of the PSW mask defines into s390-arch.h and use them in jump2ipl.c. Also let's introduce a new constant for the address mask of 8 byte (short) PSWs. Signed-off-by: Janosch Frank Reviewed-by: David Hildenbrand --- pc-bios/s390-ccw/jump2ipl.c | 10 -- pc-bios/s390-ccw/s3

[PATCH v4 3/9] pc-bios: s390x: Move sleep and yield to helper.h

2020-06-22 Thread Janosch Frank
They are definitely helper functions. Signed-off-by: Janosch Frank Reviewed-by: Christian Borntraeger --- pc-bios/s390-ccw/helper.h | 17 + pc-bios/s390-ccw/s390-ccw.h| 18 -- pc-bios/s390-ccw/virtio-net.c | 1 + pc-bios/s390-ccw/virtio-scsi.c | 1 +

Re: [PATCH v3 00/11] Record/replay acceptance tests

2020-06-22 Thread Pavel Dovgalyuk
On 21.06.2020 02:36, Philippe Mathieu-Daudé wrote: Hi Pavel, On 5/31/20 5:09 PM, Philippe Mathieu-Daudé wrote: On 5/29/20 9:04 AM, Pavel Dovgalyuk wrote: The following series adds record/replay tests to the acceptance group. Test pass successfully with the latest submitted record/replay fixes:

[PATCH v4 5/9] pc-bios: s390x: Rename and use PSW_MASK_ZMODE constant

2020-06-22 Thread Janosch Frank
ZMODE has a lot of ambiguity with the ESAME architecture mode, but is actually 64 bit addressing. As PSW_MASK_64 is now effectively 33 bit long and the PSWLegacy struct has 2 32 bit members, let's also use a unsigned long pointer in dasd-ipl.c instead when oring the constant into a 8 byte PSW. Si

[PATCH v4 7/9] pc-bios: s390x: Move panic() into header and add infinite loop

2020-06-22 Thread Janosch Frank
panic() was defined for the ccw and net bios, i.e. twice, so it's cleaner to rather put it into the header. Also let's add an infinite loop into the assembly of disabled_wait() so the caller doesn't need to take care of it. Signed-off-by: Janosch Frank Reviewed-by: Pierre Morel Reviewed-by: Dav

[PATCH v4 8/9] pc-bios: s390x: Use ebcdic2ascii table

2020-06-22 Thread Janosch Frank
Why should we do conversion of a ebcdic value if we have a handy table where we could look up the ascii value instead? Signed-off-by: Janosch Frank Reviewed-by: David Hildenbrand Reviewed-by: Thomas Huth --- pc-bios/s390-ccw/bootmap.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) d

Re: what are the requirements on target/ code for -icount to work correctly?

2020-06-22 Thread Pavel Dovgalyuk
On 22.06.2020 08:24, Max Filippov wrote: On Fri, Jun 19, 2020 at 10:05 AM Peter Maydell wrote: I've just sent a patch that removes the target/arm gen_io_end() calls. I had a quick look at sparc, xtensa and ppc, but they were too complicated for a quick look to be sufficient :-) I've checked t

[Bug 1873338] Re: Dos on the fly CD image replacement is not Working with DOS

2020-06-22 Thread Thomas Huth
You need to reset the state from Incomplete to New after you've provided the information. ** Changed in: qemu Status: Expired => New -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1873338 Titl

Re: [PATCH] ppc/pnv: Silence missing BMC warning with qtest

2020-06-22 Thread Greg Kurz
On Mon, 22 Jun 2020 09:13:46 +0200 Cédric Le Goater wrote: > On 6/22/20 8:57 AM, Greg Kurz wrote: > > The device introspect test in qtest emits some warnings with the > > the pnv machine types during the "nodefaults" phase: > > > > TEST check-qtest-ppc64: tests/qtest/device-introspect-test > > q

Re: [PATCH v3 11/11] tests/acceptance: Linux boot test for record/replay

2020-06-22 Thread Philippe Mathieu-Daudé
Hi Pavel, On 5/29/20 9:05 AM, Pavel Dovgalyuk wrote: > This patch adds a test for record/replay, which boots Linux > image from the disk and interacts with the network. > The idea and code of this test is borrowed from boot_linux.py > However, currently record/replay works only for x86_64, > there

Re: [PATCH v2] hmp: Make json format optional for qom-set

2020-06-22 Thread Markus Armbruster
David Hildenbrand writes: > On 15.06.20 08:17, Markus Armbruster wrote: >> David Hildenbrand writes: >> >>> Commit 7d2ef6dcc1cf ("hmp: Simplify qom-set") switched to the json >>> parser, making it possible to specify complex types. However, with this >>> change it is no longer possible to speci

Re: [PATCH v4 0/9] pc-bios: s390x: Cleanup part 1

2020-06-22 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20200622074235.32528-1-fran...@linux.ibm.com/ Hi, This series seems to have some coding style problems. See output below for more information: Subject: [PATCH v4 0/9] pc-bios: s390x: Cleanup part 1 Type: series Message-id: 20200622074235.32528-1-fran...@l

Re: [PATCH 1/2] virtio-balloon: Prevent guest from starting a report when we didn't request one

2020-06-22 Thread David Hildenbrand
On 19.06.20 23:53, Alexander Duyck wrote: > From: Alexander Duyck > > Based on code review it appears possible for the driver to force the device > out of a stopped state when hinting by repeating the last ID it was > provided. Indeed, thanks for noticing. > > Prevent this by only allowing a t

Re: [PATCH] ppc/pnv: Silence missing BMC warning with qtest

2020-06-22 Thread David Gibson
On Mon, Jun 22, 2020 at 08:57:18AM +0200, Greg Kurz wrote: > The device introspect test in qtest emits some warnings with the > the pnv machine types during the "nodefaults" phase: > > TEST check-qtest-ppc64: tests/qtest/device-introspect-test > qemu-system-ppc64: warning: machine has no BMC devic

Re: [PATCH v2 2/2] qemu-options.hx: Document hmat-lb and hmat-cache order

2020-06-22 Thread Markus Armbruster
Michal Privoznik writes: > On 6/15/20 10:02 AM, Markus Armbruster wrote: >> Michal Privoznik writes: >> >>> To simplify internal implementation the hmat-cache parsing code >>> expects hmat-lb to be already parsed. This means, that hmat-lb >>> arguments must come before hmat-cache. Document this

Re: Memory leak in spapr_machine_init()?

2020-06-22 Thread Markus Armbruster
David Gibson writes: > On Thu, Jun 18, 2020 at 08:55:53AM +0200, Markus Armbruster wrote: >> Either I'm confused (quite possible), or kvmppc_check_papr_resize_hpt() >> can leak an Error object on failure. Please walk through the code with >> me: >> >> kvmppc_check_papr_resize_hpt(&resiz

Re: [PATCH] .travis.yml: Build acceptance tests with -O2 compiler optimization

2020-06-22 Thread Philippe Mathieu-Daudé
On 6/21/20 8:05 PM, Philippe Mathieu-Daudé wrote: > On 6/21/20 2:47 PM, Alex Bennée wrote: >> >> Philippe Mathieu-Daudé writes: >> >>> On 6/21/20 1:29 AM, Philippe Mathieu-Daudé wrote: As we just want the tests to succeed, build them with compiler optimizations enabled to run the tests f

Re: Memory leak in transfer_memory_block()?

2020-06-22 Thread Markus Armbruster
Zhanghailiang writes: >> -Original Message- >> From: Markus Armbruster [mailto:arm...@redhat.com] >> Sent: Thursday, June 18, 2020 1:36 PM >> To: Zhanghailiang >> Cc: qemu-devel@nongnu.org; Michael Roth >> Subject: Memory leak in transfer_memory_block()? >> >> We appear to leak an Erro

Re: [PATCH] ppc/pnv: Silence missing BMC warning with qtest

2020-06-22 Thread Philippe Mathieu-Daudé
On 6/22/20 9:53 AM, Greg Kurz wrote: > On Mon, 22 Jun 2020 09:13:46 +0200 > Cédric Le Goater wrote: > >> On 6/22/20 8:57 AM, Greg Kurz wrote: >>> The device introspect test in qtest emits some warnings with the >>> the pnv machine types during the "nodefaults" phase: >>> >>> TEST check-qtest-ppc6

Re: [PULL 10/10] ppc/pnv: Create BMC devices only when defaults are enabled

2020-06-22 Thread Philippe Mathieu-Daudé
On 6/22/20 9:09 AM, Cédric Le Goater wrote: > On 6/19/20 8:02 PM, Philippe Mathieu-Daudé wrote: >> Hi, >> >> On Tue, Apr 7, 2020 at 6:42 AM David Gibson >> wrote: >>> >>> From: Cédric Le Goater >>> >>> Commit e2392d4395dd ("ppc/pnv: Create BMC devices at machine init") >>> introduced default BMC

Re: [PATCH v4 1/8] hw/i2c/core: Add i2c_try_create_slave() and i2c_realize_and_unref()

2020-06-22 Thread Philippe Mathieu-Daudé
+Markus On 6/21/20 12:58 AM, Philippe Mathieu-Daudé wrote: > Extract i2c_try_create_slave() and i2c_realize_and_unref() > from i2c_create_slave(). > We can now set properties on a I2CSlave before it is realized. > > This is in line with the recent qdev/QOM changes merged > in commit 6675a653d2e.

Re: qemu-pr-helper -v suppresses errors, isn't that weird?

2020-06-22 Thread Markus Armbruster
Paolo Bonzini writes: > On 18/06/20 07:32, Markus Armbruster wrote: >> prh_co_entry() reports reports errors reading requests / writing >> responses only when @verbose (command line -v); relevant code appended >> for you convenience. >> >> Sure these are *errors*? The program recovers and conti

Re: [PATCH v4 4/8] hw/misc/pca9552: Add a 'description' property for debugging purpose

2020-06-22 Thread Philippe Mathieu-Daudé
On 6/22/20 8:27 AM, Cédric Le Goater wrote: > On 6/21/20 12:58 AM, Philippe Mathieu-Daudé wrote: >> Add a description field to distinguish between multiple devices. > > Reviewed-by: Cédric Le Goater > > Could it be a QOM attribute ? What do you call a 'QOM attribute'? Is it what qdev propertie

[PATCH 7/6] block/io: improve loadvm performance

2020-06-22 Thread Denis V. Lunev
This patch creates intermediate buffer for reading from block driver state and performs read-ahead to this buffer. Snapshot code performs reads sequentially and thus we know what offsets will be required and when they will become not needed. Results are fantastic. Switch to snapshot times of 2GB F

Re: [PATCH v5 0/6] block: seriously improve savevm performance

2020-06-22 Thread Denis V. Lunev
On 6/19/20 2:02 PM, no-re...@patchew.org wrote: > Patchew URL: https://patchew.org/QEMU/20200619100708.30440-1-...@openvz.org/ > > > > Hi, > > This series failed the asan build test. Please find the testing commands and > their output below. If you have Docker installed, you can probably reproduce

Re: [PATCH v4 6/8] hw/arm/aspeed: Describe each PCA9552 device

2020-06-22 Thread Philippe Mathieu-Daudé
+Markus On 6/22/20 8:49 AM, Cédric Le Goater wrote: > On 6/21/20 12:58 AM, Philippe Mathieu-Daudé wrote: >> We have 2 distinct PCA9552 devices. Set their description >> to distinguish them when looking at the trace events. > > It's nice and usefull but couldn't we do the same with a QOM object na

Re: [PATCH v4 3/8] hw/misc/pca9552: Use the PCA9552_PIN_COUNT definition

2020-06-22 Thread Philippe Mathieu-Daudé
On 6/22/20 8:25 AM, Cédric Le Goater wrote: > On 6/21/20 12:58 AM, Philippe Mathieu-Daudé wrote: >> The current code models the PCA9552, but there are comments >> saying the code could be easily adapted for the rest of the >> PCA955x family. >> Since we assume we have at most 16 pins (for the PCA95

Re: [PATCH 7/7] hw/watchdog/wdt_aspeed: Reduce timer precision to micro-second

2020-06-22 Thread Philippe Mathieu-Daudé
On 6/22/20 2:21 AM, Andrew Jeffery wrote: > On Wed, 17 Jun 2020, at 13:11, Philippe Mathieu-Daudé wrote: >> Hi Andrew, >> >> On 6/17/20 3:18 AM, Andrew Jeffery wrote: >>> On Tue, 16 Jun 2020, at 17:21, Philippe Mathieu-Daudé wrote: The current implementation uses nano-second precision, while >

Re: [PATCH] ppc/pnv: Silence missing BMC warning with qtest

2020-06-22 Thread Thomas Huth
On 22/06/2020 10.24, Philippe Mathieu-Daudé wrote: > On 6/22/20 9:53 AM, Greg Kurz wrote: >> On Mon, 22 Jun 2020 09:13:46 +0200 >> Cédric Le Goater wrote: >> >>> On 6/22/20 8:57 AM, Greg Kurz wrote: The device introspect test in qtest emits some warnings with the the pnv machine types du

Re: [PATCH 1/7] qemu-common: Briefly document qemu_timedate_diff() unit

2020-06-22 Thread Philippe Mathieu-Daudé
On 6/18/20 7:47 AM, Markus Armbruster wrote: > Philippe Mathieu-Daudé writes: > >> It is not obvious that the qemu_timedate_diff() and >> qemu_ref_timedate() functions return seconds. Briefly >> document it. >> >> Signed-off-by: Philippe Mathieu-Daudé >> --- >> include/qemu-common.h | 1 + >> s

Re: [PATCH v3 11/11] tests/acceptance: Linux boot test for record/replay

2020-06-22 Thread Philippe Mathieu-Daudé
On 6/22/20 10:03 AM, Philippe Mathieu-Daudé wrote: > Hi Pavel, > > On 5/29/20 9:05 AM, Pavel Dovgalyuk wrote: >> This patch adds a test for record/replay, which boots Linux >> image from the disk and interacts with the network. >> The idea and code of this test is borrowed from boot_linux.py >> Ho

Re: [PATCH v2] docs/devel: add some notes on tcg-icount for developers

2020-06-22 Thread Alex Bennée
Alex Bennée writes: > This attempts to bring together my understanding of the requirements > for icount behaviour into one reference document for our developer > notes. It currently make one piece of conjecture which I think is true > that we don't need gen_io_start/end statements for non-MMIO

[PULL 0/8] Acceptance testing patches for 2020-06-22

2020-06-22 Thread Philippe Mathieu-Daudé
The following changes since commit 06c4cc3660b366278bdc7bc8b6677032d7b1118c: qht: Fix threshold rate calculation (2020-06-19 18:29:11 +0100) are available in the Git repository at: https://gitlab.com/philmd/qemu.git tags/acceptance-testing-20200622 for you to fetch changes up to

[PULL 2/8] tests/acceptance: add base class record/replay kernel tests

2020-06-22 Thread Philippe Mathieu-Daudé
From: Pavel Dovgalyuk This patch adds a base for testing kernel boot recording and replaying. Each test has the phase of recording and phase of replaying. Virtual machines just boot the kernel and do not interact with the network. Structure and image links for the tests are borrowed from boot_lin

[PULL 1/8] MAINTAINERS: Add an entry to review Avocado based acceptance tests

2020-06-22 Thread Philippe Mathieu-Daudé
Acceptance tests can test any piece of the QEMU codebase. As such, the directory holding them does not belong to a specific subsystem with designated maintainers. Each subsystem covered by a test is welcomed to add the test path to its section. See for example commits 71b29

[PULL 5/8] tests/acceptance: add record/replay test for arm

2020-06-22 Thread Philippe Mathieu-Daudé
From: Pavel Dovgalyuk This patch adds a test for record/replay of the kernel image boot for two different arm platforms. Signed-off-by: Pavel Dovgalyuk Tested-by: Philippe Mathieu-Daude Message-Id: <159073590785.20809.17654573764167037499.stgit@pasha-ThinkPad-X280> Reviewed-by: Philippe Mathie

[PULL 4/8] tests/acceptance: add record/replay test for aarch64

2020-06-22 Thread Philippe Mathieu-Daudé
From: Pavel Dovgalyuk This patch adds a test for record/replay of the kernel image boot for aarch64 platform. Signed-off-by: Pavel Dovgalyuk Tested-by: Philippe Mathieu-Daude Message-Id: <159073590231.20809.9842179251741585482.stgit@pasha-ThinkPad-X280> Reviewed-by: Philippe Mathieu-Daudé Sig

[PULL 3/8] tests/acceptance: add kernel record/replay test for x86_64

2020-06-22 Thread Philippe Mathieu-Daudé
From: Pavel Dovgalyuk This patch adds a test for record/replay an execution of x86_64 machine. Execution scenario includes simple kernel boot, which allows testing basic hardware interaction in RR mode. Signed-off-by: Pavel Dovgalyuk Tested-by: Philippe Mathieu-Daude Message-Id: <159073589656.

[PULL 6/8] tests/acceptance: add record/replay test for ppc64

2020-06-22 Thread Philippe Mathieu-Daudé
From: Pavel Dovgalyuk This patch adds a test for record/replay of the kernel image boot for ppc64 platform. Signed-off-by: Pavel Dovgalyuk Tested-by: Philippe Mathieu-Daude Message-Id: <159073591363.20809.15658672985367330140.stgit@pasha-ThinkPad-X280> Reviewed-by: Philippe Mathieu-Daudé Sign

[PULL 7/8] tests/acceptance: add record/replay test for m68k

2020-06-22 Thread Philippe Mathieu-Daudé
From: Pavel Dovgalyuk This patch adds a test for record/replay of the kernel image boot for m68k platform. Signed-off-by: Pavel Dovgalyuk Tested-by: Philippe Mathieu-Daude Reviewed-by: Laurent Vivier Message-Id: <159073592033.20809.1838967871297177313.stgit@pasha-ThinkPad-X280> Signed-off-by:

Re: [PATCH 5/6] audio/jack: honour the enable state of the audio device

2020-06-22 Thread Gerd Hoffmann
On Sun, Jun 21, 2020 at 02:06:25PM +1000, Geoffrey McRae wrote: > > > Can you stop the stream without closing the connection? > > Not as far as I can tell, it seems the JACK API doesn't allow for this in a > way that is useful to us. What happens if you don't feed data to jack? The cracking you

[PULL 8/8] tests/acceptance: record/replay tests with advcal images

2020-06-22 Thread Philippe Mathieu-Daudé
From: Pavel Dovgalyuk This patch adds more record/replay tests with kernel images. Signed-off-by: Pavel Dovgalyuk Tested-by: Philippe Mathieu-Daude Message-Id: <159073592589.20809.5156301499042635614.stgit@pasha-ThinkPad-X280> Reviewed-by: Philippe Mathieu-Daudé [PMD: Use os.path.join(), add

Re: [PATCH v2 3/6] cputlb: ensure we save the IOTLB data in case of reset

2020-06-22 Thread Alex Bennée
Emilio G. Cota writes: > On Wed, Jun 10, 2020 at 16:55:06 +0100, Alex Bennée wrote: >> Any write to a device might cause a re-arrangement of memory >> triggering a TLB flush and potential re-size of the TLB invalidating >> previous entries. This would cause users of qemu_plugin_get_hwaddr() >>

Re: [PATCH v3 9/9] host trust limitation: Alter virtio default properties for protected guests

2020-06-22 Thread Daniel P . Berrangé
On Sat, Jun 20, 2020 at 06:24:27PM +1000, David Gibson wrote: > On Fri, Jun 19, 2020 at 04:05:56PM +0100, Daniel P. Berrangé wrote: > > On Sat, Jun 20, 2020 at 12:45:41AM +1000, David Gibson wrote: > > > On Fri, Jun 19, 2020 at 11:12:45AM +0100, Daniel P. Berrangé wrote: > > > > On Fri, Jun 19, 202

[Bug 1884507] [NEW] 'none' machine should use 'none' display option

2020-06-22 Thread Philippe Mathieu-Daudé
Public bug reported: As the 'none' machine doesn't have any peripheral (except CPU cores) it is pointless to start a display. '-M none' should imply '-display none'. ** Affects: qemu Importance: Undecided Status: New -- You received this bug notification because you are a member

Re: make test failure for iotest 267 on qemu-system-sparc64

2020-06-22 Thread Thomas Huth
On 07/03/2020 10.48, Mark Cave-Ayland wrote: > Hi all, > > After a recent rebase I've started seeing iotest 267 after running "make > check" on > qemu-system-sparc64. The diff output looks similar to this: > > --- /home/build/src/qemu/git/qemu/tests/qemu-iotests/267.out2020-01-22 > 17:57:54.

Re: [PATCH 5/6] audio/jack: honour the enable state of the audio device

2020-06-22 Thread Geoffrey McRae
On 2020-06-22 19:05, Gerd Hoffmann wrote: On Sun, Jun 21, 2020 at 02:06:25PM +1000, Geoffrey McRae wrote: > Can you stop the stream without closing the connection? Not as far as I can tell, it seems the JACK API doesn't allow for this in a way that is useful to us. What happens if you do

[Bug 1884302] Re: disable automatic mouse grabbing

2020-06-22 Thread Gerd Hoffmann
FYI: The gtk ui has support for that. Try "-display gtk,grab-on- hover=off". You can also toggle it in the "view" menu. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1884302 Title: disable autom

Re: [PATCH 1/2] qcow2: Force preallocation with data-file-raw

2020-06-22 Thread Max Reitz
On 19.06.20 18:47, Alberto Garcia wrote: > On Fri 19 Jun 2020 12:40:11 PM CEST, Max Reitz wrote: >> +if (qcow2_opts->data_file_raw && >> +qcow2_opts->preallocation == PREALLOC_MODE_OFF) >> +{ >> +/* >> + * data-file-raw means that "the external data file can be >> +

Re: [PATCH v4 1/5] acpi: Convert build_tpm2() to build_append* API

2020-06-22 Thread Igor Mammedov
On Fri, 19 Jun 2020 07:19:51 -0400 Stefan Berger wrote: > On 6/19/20 5:43 AM, Auger Eric wrote: > > Hi Laszlo, > > > > On 6/19/20 11:38 AM, Laszlo Ersek wrote: > >> On 06/18/20 09:50, Auger Eric wrote: > >>> Hi Stefan, Igor, > >>> > >>> On 6/16/20 4:11 PM, Stefan Berger wrote: > On 6/1

[PATCH v2 00/16] Crazy shit around -global (pardon my french)

2020-06-22 Thread Markus Armbruster
There are three ways to configure backends: * -nic, -serial, -drive, ... (onboard devices) * Set the property with -device, or, if you feel masochistic, with -set device (pluggable devices) * Set the property with -global (both) The trouble is -global is terrible. It gets applied in object_n

[PATCH v2 07/16] docs/qdev-device-use.txt: Update section "Default Devices"

2020-06-22 Thread Markus Armbruster
Resynchronize the table of default device suppressions with vl.c's default_list[]. Signed-off-by: Markus Armbruster --- docs/qdev-device-use.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/qdev-device-use.txt b/docs/qdev-device-use.txt index 3d781be547..4bbbcf561

[PATCH v2 02/16] iotests/172: Cover empty filename and multiple use of drives

2020-06-22 Thread Markus Armbruster
Signed-off-by: Markus Armbruster --- tests/qemu-iotests/172 | 12 + tests/qemu-iotests/172.out | 50 ++ 2 files changed, 62 insertions(+) diff --git a/tests/qemu-iotests/172 b/tests/qemu-iotests/172 index 19c2516cf8..714c7527b4 100755 --- a/tests/q

[PATCH v2 14/16] arm/aspeed: Drop aspeed_board_init_flashes() parameter @errp

2020-06-22 Thread Markus Armbruster
We always pass &error_abort. Drop the parameter, use &error_abort directly. Cc: Cédric Le Goater Cc: Peter Maydell Cc: Andrew Jeffery Cc: Joel Stanley Cc: qemu-...@nongnu.org Signed-off-by: Markus Armbruster Reviewed-by: Cédric Le Goater Reviewed-by: Philippe Mathieu-Daudé --- hw/arm/aspe

[PATCH v2 05/16] fdc: Open-code fdctrl_init_isa()

2020-06-22 Thread Markus Armbruster
Helper function fdctrl_init_isa() is less than helpful: one of three places creating "isa-fdc" devices use it. Open-code it there, and drop the function. Signed-off-by: Markus Armbruster Reviewed-by: Philippe Mathieu-Daudé --- include/hw/block/fdc.h | 1 - hw/block/fdc.c | 14

[PATCH v2 08/16] blockdev: Deprecate -drive with bogus interface type

2020-06-22 Thread Markus Armbruster
Drives with interface types other than if=none are for onboard devices. Unfortunately, any such drives the board doesn't pick up can still be used with -device, like this: $ qemu-system-x86_64 -nodefaults -display none -S -drive if=floppy,id=bogus,unit=7 -device ide-cd,drive=bogus -monitor s

[PATCH v2 16/16] sd/milkymist-memcard: Fix error API violation

2020-06-22 Thread Markus Armbruster
The Error ** argument must be NULL, &error_abort, &error_fatal, or a pointer to a variable containing NULL. Passing an argument of the latter kind twice without clearing it in between is wrong: if the first call sets an error, it no longer points to NULL for the second call. milkymist_memcard_rea

[PATCH v2 01/16] iotests/172: Include "info block" in test output

2020-06-22 Thread Markus Armbruster
The additional output demonstrates we screw up when -global isa-fdc clashes with -drive if=floppy or its sugared forms: according to "info qtree", only the latter backend is attached, but according to "info block", both are. For instance: Testing: -fda TEST_DIR/t.qcow2 -drive if=none,file=TES

[PATCH v2 03/16] iotests/172: Cover -global floppy.drive=...

2020-06-22 Thread Markus Armbruster
Use of -global to set a default backend for non-singleton devices is a bad idea. But as long as we permit it, we better test it. Test output demonstrates we screw up when -global floppy clashes with -fda or with -device floppy: according to "info qtree", only the latter backend is attached, but a

[PATCH v2 10/16] qdev: Improve netdev property override error a bit

2020-06-22 Thread Markus Armbruster
qdev_prop_set_netdev() fails when the property already has a non-null value. Seems to go back to commit 30c367ed44 "qdev-properties-system.c: Allow vlan or netdev for -device, not both", v1.7.0. Board code doesn't expect failure, and crashes: $ qemu-system-x86_64 --nodefaults -nic user -netd

[PATCH v2 11/16] qdev: Reject drive property override

2020-06-22 Thread Markus Armbruster
qdev_prop_set_drive() screws up when the property already has a non-null value: it neglects to release the old value. Both the old and the new backend become attached to the same device. Example (taken from iotest 172): -fda ... -drive if=none,... -global floppy.drive=none0. Special case: attemp

Re: [PATCH 1/2] qcow2: Force preallocation with data-file-raw

2020-06-22 Thread Max Reitz
On 22.06.20 11:35, Max Reitz wrote: > On 19.06.20 18:47, Alberto Garcia wrote: >> On Fri 19 Jun 2020 12:40:11 PM CEST, Max Reitz wrote: >>> +if (qcow2_opts->data_file_raw && >>> +qcow2_opts->preallocation == PREALLOC_MODE_OFF) >>> +{ >>> +/* >>> + * data-file-raw mea

[PATCH v2 09/16] qdev: Eliminate get_pointer(), set_pointer()

2020-06-22 Thread Markus Armbruster
We stopped using get_pointer() and set_pointer() for netdev in commit 23120b13c6 "net: don't use set/get_pointer() in set/get_netdev()" (v2.3.0), and for chardev in commit becdfa00cf "char: replace PROP_CHR with CharBackend" (v2.8.0). With only the drive user left, they're not helpful anymore. El

[PATCH v2 12/16] qdev: Reject chardev property override

2020-06-22 Thread Markus Armbruster
qdev_prop_set_chr() screws up when the property already has a non-null value: it neglects to release the old value. Both the old and the new backend become attached to the same device. Unlike for block devices (see previous commit), this can't be observed from the monitor (I think). Example: -se

[PATCH v2 06/16] fdc: Deprecate configuring floppies with -global isa-fdc

2020-06-22 Thread Markus Armbruster
Deprecate -global isa-fdc.driveA=... -global isa-fdc.driveB=... in favour of -device floppy,unit=0,drive=... -device floppy,unit=1,drive=... Same for the other floppy controller devices. Signed-off-by: Markus Armbruster Acked-by: John Snow --- docs/qdev-device-use.txt | 13

Re: [PATCH 0/2] qcow2: Force preallocation with data-file-raw

2020-06-22 Thread Max Reitz
On 22.06.20 00:25, Nir Soffer wrote: > On Fri, Jun 19, 2020 at 1:40 PM Max Reitz wrote: >> >> Hi, >> >> As discussed here: >> >> https://lists.nongnu.org/archive/html/qemu-block/2020-02/msg00644.html >> https://lists.nongnu.org/archive/html/qemu-block/2020-04/msg00329.html >> https://lists.nongnu.

[PATCH v2 04/16] fdc: Reject clash between -drive if=floppy and -global isa-fdc

2020-06-22 Thread Markus Armbruster
The floppy controller devices desugar their drive properties into floppy devices (since commit a92bd191a4 "fdc: Move qdev properties to FloppyDrive", v2.8.0). This involves some bad magic in fdctrl_connect_drives(), and exists for backward compatibility. The functions for boards to create floppy

Re: [PATCH v4 1/5] acpi: Convert build_tpm2() to build_append* API

2020-06-22 Thread Auger Eric
Hi Igor, On 6/22/20 11:39 AM, Igor Mammedov wrote: > On Fri, 19 Jun 2020 07:19:51 -0400 > Stefan Berger wrote: > >> On 6/19/20 5:43 AM, Auger Eric wrote: >>> Hi Laszlo, >>> >>> On 6/19/20 11:38 AM, Laszlo Ersek wrote: On 06/18/20 09:50, Auger Eric wrote: > Hi Stefan, Igor, > >>>

[PATCH v2 13/16] qdev: Make qdev_prop_set_drive() match the other helpers

2020-06-22 Thread Markus Armbruster
qdev_prop_set_drive() can fail. None of the other qdev_prop_set_FOO() can; they abort on error. To clean up this inconsistency, rename qdev_prop_set_drive() to qdev_prop_set_drive_err(), and create a qdev_prop_set_drive() that aborts on error. Coccinelle script to update callers: @ depends

[PATCH v2 15/16] sd/pxa2xx_mmci: Don't crash on pxa2xx_mmci_init() error

2020-06-22 Thread Markus Armbruster
On error, pxa2xx_mmci_init() reports to stderr and returns NULL. Callers don't check for errors. Machines akita, borzoi, mainstone, spitz, terrier, tosa, and z2 crash shortly after, like this: $ qemu-system-aarch64 -M akita -drive if=sd,readonly=on qemu-system-aarch64: failed to init SD c

Re: [PATCH v4 7/8] hw/misc/pca9552: Trace GPIO change events

2020-06-22 Thread Philippe Mathieu-Daudé
On 6/22/20 9:01 AM, Cédric Le Goater wrote: > On 6/21/20 12:58 AM, Philippe Mathieu-Daudé wrote: >> Emit a trace event when a GPIO change its state. > > I understand now why you need 'pin_status'. > > We could compute 'pin_status' and 'pin_changed' in routine > pca9552_update_pin_input() when u

Re: [PATCH v2 16/16] sd/milkymist-memcard: Fix error API violation

2020-06-22 Thread Philippe Mathieu-Daudé
On 6/22/20 11:42 AM, Markus Armbruster wrote: > The Error ** argument must be NULL, &error_abort, &error_fatal, or a > pointer to a variable containing NULL. Passing an argument of the > latter kind twice without clearing it in between is wrong: if the > first call sets an error, it no longer poin

Re: [PATCH v4 2/9] pc-bios: s390x: Consolidate timing functions into time.h

2020-06-22 Thread Thomas Huth
On 22/06/2020 09.42, Janosch Frank wrote: > Let's consolidate timing related functions into one header. > > Signed-off-by: Janosch Frank > --- > pc-bios/s390-ccw/menu.c| 1 + > pc-bios/s390-ccw/netmain.c | 15 +++ > pc-bios/s390-ccw/s390-ccw.h| 8 > pc-bios

Re: [PATCH v4 2/9] pc-bios: s390x: Consolidate timing functions into time.h

2020-06-22 Thread Thomas Huth
On 22/06/2020 12.02, Thomas Huth wrote: > On 22/06/2020 09.42, Janosch Frank wrote: >> Let's consolidate timing related functions into one header. >> >> Signed-off-by: Janosch Frank >> --- >> pc-bios/s390-ccw/menu.c| 1 + >> pc-bios/s390-ccw/netmain.c | 15 +++ >> pc-bios

Re: [PATCH v4 3/9] pc-bios: s390x: Move sleep and yield to helper.h

2020-06-22 Thread Thomas Huth
On 22/06/2020 09.42, Janosch Frank wrote: > They are definitely helper functions. > > Signed-off-by: Janosch Frank > Reviewed-by: Christian Borntraeger > --- > pc-bios/s390-ccw/helper.h | 17 + > pc-bios/s390-ccw/s390-ccw.h| 18 -- > pc-bios/s390-ccw/vir

Re: [PATCH] qga: Use gethostname() instead of g_get_host_name()

2020-06-22 Thread Michal Privoznik
On 6/19/20 11:54 PM, Richard Henderson wrote: On 6/16/20 1:34 AM, Michal Privoznik wrote: +#ifndef G_OS_WIN32 Nit: positive tests are easier to reason with and extend than negative tests. I would reverse these two blocks and use a positive test for windows. Also, CONFIG_WIN32 is what we use e

Re: [PATCH v2 00/16] Crazy shit around -global (pardon my french)

2020-06-22 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20200622094227.1271650-1-arm...@redhat.com/ Hi, This series seems to have some coding style problems. See output below for more information: Subject: [PATCH v2 00/16] Crazy shit around -global (pardon my french) Type: series Message-id: 20200622094227.127

RE: [PATCH v2 0/7] riscv: Switch to use generic platform of opensbi bios images

2020-06-22 Thread Anup Patel
> -Original Message- > From: Qemu-riscv bounces+anup.patel=wdc@nongnu.org> On Behalf Of Bin Meng > Sent: 22 June 2020 12:03 > To: Alistair Francis ; Bastian Koppelmann > ; Palmer Dabbelt > ; Sagar Karandikar > ; qemu-devel@nongnu.org; qemu- > ri...@nongnu.org > Cc: Anup Patel ; Bin

QEMU | Pipeline #158179489 has failed for master | 06c4cc36

2020-06-22 Thread GitLab via
Your pipeline has failed. Project: QEMU ( https://gitlab.com/qemu-project/qemu ) Branch: master ( https://gitlab.com/qemu-project/qemu/-/commits/master ) Commit: 06c4cc36 ( https://gitlab.com/qemu-project/qemu/-/commit/06c4cc3660b366278bdc7bc8b6677032d7b1118c ) Commit Message: qht: Fix thresh

Re: [PATCH] qga: Use gethostname() instead of g_get_host_name()

2020-06-22 Thread Philippe Mathieu-Daudé
Hi Michal, On 6/16/20 10:34 AM, Michal Privoznik wrote: > Problem with g_get_host_name() is that on the first call it saves > the hostname into a global variable and from then on, every > subsequent call returns the saved hostname. Even if the hostname > changes. This doesn't play nicely with gues

Re: [PATCH v3 12/16] python/machine.py: Add _qmp access shim

2020-06-22 Thread Kevin Wolf
Am 20.06.2020 um 10:20 hat Philippe Mathieu-Daudé geschrieben: > On Sat, Jun 20, 2020 at 10:14 AM Philippe Mathieu-Daudé > wrote: > > > > On 6/4/20 10:22 PM, John Snow wrote: > > > Like many other Optional[] types, it's not always a given that this > > > object will be set. Wrap it in a type-shi

Re: [PATCH] target/xtensa: drop gen_io_end call

2020-06-22 Thread Peter Maydell
On Mon, 22 Jun 2020 at 06:36, Max Filippov wrote: > > Since commit > ba3e7926691e ("icount: clean up cpu_can_io at the entry to the block") > it has been unnecessary for target code to call gen_io_end() after an IO > instruction in icount mode; it is sufficient to call gen_io_start() > before it a

Re: [PATCH v2 1/3] block: Add bdrv_co_get_lba_status

2020-06-22 Thread Stefan Hajnoczi
On Wed, Jun 17, 2020 at 06:30:16PM +0800, Lin Ma wrote: > The get lba status wrapper based on the bdrv_block_status. The following > patches will add GET LBA STATUS 16 support for scsi emulation layer. > > Signed-off-by: Lin Ma > --- > block/io.c| 43 +

Re: [PATCH v3 1/8] s390/sclp: get machine once during read scp/cpu info

2020-06-22 Thread Cornelia Huck
On Thu, 18 Jun 2020 18:22:51 -0400 Collin Walling wrote: > Functions within read scp/cpu info will need access to the machine > state. Let's make a call to retrieve the machine state once and > pass the appropriate data to the respective functions. > > Signed-off-by: Collin Walling > Reviewed-b

[REPORT] [GSoC - TCG Continuous Benchmarking] [#1] Measuring Basic Performance Metrics of QEMU

2020-06-22 Thread Ahmed Karaman
Greetings, Welcome to the TCG Continuous Benchmarking GSoC project! This is the first report in a series that will be posted here on the mailing list as part of the project. During the project, multiple Linux profiling tools will be used. These tools will help you profile your different QEMU exec

Re: [PATCH v3 2/8] s390/sclp: check sccb len before filling in data

2020-06-22 Thread Cornelia Huck
On Thu, 18 Jun 2020 18:22:52 -0400 Collin Walling wrote: > The SCCB must be checked for a sufficient length before it is filled > with any data. If the length is insufficient, then the SCLP command > is suppressed and the proper response code is set in the SCCB header. > > Fixes: 832be0d8a3bb ("

[PATCH 00/22] Error handling fixes & cleanups

2020-06-22 Thread Markus Armbruster
This series addresses a number of error handling issues I found while working on error handling improvements. It's based on my "[PATCH v2 00/16] Crazy shit around -global (pardon my french)". Based-on: <20200622094227.1271650-1-arm...@redhat.com> Markus Armbruster (22): net/virtio: Fix failove

[PATCH 04/22] tests: Use &error_abort where appropriate

2020-06-22 Thread Markus Armbruster
Receiving the error in a local variable only to assert there is none is less clear than passing &error_abort. Clean up. Signed-off-by: Markus Armbruster --- tests/check-qobject.c | 5 +- tests/test-logging.c | 12 +--- tests/test-qemu-opts.c | 22 ++---

[PATCH 09/22] sd/milkymist-memcard: Plug minor memory leak in realize

2020-06-22 Thread Markus Armbruster
milkymist_memcard_realize() leaks an Error object when realization of its "sd-card" device fails. Quite harmless, since we only ever realize this once, in milkymist_init() via milkymist_memcard_create(). Plug the leak. Fixes: 3d0369ba499866cc6a839f71212d97876500762d Cc: Philippe Mathieu-Daudé C

  1   2   3   4   5   >