RE: [PATCH 11/12] tests/fp: Do not emit implicit-fallthrough warnings in the softfloat tests

2020-12-11 Thread Chenqun (kuhn)
> -Original Message- > From: Thomas Huth [mailto:th...@redhat.com] > Sent: Friday, December 11, 2020 11:24 PM > To: Peter Maydell ; qemu-devel@nongnu.org > Cc: Chenqun (kuhn) ; Richard Henderson > ; Paolo Bonzini > Subject: [PATCH 11/12] tests/fp: Do not emit implicit-fallthrough warnings

Re: [PATCH 0/3] tests/acceptance: Test virtio-rng and -balloon on s390x

2020-12-11 Thread Thomas Huth
On 11/12/2020 21.10, Willian Rampazzo wrote: > On 12/11/20 2:31 PM, Thomas Huth wrote: >> Add two more simple tests to check that virtio-rng and virtio-balloon >> are at least (very) basically working on s390x. >> >> Based-on: 20201204121450.120730-1-coh...@redhat.com >> >> Thomas Huth (3): >>   

Re: [PATCH 2/3] tests/acceptance/machine_s390_ccw_virtio: Test virtio-rng via /dev/hwrng

2020-12-11 Thread Thomas Huth
On 11/12/2020 21.30, Wainer dos Santos Moschetta wrote: > Hi, > > On 12/11/20 2:31 PM, Thomas Huth wrote: >> /dev/hwrng is only functional if virtio-rng is working right, so let's >> add a sanity check for this device node. > > Good idea. > >> >> Signed-off-by: Thomas Huth >> --- >>  

Re: ceph + freeipa ubuntu/fedora common small bug

2020-12-11 Thread Harry Coin
It's the latest ubuntu and fedora distros. On December 11, 2020 5:05:22 AM CST, "Dr. David Alan Gilbert" wrote: >* Harry G. Coin (hgc...@gmail.com) wrote: >> FYI.  Same thing we saw on Fedora installing freeipa, this on ubuntu >> with ceph.  Identical bitmask report. >> >> ... >> >> Fixing

Re: [PATCH] icount: improve exec nocache usage

2020-12-11 Thread Pavel Dovgalyuk
On 12.12.2020 00:41, Richard Henderson wrote: On 12/8/20 3:10 AM, Pavel Dovgalyuk wrote: cpu-exec tries to execute TB without caching when current icount budget is over. But sometimes refilled budget is big enough to try executing cached blocks. This patch checks that instruction budget is big

Re: [PATCH] ide:atapi: check io_buffer_index in ide_atapi_cmd_reply_end

2020-12-11 Thread leonwxqian

Re: [PATCH 0/7] Additional NPCM7xx devices and IPMI BMC emulation support

2020-12-11 Thread Corey Minyard
On Fri, Dec 11, 2020 at 04:26:03PM -0800, Havard Skinnemoen wrote: > On Fri, Dec 11, 2020 at 4:16 PM Corey Minyard wrote: > > > On Fri, Dec 11, 2020 at 12:56:07PM -0800, Hao Wu wrote: > > > Tl,dr: We'll remove the IPMI changes from the current patch set and > > > refactor > > > them in

Re: [PULL 0/6] s390x update

2020-12-11 Thread Peter Maydell
in the Git repository at: > > https://github.com/cohuck/qemu tags/s390x-20201211 > > for you to fetch changes up to c7454f05171405b8013a9d6b57045cd614ccc386: > > s390x/cpu: Use timer_free() in the finalize function to avoid

Re: [PATCH 0/7] Additional NPCM7xx devices and IPMI BMC emulation support

2020-12-11 Thread Hao Wu via
Thanks for the comments! I've removed IPMI part from the patch sets. I'll send a separate patch sets once the refactor is done. I'll also include Havard's documentation in it. I haven't thought of a better name. We can update the name accordingly. On Fri, Dec 11, 2020 at 4:26 PM Havard

Re: [PATCH 0/7] Additional NPCM7xx devices and IPMI BMC emulation support

2020-12-11 Thread Corey Minyard
On Fri, Dec 11, 2020 at 12:56:07PM -0800, Hao Wu wrote: > Tl,dr: We'll remove the IPMI changes from the current patch set and > refactor > them in a separate patch set. > > Thank you for your review! On high level, we are trying to emulate the BMC > side of the IPMI protocol. So we

Re: [PATCH 0/7] Additional NPCM7xx devices and IPMI BMC emulation support

2020-12-11 Thread Havard Skinnemoen via
On Fri, Dec 11, 2020 at 4:16 PM Corey Minyard wrote: > On Fri, Dec 11, 2020 at 12:56:07PM -0800, Hao Wu wrote: > > Tl,dr: We'll remove the IPMI changes from the current patch set and > > refactor > > them in a separate patch set. > > > > Thank you for your review! On high level, we are

[PATCH 7/8] hw/ppc/ppc405_uc: Drop use of ppcuic_init()

2020-12-11 Thread Peter Maydell
Switch the ppc405_uc boards to directly creating and configuring the UIC, rather than doing it via the old ppcuic_init() helper function. We retain the API feature of ppc405ep_init() where it passes back something allowing the callers to wire up devices to the UIC if they need to, even though

[PATCH 8/8] hw/ppc: Remove unused ppcuic_init()

2020-12-11 Thread Peter Maydell
Now we've converted all the callsites to directly create the QOM UIC device themselves, the ppcuic_init() function is unused and can be removed. The enum defining PPCUIC symbolic constants can be moved to the ppc-uic.h header where it more naturally belongs. Signed-off-by: Peter Maydell ---

[PATCH 6/8] hw/ppc: Delete unused ppc405cr_init() code

2020-12-11 Thread Peter Maydell
The function ppc405cr_init() has apparently been unused since it was added in commit 8ecc7913525ecb in 2007. Remove this dead code, so we don't have to convert it away from using ppcuic_init(). Signed-off-by: Peter Maydell --- hw/ppc/ppc405.h| 6 - hw/ppc/ppc405_uc.c | 345

[PATCH 5/8] hw/ppc/sam460ex: Drop use of ppcuic_init()

2020-12-11 Thread Peter Maydell
Switch the sam460ex board to directly creating and configuring the UIC, rather than doing it via the old ppcuic_init() helper function. Signed-off-by: Peter Maydell --- hw/ppc/sam460ex.c | 70 --- 1 file changed, 54 insertions(+), 16 deletions(-)

[PATCH 4/8] hw/ppc/ppc440_bamboo: Drop use of ppcuic_init()

2020-12-11 Thread Peter Maydell
Switch the bamboo board to directly creating and configuring the UIC, rather than doing it via the old ppcuic_init() helper function. Signed-off-by: Peter Maydell --- hw/ppc/ppc440_bamboo.c | 38 +++--- 1 file changed, 27 insertions(+), 11 deletions(-) diff

[PATCH 1/8] hw/ppc/ppc4xx_devs: Make code style fixes to UIC code

2020-12-11 Thread Peter Maydell
In a following commit we will move the PPC UIC implementation to its own file in hw/intc. To prevent checkpatch complaining about that code-motion, fix up the minor style issues first. Signed-off-by: Peter Maydell --- hw/ppc/ppc4xx_devs.c | 25 +++-- 1 file changed, 15

[PATCH 2/8] ppc: Convert PPC UIC to a QOM device

2020-12-11 Thread Peter Maydell
Currently the PPC UIC ("Universal Interrupt Controller") is implemented as a non-QOM device in ppc4xx_devs.c. Convert it to a proper QOM device in hw/intc. The ppcuic_init() function is retained for the moment with its current interface; in subsequent commits this will be tidied up to avoid the

[PATCH 0/8] hw/ppc: Convert UIC device to QOM

2020-12-11 Thread Peter Maydell
This patchseries converts the PPC UIC "Universal Interrupt Controller" to a QOM device. My main reason for doing it is that this fixes a couple of long-standing trivial Coverity issues -- the current ppcuic_init() function allocates an array of qemu_irqs which the callers then leak. (The leak is

[PATCH 3/8] hw/ppc/virtex_ml507: Drop use of ppcuic_init()

2020-12-11 Thread Peter Maydell
Switch the virtex_ml507 board to directly creating and configuring the UIC, rather than doing it via the old ppcuic_init() helper function. This fixes a trivial Coverity-detected memory leak where we were leaking the array of IRQs returned by ppcuic_init(). Fixes: Coverity CID 1421992

Re: [PATCH v2] hw/core: Restrict 'fw-path-provider.c' to system mode emulation

2020-12-11 Thread Paolo Bonzini
On 07/12/20 23:07, Philippe Mathieu-Daudé wrote: fw-path-provider.c is only consumed by qdev-fw.c, which itself is in softmmu_ss[], so we can restrict fw-path-provider.c to softmmu too. Signed-off-by: Philippe Mathieu-Daudé --- v2: Fix author email. --- hw/core/meson.build | 2 +- 1 file

Re: checkpatch.pl block comment detection fail

2020-12-11 Thread Peter Maydell
On Fri, 11 Dec 2020 at 22:54, Doug Evans wrote: > > Hi. > > The coding style docs don't specify this as being bad: > > foo(/*bar=*/true); > > which improves readability at the call site. > It's not a style to be used liberally, but sometimes it's helpful. > > Alas checkpatch.pl claims this is a

Re: [PATCH 14/15] null-machine: do not create a default memdev

2020-12-11 Thread Paolo Bonzini
On 07/12/20 17:43, Igor Mammedov wrote: mc->default_ram_size = 0; -mc->default_ram_id = "ram"; +mc->default_ram_id = NULL; probably that will break: QEMU -m X -M none No, it works. "-m" is simply ignored, because the default memdev is created here: if

Re: [PATCH 3/3] sev: update sev-inject-launch-secret to make gpa optional

2020-12-11 Thread Tom Lendacky
On 12/11/20 4:45 PM, James Bottomley wrote: On Fri, 2020-12-11 at 16:00 -0600, Tom Lendacky wrote: On 12/9/20 11:23 AM, James Bottomley wrote: So for this one I'm not checking the length, which argues it wouldn't be subject to the added length new data rule and I'd have to use a new guid for

Re: [PATCH 3/3] sev: update sev-inject-launch-secret to make gpa optional

2020-12-11 Thread James Bottomley
On Fri, 2020-12-11 at 16:00 -0600, Tom Lendacky wrote: > On 12/9/20 11:23 AM, James Bottomley wrote: > > If the gpa isn't specified, it's value is extracted from the OVMF > > properties table located below the reset vector (and if this > > doesn't > > exist, an error is returned). OVMF has

Re: [PATCH 3/3] sev: update sev-inject-launch-secret to make gpa optional

2020-12-11 Thread Tom Lendacky
On 12/9/20 11:23 AM, James Bottomley wrote: If the gpa isn't specified, it's value is extracted from the OVMF properties table located below the reset vector (and if this doesn't exist, an error is returned). OVMF has defined the GUID for the SEV secret area as

Re: [PATCH v3 0/4] Add a new -action parameter

2020-12-11 Thread Paolo Bonzini
On 11/12/20 17:52, Alejandro Jimenez wrote: This is a follow up to the proposal to add a "-no-panicstop" option to QEMU that would allow us to control whether the VM is paused or allowed to continue running without intervention from a management layer when a guest panic occurs. See the inital

Re: [PATCH v3 00/53] Make qdev static property API usable by any QOM type

2020-12-11 Thread Eduardo Habkost
Paolo, do you have any objections to adding the field property API in this series to QOM, considering the recent discussions about long term plans for QOM properties? Note that I still want to perform most of the changes in this series, even if the code is kept inside `hw/core`. Moving the code

[PATCH v2 3/4] hw/adc: Add an ADC module for NPCM7XX

2020-12-11 Thread Hao Wu via
The ADC is part of NPCM7XX Module. Its behavior is controled by the ADC_CON register. It converts one of the eight analog inputs into a digital input and stores it in the ADC_DATA register when enabled. Reviewed-by: Havard Skinnemoen Reviewed-by: Tyrone Ting Signed-off-by: Hao Wu ---

Re: [PATCH v3 00/53] Make qdev static property API usable by any QOM type

2020-12-11 Thread Paolo Bonzini
On 11/12/20 23:08, Eduardo Habkost wrote: Paolo, do you have any objections to adding the field property API in this series to QOM, considering the recent discussions about long term plans for QOM properties? Note that I still want to perform most of the changes in this series, even if the code

[PATCH v2 1/4] hw/misc: Add clock converter in NPCM7XX CLK module

2020-12-11 Thread Hao Wu via
This patch allows NPCM7XX CLK module to compute clocks that are used by other NPCM7XX modules. Add a new struct NPCM7xxClockConverterState which represents a single converter. Each clock converter in CLK module represents one converter in NPCM7XX CLK Module(PLL, SEL or Divider). Each converter

[PATCH v4 32/32] tests: Add unit test for qdev array properties

2020-12-11 Thread Eduardo Habkost
Add a test case to ensure array properties are behaving as expected. Signed-off-by: Eduardo Habkost --- This is a new patch added in v3 of this series. --- Cc: Paolo Bonzini Cc: "Daniel P. Berrangé" Cc: Eduardo Habkost Cc: qemu-devel@nongnu.org --- tests/test-qdev-global-props.c | 61

[PATCH v2 2/4] hw/timer: Refactor NPCM7XX Timer to use CLK clock

2020-12-11 Thread Hao Wu via
This patch makes NPCM7XX Timer to use a the timer clock generated by the CLK module instead of the magic nubmer TIMER_REF_HZ. Reviewed-by: Havard Skinnemoen Reviewed-by: Tyrone Ting Signed-off-by: Hao Wu --- hw/arm/npcm7xx.c | 5 + hw/timer/npcm7xx_timer.c | 25

[PATCH v2 4/4] hw/misc: Add a PWM module for NPCM7XX

2020-12-11 Thread Hao Wu via
The PWM module is part of NPCM7XX module. Each NPCM7XX module has two identical PWM modules. Each module contains 4 PWM entries. Each PWM has two outputs: frequency and duty_cycle. Both are computed using inputs from software side. This module does not model detail pulse signals since it is

[PATCH v4 30/32] qdev: Rename qdev_get_prop_ptr() to object_field_prop_ptr()

2020-12-11 Thread Eduardo Habkost
The function will be moved to common QOM code, as it is not specific to TYPE_DEVICE anymore. Reviewed-by: Stefan Berger Signed-off-by: Eduardo Habkost --- Changes v1 -> v2: * Rename to object_field_prop_ptr() instead of object_static_prop_ptr() --- Cc: Stefan Berger Cc: Stefano Stabellini Cc:

[PATCH v4 31/32] qdev: Avoid unnecessary DeviceState* variable at set_prop_arraylen()

2020-12-11 Thread Eduardo Habkost
We're just doing pointer math with the device pointer, we can simply use obj instead. Reviewed-by: Marc-André Lureau Signed-off-by: Eduardo Habkost --- Cc: Paolo Bonzini Cc: "Daniel P. Berrangé" Cc: Eduardo Habkost Cc: qemu-devel@nongnu.org --- hw/core/qdev-properties.c | 5 ++--- 1 file

[PATCH v2 0/4] Additional NPCM7xx devices

2020-12-11 Thread Hao Wu via
This patch series include a few more NPCM7XX devices including - Analog Digital Converter (ADC) - Pulse Width Modulation (PWM) We also modified the CLK module to generate clock values using qdev_clock. These clocks are used to determine various clocks in NPCM7XX devices. Thank you for your

checkpatch.pl block comment detection fail

2020-12-11 Thread Doug Evans
Hi. The coding style docs don't specify this as being bad: foo(/*bar=*/true); which improves readability at the call site. It's not a style to be used liberally, but sometimes it's helpful. Alas checkpatch.pl claims this is a block comment. Would it be ok if I try to fix checkpatch.pl to

[PATCH v4 27/32] qdev: Rename qdev_propinfo_* to field_prop_*

2020-12-11 Thread Eduardo Habkost
These functions will be moved to be part of QOM, so rename them. Signed-off-by: Eduardo Habkost --- Changes v2: * Rename to field_prop_* instead of object_propinfo_* --- Cc: Paolo Bonzini Cc: "Daniel P. Berrangé" Cc: Eduardo Habkost Cc: qemu-devel@nongnu.org --- hw/core/qdev-prop-internal.h

[PATCH v4 29/32] qdev: Rename qdev_prop_* to prop_info_*

2020-12-11 Thread Eduardo Habkost
The basic property types in qdev-properties.c are not going to be qdev-specific anymore. Rename the variables to prop_info_*. Signed-off-by: Eduardo Habkost --- Changes v1 -> v2: * Redone patch after moving UUID property to qdev-properties-system.c --- Cc: Paolo Bonzini Cc: "Daniel P.

[PATCH v4 21/32] qdev: Add name argument to PropertyInfo.create method

2020-12-11 Thread Eduardo Habkost
This will make it easier to remove the Property.name field in the future. Signed-off-by: Eduardo Habkost --- This is a new patch added in series v2 --- Cc: Paolo Bonzini Cc: "Daniel P. Berrangé" Cc: Eduardo Habkost Cc: qemu-devel@nongnu.org --- include/hw/qdev-properties.h | 2 +-

[PATCH v4 28/32] qdev: Move qdev_prop_tpm declaration to tpm_prop.h

2020-12-11 Thread Eduardo Habkost
Move the variable declaration close to the macro that uses it. Reviewed-by: Marc-André Lureau Reviewed-by: Stefan Berger Signed-off-by: Eduardo Habkost --- Cc: Stefan Berger Cc: Paolo Bonzini Cc: "Daniel P. Berrangé" Cc: Eduardo Habkost Cc: qemu-devel@nongnu.org --- hw/tpm/tpm_prop.h

[PATCH v4 25/32] qdev: Make qdev_class_add_property() more flexible

2020-12-11 Thread Eduardo Habkost
Support Property.set_default and PropertyInfo.description even if PropertyInfo.create is set. Signed-off-by: Eduardo Habkost --- Changes v1 -> v2: * Patch redone after changes in the previous patches in the series --- Cc: Paolo Bonzini Cc: "Daniel P. Berrangé" Cc: Eduardo Habkost Cc:

[PATCH v4 26/32] qdev: Separate generic and device-specific property registration

2020-12-11 Thread Eduardo Habkost
qdev_class_add_property() and qdev_property_add_static() will have code that's specific for device types. object_class_property_add_field_static() and object_property_add_field() will be generic and part of the QOM field property API. Note that the new functions have a `name` parameter because

[PATCH v4 24/32] qdev: Make PropertyInfo.create return ObjectProperty*

2020-12-11 Thread Eduardo Habkost
Returning ObjectProperty* will be useful for new property registration code that will add additional callbacks to ObjectProperty after registering it. Signed-off-by: Eduardo Habkost --- Changes v1 -> v2: * Redone patch on top of additional changes in series v2 * Commit message reword --- Cc:

[PATCH v4 20/32] qdev: Add name parameter to qdev_class_add_property()

2020-12-11 Thread Eduardo Habkost
This will make it easier to remove Property.name in the future. Signed-off-by: Eduardo Habkost --- This is a new patch added in series v2 --- Cc: Paolo Bonzini Cc: "Daniel P. Berrangé" Cc: Eduardo Habkost Cc: qemu-devel@nongnu.org --- hw/core/qdev-properties.c | 9 + 1 file changed,

[PATCH v4 23/32] qdev: Move dev->realized check to qdev_property_set()

2020-12-11 Thread Eduardo Habkost
Every single qdev property setter function manually checks dev->realized. We can just check dev->realized inside qdev_property_set() instead. The check is being added as a separate function (qdev_prop_allow_set()) because it will become a callback later. Reviewed-by: Stefan Berger

[PATCH v4 19/32] qdev: Avoid using prop->name unnecessarily

2020-12-11 Thread Eduardo Habkost
We already get the property name as argument to the property getter and setters, we don't need to use prop->name. This will make it easier to remove the Property.name field in the future. Reviewed-by: Stefan Berger Signed-off-by: Eduardo Habkost --- This is a new patch added in series v2 ---

[PATCH v4 16/32] qdev: Reuse DEFINE_PROP in all DEFINE_PROP_* macros

2020-12-11 Thread Eduardo Habkost
Instead of duplicating the code that sets name, info, offset, and does type checking, make DEFINE_PROP accept a variable number of arguments and reuse it in all DEFINE_PROP_* macros. Signed-off-by: Eduardo Habkost --- Changes v1 -> v2: * Redone after UUID property was moved --- Cc: Paolo Bonzini

[PATCH v4 10/32] qdev: Make qdev_find_global_prop() get Object* argument

2020-12-11 Thread Eduardo Habkost
Make the code more generic and not specific to TYPE_DEVICE. Reviewed-by: Marc-André Lureau Signed-off-by: Eduardo Habkost --- Cc: Paolo Bonzini Cc: "Daniel P. Berrangé" Cc: Eduardo Habkost Cc: qemu-devel@nongnu.org --- include/hw/qdev-properties.h | 2 +-

[PATCH v4 22/32] qdev: Wrap getters and setters in separate helpers

2020-12-11 Thread Eduardo Habkost
We'll add extra code to the qdev property getters and setters, so add wrapper functions where additional actions can be performed. The new functions have a "field_prop_" prefix instead of "qdev_" because the code will eventually be moved outside qdev-properties.c, to common QOM code.

[PATCH v4 11/32] qdev: Make check_prop_still_unset() get Object* argument

2020-12-11 Thread Eduardo Habkost
Make the code more generic and not specific to TYPE_DEVICE. Reviewed-by: Marc-André Lureau Signed-off-by: Eduardo Habkost --- Cc: Paolo Bonzini Cc: "Daniel P. Berrangé" Cc: Eduardo Habkost Cc: qemu-devel@nongnu.org --- hw/core/qdev-properties-system.c | 10 +- 1 file changed, 5

[PATCH v4 15/32] qdev: Move softmmu properties to qdev-properties-system.h

2020-12-11 Thread Eduardo Habkost
Move the property types and property macros implemented in qdev-properties-system.c to a new qdev-properties-system.h header. Signed-off-by: Eduardo Habkost --- Changes v1 -> v2: * Move UUID property type too, as it was moved to qdev-properties-system.c in the previous patch --- audio/audio.h

[PATCH v4 17/32] sparc: Use DEFINE_PROP for nwindows property

2020-12-11 Thread Eduardo Habkost
Use the DEFINE_PROP macro (which will set extra fields in the struct) instead of initializing a Property struct manually. Signed-off-by: Eduardo Habkost --- This is a new patch added in v2 of the series --- Cc: Mark Cave-Ayland Cc: Artyom Tarasenko Cc: qemu-devel@nongnu.org ---

[PATCH v4 14/32] qdev: Move UUID property to qdev-properties-system.c

2020-12-11 Thread Eduardo Habkost
Only softmmu code uses DEFINE_PROP_UUID, and it currently depends on error_set_from_qdev_prop_error(). Move it to qdev-properties-system.c to get out of our way when refactoring the qdev property system. We can eventually move it back to the core property system later, after removing usage of

[PATCH v4 18/32] qdev: Get just property name at error_set_from_qdev_prop_error()

2020-12-11 Thread Eduardo Habkost
Replace `Property *prop` parameter with `char *name`, to reduce dependency of getter and setter functions on the Property struct (which will be changed in following patches). Signed-off-by: Eduardo Habkost --- This is a new patch added in series v2 --- Cc: Paolo Bonzini Cc: "Daniel P. Berrangé"

[PATCH v4 13/32] qdev: Make qdev_propinfo_get_uint16() static

2020-12-11 Thread Eduardo Habkost
There are no users of the function outside qdev-properties.c. Make function static and rename it to get_uint16(). Reviewed-by: Marc-André Lureau Signed-off-by: Eduardo Habkost --- Cc: Paolo Bonzini Cc: "Daniel P. Berrangé" Cc: Eduardo Habkost Cc: qemu-devel@nongnu.org ---

[PATCH v4 07/32] qdev: Make PropertyInfo.print method get Object* argument

2020-12-11 Thread Eduardo Habkost
Make the code more generic and not specific to TYPE_DEVICE. Reviewed-by: Marc-André Lureau Signed-off-by: Eduardo Habkost --- Cc: Paolo Bonzini Cc: "Daniel P. Berrangé" Cc: Eduardo Habkost Cc: qemu-devel@nongnu.org --- include/hw/qdev-properties.h | 2 +-

[PATCH v4 12/32] qdev: Make error_set_from_qdev_prop_error() get Object* argument

2020-12-11 Thread Eduardo Habkost
Make the code more generic and not specific to TYPE_DEVICE. Reviewed-by: Marc-André Lureau Reviewed-by: Cornelia Huck #s390 parts Signed-off-by: Eduardo Habkost --- Cc: Paolo Bonzini Cc: "Daniel P. Berrangé" Cc: Eduardo Habkost Cc: Cornelia Huck Cc: Thomas Huth Cc: Richard Henderson Cc:

[PATCH v4 06/32] qdev: Don't use dev->id on set_size32() error message

2020-12-11 Thread Eduardo Habkost
All other qdev property error messages use "." instead of ".". Change set_size32() for consistency, and to make the code not specific to TYPE_DEVICE. Reviewed-by: Marc-André Lureau Signed-off-by: Eduardo Habkost --- Cc: Paolo Bonzini Cc: "Daniel P. Berrangé" Cc: Eduardo Habkost Cc:

[PATCH v4 05/32] sparc: Check dev->realized at sparc_set_nwindows()

2020-12-11 Thread Eduardo Habkost
sparc_set_nwindows() is one of the very few property setters that don't check dev->realized, and there's no reason for it to be special. Check dev->realized like the other setters. Reviewed-by: Marc-André Lureau Signed-off-by: Eduardo Habkost --- Cc: Mark Cave-Ayland Cc: Artyom Tarasenko Cc:

[PATCH v4 04/32] qdev: Check dev->realized at set_size()

2020-12-11 Thread Eduardo Habkost
This setter is one of the very few property setters that don't check dev->realized, and there's no reason to make size properties different from the rest. Add the missing check. Fixes: e8cd45c78f53 ("qdev: Add SIZE type to qdev properties") Reviewed-by: Marc-André Lureau Signed-off-by: Eduardo

[PATCH v4 00/32] qdev property code cleanup

2020-12-11 Thread Eduardo Habkost
This code contains the first 32 patches from the series: Subject: [PATCH v3 00/53] Make qdev static property API usable by any QOM type https://lore.kernel.org/qemu-devel/20201112214350.872250-1-ehabk...@redhat.com I'm submitting this separately so we can merge the qdev-specific cleanup

[PATCH v4 09/32] qdev: Make qdev_get_prop_ptr() get Object* arg

2020-12-11 Thread Eduardo Habkost
Make the code more generic and not specific to TYPE_DEVICE. Reviewed-by: Marc-André Lureau Reviewed-by: Cornelia Huck #s390 parts Signed-off-by: Eduardo Habkost --- Changes v1 -> v2: - Fix build error with CONFIG_XEN I took the liberty of keeping the Reviewed-by line from Marc-André as the

[PATCH v4 03/32] qdev: Move property code to qdev-properties.[ch]

2020-12-11 Thread Eduardo Habkost
Move everything related to Property and PropertyInfo to qdev-properties.[ch] to make it easier to refactor that code. Reviewed-by: Marc-André Lureau Signed-off-by: Eduardo Habkost --- Cc: Paolo Bonzini Cc: "Daniel P. Berrangé" Cc: Eduardo Habkost Cc: qemu-devel@nongnu.org ---

[PATCH v4 02/32] cpu: Move cpu_common_props to hw/core/cpu.c

2020-12-11 Thread Eduardo Habkost
There's no reason to keep the property list separate from the CPU class code. Move the variable to hw/core/cpu.c and make it static. Reviewed-by: Marc-André Lureau Signed-off-by: Eduardo Habkost --- Cc: Eduardo Habkost Cc: Marcel Apfelbaum Cc: qemu-devel@nongnu.org --- include/hw/core/cpu.h

[PATCH v4 08/32] qdev: Make bit_prop_set() get Object* argument

2020-12-11 Thread Eduardo Habkost
Make the code more generic and not specific to TYPE_DEVICE. Reviewed-by: Marc-André Lureau Signed-off-by: Eduardo Habkost --- Cc: Paolo Bonzini Cc: "Daniel P. Berrangé" Cc: Eduardo Habkost Cc: qemu-devel@nongnu.org --- hw/core/qdev-properties.c | 10 ++ 1 file changed, 6

[PATCH v4 01/32] cs4231: Get rid of empty property array

2020-12-11 Thread Eduardo Habkost
An empty props array is unnecessary, we can just not call device_class_set_props(). Reviewed-by: Marc-André Lureau Signed-off-by: Eduardo Habkost --- Cc: Gerd Hoffmann Cc: qemu-devel@nongnu.org --- hw/audio/cs4231.c | 5 - 1 file changed, 5 deletions(-) diff --git a/hw/audio/cs4231.c

Re: [PATCH 1/1] trace: Send "-d trace:help" output to stdout

2020-12-11 Thread Doug Evans
Thanks. I gather this is a first step in getting the patch into master? If so, OOC, how many separate "staging" trees are there for the master branch? (is there a list?) On Thu, Dec 10, 2020 at 3:25 AM Stefan Hajnoczi wrote: > On Wed, Nov 25, 2020 at 01:52:45PM -0800, Doug Evans wrote: > > ...

Re: [PATCH] icount: improve exec nocache usage

2020-12-11 Thread Richard Henderson
On 12/8/20 3:10 AM, Pavel Dovgalyuk wrote: > cpu-exec tries to execute TB without caching when current > icount budget is over. But sometimes refilled budget is big > enough to try executing cached blocks. > This patch checks that instruction budget is big enough > for next block execution instead

Re: [PATCH 1/2] target/arm: add support for FEAT_DIT, Data Independent Timing

2020-12-11 Thread Peter Maydell
On Fri, 11 Dec 2020 at 19:51, Richard Henderson wrote: > > On 12/11/20 1:33 PM, Rebecca Cran wrote: > > Is the comment in target/arm/op_helper.c:397 still relevant? > > > > uint32_t HELPER(cpsr_read)(CPUARMState *env) > > { > > /* > > * We store the ARMv8 PSTATE.SS bit in

Re: [PATCH v3 1/5] gitlab-ci: Document 'build-tcg-disabled' is a KVM X86 job

2020-12-11 Thread Willian Rampazzo
On Mon, Dec 7, 2020 at 10:15 AM Philippe Mathieu-Daudé wrote: > > Document what this job cover (build X86 targets with > KVM being the single accelerator available). > > Reviewed-by: Thomas Huth > Signed-off-by: Philippe Mathieu-Daudé > --- > .gitlab-ci.yml | 5 + > 1 file changed, 5

[PATCH v3] colo: Use class properties

2020-12-11 Thread Eduardo Habkost
Instance properties make introspection hard and are not shown by "-object ...,help". Convert them to class properties. Signed-off-by: Eduardo Habkost --- Changes v2 -> v3: * Type of "compare_timeout" was changed to uint64 * Indent fix at "compare_thread" registration statement Notes v2: This

Re: [PATCH v2 09/12] colo: Use class properties

2020-12-11 Thread Eduardo Habkost
On Fri, Nov 13, 2020 at 03:04:55AM +, Zhang, Chen wrote: > Looks good for me, but Qemu still have lots of parts use > object_property_add, do you have plan to change it? Thanks! The plan is to minimize usage of object_property_add(), but that's a huge task. We're doing it gradually when it

Re: [PATCH v2 00/12] qom: Convert some properties to class properties

2020-12-11 Thread Eduardo Habkost
On Wed, Nov 11, 2020 at 01:38:11PM -0500, Eduardo Habkost wrote: > Class properties make QOM introspection simpler and easier, as it > doesn't require an object to be instantiated. This series > converts a few existing object_property_add*() calls to register > class properties instead. > >

Re: [PATCH 1/1] scsi: fix device removal race vs IO restart callback on resume

2020-12-11 Thread Paolo Bonzini
On 10/12/20 13:59, Maxim Levitsky wrote: There is (mostly theoretical) race between removal of a scsi device and scsi_dma_restart_bh. It used to be easier to hit this race prior to my / Paulo's patch series that added rcu to scsi bus device handling code, but IMHO this race should still be

Re: [PATCH 0/7] Additional NPCM7xx devices and IPMI BMC emulation support

2020-12-11 Thread Hao Wu via
Tl,dr: We'll remove the IPMI changes from the current patch set and refactor them in a separate patch set. Thank you for your review! On high level, we are trying to emulate the BMC side of the IPMI protocol. So we cannot directly use the existing IPMI code. However, they do have a lot

Re: [PATCH] icount: improve exec nocache usage

2020-12-11 Thread Paolo Bonzini
On 08/12/20 10:10, Pavel Dovgalyuk wrote: cpu-exec tries to execute TB without caching when current icount budget is over. But sometimes refilled budget is big enough to try executing cached blocks. This patch checks that instruction budget is big enough for next block execution instead of just

Re: [PATCH 3/3] tests/acceptance/machine_s390_ccw_virtio: Test the virtio-balloon device

2020-12-11 Thread Wainer dos Santos Moschetta
On 12/11/20 2:31 PM, Thomas Huth wrote: Inflate the balloon and check whether the size of the memory changes. Yeah, because a true balloon should inflate :D Signed-off-by: Thomas Huth --- tests/acceptance/machine_s390_ccw_virtio.py | 12 +++- 1 file changed, 11 insertions(+), 1

Re: [PATCH v11 05/25] i386: move whpx accel files into whpx/

2020-12-11 Thread Eduardo Habkost
On Fri, Dec 11, 2020 at 09:31:23AM +0100, Claudio Fontana wrote: > Signed-off-by: Claudio Fontana > Reviewed-by: Alex Bennée > --- > target/i386/{ => whpx}/whp-dispatch.h | 0 > target/i386/{ => whpx}/whpx-cpus.h| 0 > target/i386/{ => whpx}/whpx-all.c | 0 > target/i386/{ =>

Re: [PATCH 2/3] tests/acceptance/machine_s390_ccw_virtio: Test virtio-rng via /dev/hwrng

2020-12-11 Thread Wainer dos Santos Moschetta
Hi, On 12/11/20 2:31 PM, Thomas Huth wrote: /dev/hwrng is only functional if virtio-rng is working right, so let's add a sanity check for this device node. Good idea. Signed-off-by: Thomas Huth --- tests/acceptance/machine_s390_ccw_virtio.py | 17 +++-- 1 file changed, 15

Re: Some performance numbers for virtiofs, DAX and virtio-9p

2020-12-11 Thread Dr. David Alan Gilbert
* Vivek Goyal (vgo...@redhat.com) wrote: > On Fri, Dec 11, 2020 at 02:25:17PM -0500, Vivek Goyal wrote: > > On Fri, Dec 11, 2020 at 06:29:56PM +, Dr. David Alan Gilbert wrote: > > > > [..] > > > > > > > > > > Could we measure at what point does a large window size actually make > > > > >

Re: [PATCH 0/3] tests/acceptance: Test virtio-rng and -balloon on s390x

2020-12-11 Thread Willian Rampazzo
On 12/11/20 2:31 PM, Thomas Huth wrote: Add two more simple tests to check that virtio-rng and virtio-balloon are at least (very) basically working on s390x. Based-on: 20201204121450.120730-1-coh...@redhat.com Thomas Huth (3): tests/acceptance: Extract the code to clear dmesg and wait for

Re: [PATCH 11/20] Revert "qobject: let object_property_get_str() use new API"

2020-12-11 Thread Eduardo Habkost
On Fri, Dec 11, 2020 at 06:11:43PM +0100, Markus Armbruster wrote: > Commit aafb21a0b9 "qobject: let object_property_get_str() use new API" > isn't much of a simplification. Not worth having > object_property_get_str() differ from the other > object_property_get_FOO(). Revert. > > This reverts

Re: [PATCH v3 06/13] virtiofsd: replace _Static_assert with QEMU_BUILD_BUG_ON

2020-12-11 Thread Dr. David Alan Gilbert
* marcandre.lur...@redhat.com (marcandre.lur...@redhat.com) wrote: > From: Marc-André Lureau > > This allows to get rid of a check for older GCC version (which was a bit > bogus too since it was falling back on c++ version..) > > Signed-off-by: Marc-André Lureau Yes I think that's OK; this

Re: [PATCH 1/3] tests/acceptance: Extract the code to clear dmesg and wait for CRW reports

2020-12-11 Thread Wainer dos Santos Moschetta
Hi, On 12/11/20 2:31 PM, Thomas Huth wrote: We will use this in more spots soon, so it's easier to put this into a separate function. Signed-off-by: Thomas Huth --- tests/acceptance/machine_s390_ccw_virtio.py | 30 - 1 file changed, 17 insertions(+), 13 deletions(-)

Re: [PATCH v11 18/25] cpu: Move synchronize_from_tb() to tcg_ops

2020-12-11 Thread Eduardo Habkost
On Fri, Dec 11, 2020 at 07:51:54PM +0100, Claudio Fontana wrote: > On 12/11/20 7:26 PM, Philippe Mathieu-Daudé wrote: > > On 12/11/20 7:22 PM, Richard Henderson wrote: > >> On 12/11/20 12:15 PM, Claudio Fontana wrote: > >>> Should I return this file to the original state (without the extra > >>>

Re: Some performance numbers for virtiofs, DAX and virtio-9p

2020-12-11 Thread Vivek Goyal
On Fri, Dec 11, 2020 at 02:25:17PM -0500, Vivek Goyal wrote: > On Fri, Dec 11, 2020 at 06:29:56PM +, Dr. David Alan Gilbert wrote: > > [..] > > > > > > > > Could we measure at what point does a large window size actually make > > > > performance worse? > > > > > > Will do. Will run tests

Re: [PATCH 1/2] target/arm: add support for FEAT_DIT, Data Independent Timing

2020-12-11 Thread Rebecca Cran
On 12/11/20 7:08 AM, Richard Henderson wrote: Alternately, or additionally, TCG is outside of the security domain (only hardware accelerators like KVM are inside), and so we may implement this as a NOP. Thanks for the feedback, I'll send a v2 patch next week. Is the comment in

Re: [PATCH 3/3] virtiofsd: Check file type in lo_flush()

2020-12-11 Thread Dr. David Alan Gilbert
* Vivek Goyal (vgo...@redhat.com) wrote: > On Thu, Dec 10, 2020 at 08:14:31PM +, Dr. David Alan Gilbert wrote: > > * Vivek Goyal (vgo...@redhat.com) wrote: > > > On Thu, Dec 10, 2020 at 08:03:03PM +, Dr. David Alan Gilbert wrote: > > > > * Vivek Goyal (vgo...@redhat.com) wrote: > > > > >

Re: [PATCH 1/2] target/arm: add support for FEAT_DIT, Data Independent Timing

2020-12-11 Thread Richard Henderson
On 12/11/20 1:33 PM, Rebecca Cran wrote: > Is the comment in target/arm/op_helper.c:397 still relevant? > > uint32_t HELPER(cpsr_read)(CPUARMState *env) > { >     /* > * We store the ARMv8 PSTATE.SS bit in env->uncached_cpsr. > * This is convenient for populating SPSR_ELx, but must be >

RE: [PATCH v15 0/4] Add Versal usb model

2020-12-11 Thread Sai Pavan Boddu
Hi, > -Original Message- > From: Peter Maydell > Sent: Friday, December 11, 2020 9:40 PM > To: Sai Pavan Boddu > Cc: Markus Armbruster ; Marc-André Lureau > ; Paolo Bonzini ; > Gerd Hoffmann ; Edgar Iglesias ; > Francisco Eduardo Iglesias ; Alistair Francis > ; Eduardo Habkost ; Ying >

Re: [PATCH v5 00/11] hvf: Implement Apple Silicon Support

2020-12-11 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20201211151300.85322-1-ag...@csgraf.de/ Hi, This series seems to have some coding style problems. See output below for more information: Type: series Message-id: 20201211151300.85322-1-ag...@csgraf.de Subject: [PATCH v5 00/11] hvf: Implement Apple Silicon

Re: [PATCH v11 18/25] cpu: Move synchronize_from_tb() to tcg_ops

2020-12-11 Thread Philippe Mathieu-Daudé
On 12/11/20 7:51 PM, Claudio Fontana wrote: > On 12/11/20 7:26 PM, Philippe Mathieu-Daudé wrote: >> On 12/11/20 7:22 PM, Richard Henderson wrote: >>> On 12/11/20 12:15 PM, Claudio Fontana wrote: Should I return this file to the original state (without the extra #includes that pretend it

Re: [PULL 0/8] Ui 20201211 patches

2020-12-11 Thread Peter Maydell
in the Git repository at: > > git://git.kraxel.org/qemu tags/ui-20201211-pull-request > > for you to fetch changes up to 2951106143f6cf20b3a0e4f2078721503fe6418a: > > sdl2: Add extra mouse buttons (2020-12-11 08:06:40 +0100) > > ---

Re: [PATCH v11 18/25] cpu: Move synchronize_from_tb() to tcg_ops

2020-12-11 Thread Claudio Fontana
On 12/11/20 7:26 PM, Philippe Mathieu-Daudé wrote: > On 12/11/20 7:22 PM, Richard Henderson wrote: >> On 12/11/20 12:15 PM, Claudio Fontana wrote: >>> Should I return this file to the original state (without the extra >>> #includes that pretend it to be a standalone header file, >>> and call it

Re: [PATCH v5 6/7] tcg: implement JIT for iOS and Apple Silicon

2020-12-11 Thread Joelle van Dyne
Sounds good, I will make that change in the next version. -j On Fri, Dec 11, 2020 at 4:36 AM Stefan Hajnoczi wrote: > > On Fri, Dec 11, 2020 at 10:54 AM Alexander Graf wrote: > > On 25.11.20 03:08, Joelle van Dyne wrote: > > > A lot of users of UTM are on iOS 13 (a large number of devices only

Re: Some performance numbers for virtiofs, DAX and virtio-9p

2020-12-11 Thread Vivek Goyal
On Fri, Dec 11, 2020 at 06:29:56PM +, Dr. David Alan Gilbert wrote: [..] > > > > > > Could we measure at what point does a large window size actually make > > > performance worse? > > > > Will do. Will run tests with varying window sizes (small to large) > > and see how does it impact

Re: [PATCH v2 2/8] gitlab: include aarch64-softmmu and ppc64-softmmu cross-system-build

2020-12-11 Thread Wainer dos Santos Moschetta
On 12/10/20 4:04 PM, Alex Bennée wrote: Otherwise we miss coverage of KVM support in the cross build. To balance it out add arm-softmmu (no kvm, subset of aarch64), cris-softmmu and ppc-softmmu to the exclude list which do get coverage elsewhere. Signed-off-by: Alex Bennée ---

Re: [PATCH 19/20] block: Use GString instead of QString to build filenames

2020-12-11 Thread Vladimir Sementsov-Ogievskiy
11.12.2020 20:11, Markus Armbruster wrote: QString supports modifying its string, but it's quite limited: you can only append. Just one caller remains: bdrv_parse_filename_strip_prefix() uses it just for building an initial string. Change it to do build the initial string with GString. This

  1   2   3   4   5   >