Re: [PATCH 3/4] python/qmp-shell: relicense as LGPLv2+

2022-03-29 Thread Eduardo Habkost
ne tool. > > Therefore, I am asking permission from the current authors of this > tool to loosen the license. At present, those people are: > > - John Snow (me!), 411/609 > - Luiz Capitulino, Author, 97/609 > - Daniel Berrangé, 81/609 > - Eduardo Habkost, 10/609 > - Marc

Re: [PATCH] MAINTAINERS: python - remove ehabkost and add bleal

2022-02-09 Thread Eduardo Habkost
On Mon, 7 Feb 2022 at 19:05, John Snow wrote: > > Eduardo Habkost has left Red Hat and has other daily responsibilities to > attend to. In order to stop spamming him on every series, remove him as > "Reviewer" for the python/ library dir and add Beraldo Leal instead. >

Re: [PULL 0/1] MAINTAINERS update

2021-12-01 Thread Eduardo Habkost
On Wed, Dec 1, 2021 at 01:19 Richard Henderson wrote: > On 11/30/21 9:47 PM, Eduardo Habkost wrote: > > * MAINTAINERS: Change my email address (Eduardo Habkost) > > > > Eduardo Habkost (1): > >MAINTAINERS: Change my email address > > > > MAINTAINERS

[PULL 0/1] MAINTAINERS update

2021-11-30 Thread Eduardo Habkost
* MAINTAINERS: Change my email address (Eduardo Habkost) Eduardo Habkost (1): MAINTAINERS: Change my email address MAINTAINERS | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) -- 2.32.0

[PULL 1/1] MAINTAINERS: Change my email address

2021-11-30 Thread Eduardo Habkost
The ehabk...@redhat.com email address will stop working on 2021-12-01, change it to my personal email address. Signed-off-by: Eduardo Habkost Message-Id: <20211129163053.2506734-1-ehabk...@redhat.com> Signed-off-by: Eduardo Habkost --- MAINTAINERS | 12 ++-- 1 file chan

[PATCH] MAINTAINERS: Change my email address

2021-11-29 Thread Eduardo Habkost
The ehabk...@redhat.com email address will stop working on 2021-12-01, change it to my personal email address. Signed-off-by: Eduardo Habkost --- Note: I will probably step down as maintainer of some areas, but I will do this later because I will need a few weeks to figure out how much time I

Re: [PATCH v3 3/3] hw/i386: expose a "smbios-entry-point-type" PC machine property

2021-11-10 Thread Eduardo Habkost
On Tue, Nov 02, 2021 at 07:25:25AM -0400, Michael S. Tsirkin wrote: > On Tue, Nov 02, 2021 at 09:51:35AM +0100, Philippe Mathieu-Daudé wrote: > > On 10/26/21 17:11, Eduardo Habkost wrote: > > > The i440fx and Q35 machine types are both hardcoded to use the > > > legac

Re: [PATCH v3 0/3] Dynamic sysbus device check error report

2021-11-01 Thread Eduardo Habkost
. > But it seems to me these patches make sense already as a standalone > cleanup. > > Only patch 1 miss a review. > > Thanks, > Damien > > v3: > + standalone series > + minor tweaks > > v2 was part of: > https://lists.gnu.org/archive/html/qemu-devel/2021-09/msg05683.html Acked-by: Eduardo Habkost -- Eduardo

[PULL 1/1] target/i386: Remove core-capability in Snowridge CPU model

2021-10-29 Thread Eduardo Habkost
From: Chenyi Qiang Because core-capability releated features are model-specific and KVM won't support it, remove the core-capability in CPU model to avoid the warning message. Signed-off-by: Chenyi Qiang Message-Id: <20210827064818.4698-3-chenyi.qi...@intel.com> Signed-off-by: Edua

[PULL 0/1] x86 CPU model queue, 2021-10-29

2021-10-29 Thread Eduardo Habkost
I should have flushed the queue a long time ago. Apologies for taking so long. A single patch, by now. Probably there are others I missed on the mailing list, and if necessary I will send another pull request. The following changes since commit a92cecba2791cd408d2bca04ce181dc2abaf9695: Merge

Re: [PATCH 0/4] hw/core: Restrict qdev-hotplug to sysemu

2021-10-29 Thread Eduardo Habkost
tract hotplug-related functions to qdev-hotplug.c > hw/core: Restrict hotplug to system emulation Acked-by: Eduardo Habkost -- Eduardo

Re: [PATCH v4 0/2] hw/core/machine: Add an unit test for smp_parse

2021-10-29 Thread Eduardo Habkost
pectively > > 001/2:[0001] [FC] 'hw/core/machine: Split out the smp parsing code' > 002/2:[----] [--] 'tests/unit: Add an unit test for smp parsing' Acked-by: Eduardo Habkost -- Eduardo

Re: [PATCH v3 1/3] smbios: Rename SMBIOS_ENTRY_POINT_* enums

2021-10-27 Thread Eduardo Habkost
On Wed, Oct 27, 2021 at 03:43:43AM -0400, Michael S. Tsirkin wrote: > On Tue, Oct 26, 2021 at 11:10:58AM -0400, Eduardo Habkost wrote: > > Rename the enums to match the naming style used by QAPI, and to > > use "32" and "64" instead of "20" and "31

[PATCH v3 3/3] hw/i386: expose a "smbios-entry-point-type" PC machine property

2021-10-26 Thread Eduardo Habkost
machine type. This adds a property to allow the choice of SMBIOS entry point versions For example to opt in to 64-bit SMBIOS entry point: $QEMU -machine q35,smbios-entry-point-type=64 Based on a patch submitted by Daniel Berrangé. Signed-off-by: Daniel P. Berrangé Signed-off-by: Eduardo Habkost

[PATCH v3 2/3] hw/smbios: Use qapi for SmbiosEntryPointType

2021-10-26 Thread Eduardo Habkost
This prepares for exposing the SMBIOS entry point type as a machine property on x86. Based on a patch from Daniel P. Berrangé. Signed-off-by: Daniel P. Berrangé Signed-off-by: Eduardo Habkost --- First version of this code was submitted at: https://lore.kernel.org/qemu-devel

[PATCH v3 1/3] smbios: Rename SMBIOS_ENTRY_POINT_* enums

2021-10-26 Thread Eduardo Habkost
format and the actual SMBIOS version reported in the entry point structure. For example: currently the 32-bit entry point actually report SMBIOS 2.8 support, not 2.1. Based on portions of a patch submitted by Daniel P. Berrangé. Signed-off-by: Eduardo Habkost --- First version of this code was su

[PATCH v3 0/3] pc: Support configuration of SMBIOS entry point type

2021-10-26 Thread Eduardo Habkost
...@redhat.com https://lore.kernel.org/qemu-devel/20200908165438.1008942-6-berra...@redhat.com Eduardo Habkost (3): smbios: Rename SMBIOS_ENTRY_POINT_* enums hw/smbios: Use qapi for SmbiosEntryPointType hw/i386: expose a "smbios-entry-point-type" PC machine property incl

Re: [PATCH v3 03/22] host-utils: introduce uabs64()

2021-10-21 Thread Eduardo Habkost
On Thu, Oct 21, 2021 at 4:04 PM Richard Henderson wrote: > > On 9/10/21 4:26 AM, Luis Pires wrote: > > Introduce uabs64(), a function that returns the absolute value of > > a 64-bit int as an unsigned value. This avoids the undefined behavior > > for common abs implementations, where abs of the mo

Re: [PATCH] hw/qdev-core: Add compatibility for (non)-transitional devs

2021-10-20 Thread Eduardo Habkost
On Wed, Oct 20, 2021 at 10:58:12AM -0400, Michael S. Tsirkin wrote: > On Wed, Oct 20, 2021 at 10:09:17AM -0400, Eduardo Habkost wrote: > > On Wed, Oct 20, 2021 at 01:02:24PM +0800, Jason Wang wrote: > > > On Wed, Oct 20, 2021 at 9:31 AM Jason Wang wrote: > > > > >

Re: [PATCH] via-ide: Avoid expensive operations in irq handler

2021-10-20 Thread Eduardo Habkost
On Wed, Oct 20, 2021 at 04:58:58PM +0200, BALATON Zoltan wrote: > On Wed, 20 Oct 2021, Eduardo Habkost wrote: > > On Mon, Oct 18, 2021 at 12:10:04PM +0200, Philippe Mathieu-Daudé wrote: > > > On 10/18/21 11:51, BALATON Zoltan wrote: > > > > On Mon, 18 Oct 2021

Re: [PATCH] hw/qdev-core: Add compatibility for (non)-transitional devs

2021-10-20 Thread Eduardo Habkost
On Wed, Oct 20, 2021 at 10:55:59AM -0400, Michael S. Tsirkin wrote: > On Wed, Oct 20, 2021 at 09:57:37AM -0400, Eduardo Habkost wrote: > > On Wed, Oct 20, 2021 at 03:41:38AM -0400, Michael S. Tsirkin wrote: > > > On Tue, Oct 19, 2021 at 12:56:11PM -0400, Eduardo Habkost wrote: &

Re: [RFC PATCH 3/5] target/i386: Enable host pass through of Intel PT

2021-10-20 Thread Eduardo Habkost
On Mon, Oct 18, 2021 at 01:37:12PM +0800, Xiaoyao Li wrote: > On 10/18/2021 11:46 AM, Xiaoyao Li wrote: > > On 10/16/2021 4:22 AM, Eduardo Habkost wrote: > > > On Thu, Sep 09, 2021 at 10:41:48PM +0800, Xiaoyao Li wrote: [...] > > > > +#define INTEL_PT_DEFAULT_0_E

Re: [PATCH] via-ide: Avoid expensive operations in irq handler

2021-10-20 Thread Eduardo Habkost
On Mon, Oct 18, 2021 at 12:10:04PM +0200, Philippe Mathieu-Daudé wrote: > On 10/18/21 11:51, BALATON Zoltan wrote: > > On Mon, 18 Oct 2021, Philippe Mathieu-Daudé wrote: > >> On 10/18/21 03:36, BALATON Zoltan wrote: > >>> Cache the pointer to PCI function 0 (ISA bridge, that this IDE device > >>> h

Re: [PATCH] hw/qdev-core: Add compatibility for (non)-transitional devs

2021-10-20 Thread Eduardo Habkost
On Wed, Oct 20, 2021 at 01:02:24PM +0800, Jason Wang wrote: > On Wed, Oct 20, 2021 at 9:31 AM Jason Wang wrote: > > > > On Wed, Oct 20, 2021 at 12:56 AM Eduardo Habkost > > wrote: > > > > > > On Tue, Oct 19, 2021 at 12:13:17PM -0400, Michael S. Tsirkin wr

Re: [PATCH] hw/qdev-core: Add compatibility for (non)-transitional devs

2021-10-20 Thread Eduardo Habkost
On Wed, Oct 20, 2021 at 03:41:38AM -0400, Michael S. Tsirkin wrote: > On Tue, Oct 19, 2021 at 12:56:11PM -0400, Eduardo Habkost wrote: > > On Tue, Oct 19, 2021 at 12:13:17PM -0400, Michael S. Tsirkin wrote: > > > On Tue, Oct 19, 2021 at 11:29:13AM -0400, Eduardo Habkost wrote: &

Re: [PATCH] hw/qdev-core: Add compatibility for (non)-transitional devs

2021-10-19 Thread Eduardo Habkost
On Tue, Oct 19, 2021 at 12:13:17PM -0400, Michael S. Tsirkin wrote: > On Tue, Oct 19, 2021 at 11:29:13AM -0400, Eduardo Habkost wrote: > > On Tue, Oct 19, 2021 at 06:59:09AM -0400, Michael S. Tsirkin wrote: > > > On Tue, Oct 19, 2021 at 11:46:17AM +0100, Stefan Hajnoczi wrote: &

Re: [PATCH] hw/qdev-core: Add compatibility for (non)-transitional devs

2021-10-19 Thread Eduardo Habkost
On Tue, Oct 19, 2021 at 06:59:09AM -0400, Michael S. Tsirkin wrote: > On Tue, Oct 19, 2021 at 11:46:17AM +0100, Stefan Hajnoczi wrote: > > On Tue, Oct 12, 2021 at 10:36:01AM +0200, Jean-Louis Dupond wrote: > > > Forgot to CC maintainers. > > > > Also CCing Jason Wang and Michael Tsirkin for VIRTIO

Re: [PATCH] hw/qdev-core: Add compatibility for (non)-transitional devs

2021-10-19 Thread Eduardo Habkost
On Tue, Oct 12, 2021 at 10:24:28AM +0200, Jean-Louis Dupond wrote: > hw_compat modes only take into account their base name. What do you mean by "base name"? > But if a device is created with (non)-transitional, then the compat > values are not used, causing migrating issues. > > This commit add

Re: [RFC PATCH 3/5] target/i386: Enable host pass through of Intel PT

2021-10-15 Thread Eduardo Habkost
On Thu, Sep 09, 2021 at 10:41:48PM +0800, Xiaoyao Li wrote: > commit e37a5c7fa459 ("i386: Add Intel Processor Trace feature support") > added the support of Intel PT by making CPUID[14] of PT as fixed feature > set (from ICX) for any CPU model on any host. > > This truly breaks the PT exposing on

Re: [RFC PATCH 2/5] target/i386: Introduce FeatureWordInfo for Intel PT CPUID leaf 0xD

2021-10-15 Thread Eduardo Habkost
Hi, Apologies for the delay. Comments below: On Thu, Sep 09, 2021 at 10:41:47PM +0800, Xiaoyao Li wrote: > CPUID leaf 0x14 subleaf 0x0 and 0x1 enumerate the resource and > capability of Intel PT. > > Introduce FeatureWord FEAT_14_0_EBX, FEAT_14_1_EAX and FEAT_14_1_EBX, > and complete FEAT_14_0_

Re: [RFC PATCH 1/5] target/i386: Print CPUID subleaf info for unsupported feature

2021-10-15 Thread Eduardo Habkost
On Thu, Sep 09, 2021 at 10:41:46PM +0800, Xiaoyao Li wrote: > Some CPUID leaves have meaningful subleaf index. Print the subleaf info > in feature_word_description for CPUID features. > > Signed-off-by: Xiaoyao Li Reviewed-by: Eduardo Habkost -- Eduardo

Re: [PATCH v2 0/2] Remove unsupported features in SNR CPU model

2021-10-15 Thread Eduardo Habkost
On Fri, Aug 27, 2021 at 02:48:16PM +0800, Chenyi Qiang wrote: > Patch 1: > https://lore.kernel.org/qemu-devel/20210825195438.914387-2-ehabk...@redhat.com/ > > Patch 2 removes one more feature (core-capability) in Snowridge-v4 CPU > model based on previous patch. > > Chenyi Qiang (2): > target/

Re: [PATCH v0 0/2] virtio-blk and vhost-user-blk cross-device migration

2021-10-05 Thread Eduardo Habkost
On Tue, Oct 05, 2021 at 03:01:05PM +0100, Dr. David Alan Gilbert wrote: > * Michael S. Tsirkin (m...@redhat.com) wrote: > > On Tue, Oct 05, 2021 at 02:18:40AM +0300, Roman Kagan wrote: > > > On Mon, Oct 04, 2021 at 11:11:00AM -0400, Michael S. Tsirkin wrote: > > > > On Mon, Oct 04, 2021 at 06:07:29

Re: [PATCH v3 1/2] docs: remove non-reference uses of single backticks

2021-09-23 Thread Eduardo Habkost
uires additional information provided in environment variables, we > +pre-define some generic-fuzz configs in > ``tests/qtest/fuzz/generic_fuzz_configs.h``. Each config must specify: [...] Reviewed-by: Eduardo Habkost -- Eduardo

Re: [PATCH v3 2/2] docs/sphinx: change default role to "any"

2021-09-23 Thread Eduardo Habkost
arget cannot be referenced. > > Signed-off-by: John Snow Patch 1/2 demonstrates why patch 2/2 is useful. Reviewed-by: Eduardo Habkost > --- > docs/conf.py | 5 + > 1 file changed, 5 insertions(+) > > diff --git a/docs/conf.py b/docs/conf.py > index ff6e92c6e2e..4d9f5660

Re: [PATCH v2 1/2] docs: remove non-reference uses of single backticks

2021-09-23 Thread Eduardo Habkost
. > +Postcopy migration with shared memory needs explicit support from the > +other processes that share memory and from QEMU. There are restrictions > +on the type of memory that userfault can support shared. Unrelated? Line wrapping change only. Reviewed-by: Eduardo Habkost # if unrelated line wrapping changes are dropped -- Eduardo

Re: [PATCH 2/2] python: pylint 2.11 support

2021-09-16 Thread Eduardo Habkost
On Thu, Sep 16, 2021 at 02:22:48PM -0400, John Snow wrote: > We're not ready to enforce f-strings everywhere, so just silence this > new warning. > > Signed-off-by: John Snow Reviewed-by: Eduardo Habkost -- Eduardo

Re: [PATCH 1/2] python: Update for pylint 2.10

2021-09-16 Thread Eduardo Habkost
g that is currently suppressed. And that will happen only if we are in the unlikely situation where we have absolutely no information about the encoding being used by other parts of the system. Sounds reasonable to me, so: Reviewed-by: Eduardo Habkost > > Signed-off-by: John Snow &g

Re: [PATCH v2 02/19] host-utils: move abs64() to host-utils as uabs64()

2021-08-31 Thread Eduardo Habkost
of the most negative value is > undefined. > > Signed-off-by: Luis Pires Reviewed-by: Eduardo Habkost In case you need to send a new version of the series, I'd suggest separating this into two patches: creation of the uabs64() function in host-utils, and then changing the K

Re: Live migration regarding Intel PT

2021-08-26 Thread Eduardo Habkost
On Thu, Aug 26, 2021 at 10:16:26AM +0800, Xiaoyao Li wrote: > On 8/26/2021 4:48 AM, Eduardo Habkost wrote: > > On Wed, Aug 25, 2021 at 02:59:37PM +0800, Xiaoyao Li wrote: > > > Hi Eduardo, > > > > > > I have some question regrading Intel PT live migration. >

Re: [PATCH 02/19] host-utils: move abs64() to host-utils

2021-08-25 Thread Eduardo Habkost
On Wed, Aug 25, 2021 at 08:37:17PM +, Luis Fernando Fujita Pires wrote: > From: Eduardo Habkost > > > > Right, that's true of any standard implementation of abs(). > > > I thought about making it return uint64_t, but that could make it > > > weird fo

Re: Live migration regarding Intel PT

2021-08-25 Thread Eduardo Habkost
On Wed, Aug 25, 2021 at 02:59:37PM +0800, Xiaoyao Li wrote: > Hi Eduardo, > > I have some question regrading Intel PT live migration. > > Commit "e37a5c7fa459 (i386: Add Intel Processor Trace feature support)" > expose Intel PT with a fixed capabilities of CPUID 0x14 for live migration. > And the

Re: [PATCH 02/19] host-utils: move abs64() to host-utils

2021-08-25 Thread Eduardo Habkost
On Wed, Aug 25, 2021 at 12:48:35PM +, Luis Fernando Fujita Pires wrote: > From: David Gibson > > Hrm.. I'm a bit concerned about mkaing this a more widespread function, > > because it has a nasty edge case... which is basically unavoidable in an > > abs64() > > implementation. Specifically:

[PULL 1/2] target/i386: Remove split lock detect in Snowridge CPU model

2021-08-25 Thread Eduardo Habkost
From: Chenyi Qiang At present, there's no mechanism intelligent enough to virtualize split lock detection correctly. Remove it in Snowridge CPU model to avoid the feature exposure. Signed-off-by: Chenyi Qiang Message-Id: <20210630012053.10098-1-chenyi.qi...@intel.com> Signed-off-

[PULL 2/2] i386/cpu: Remove AVX_VNNI feature from Cooperlake cpu model

2021-08-25 Thread Eduardo Habkost
rg Signed-off-by: Eduardo Habkost --- target/i386/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/i386/cpu.c b/target/i386/cpu.c index aebf81d9c98..97e250e8760 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -3102,7 +3102,7 @@ static const X86CPUDefinition

[PULL 0/2] x86 queue, 2021-08-25

2021-08-25 Thread Eduardo Habkost
The following changes since commit d42685765653ec155fdf60910662f8830bdb2cef: Open 6.2 development tree (2021-08-25 10:25:12 +0100) are available in the Git repository at: https://gitlab.com/ehabkost/qemu.git tags/x86-next-pull-request for you to fetch changes up to f429dbf8fc526a9cacf531176

Re: [PATCH v2 2/3] hw/usb/hcd-xhci-pci: Abort if setting link property failed

2021-08-24 Thread Eduardo Habkost
On Tue, Aug 24, 2021 at 01:16:40PM +0100, Peter Maydell wrote: > On Tue, 24 Aug 2021 at 13:05, Markus Armbruster wrote: > > When you know that all callers handle errors like &error_fatal does, use > > of &error_fatal doesn't produce wrong behavior. It's still kind of > > wrong, because relying on

Re: [PATCH 4/4] vl: Prioritize realizations of devices

2021-08-23 Thread Eduardo Habkost
On Mon, Aug 23, 2021 at 05:31:46PM -0400, Peter Xu wrote: > On Mon, Aug 23, 2021 at 05:07:03PM -0400, Eduardo Habkost wrote: > > To give just one example: > > > > $ (echo 'info pci';echo quit;) | qemu-system-x86_64 -device virtio-net-pci > > -device e1000e

Re: [PATCH 4/4] vl: Prioritize realizations of devices

2021-08-23 Thread Eduardo Habkost
On Mon, Aug 23, 2021 at 03:18:51PM -0400, Peter Xu wrote: > On Mon, Aug 23, 2021 at 02:49:12PM -0400, Eduardo Habkost wrote: > > On Wed, Aug 18, 2021 at 03:43:18PM -0400, Peter Xu wrote: > > > QEMU creates -device objects in order as specified by the user's cmdline. > >

Re: [PATCH 4/4] vl: Prioritize realizations of devices

2021-08-23 Thread Eduardo Habkost
On Wed, Aug 18, 2021 at 03:43:18PM -0400, Peter Xu wrote: > QEMU creates -device objects in order as specified by the user's cmdline. > However that ordering may not be the ideal order. For example, some platform > devices (vIOMMUs) may want to be created earlier than most of the rest > devices (e

Re: [PATCH v2 2/3] hw/usb/hcd-xhci-pci: Abort if setting link property failed

2021-08-23 Thread Eduardo Habkost
+Markus On Thu, Aug 19, 2021 at 07:15:46PM +0200, Philippe Mathieu-Daudé wrote: > Do not ignore eventual error if we failed at setting the 'host' > property of the TYPE_XHCI model. > > Signed-off-by: Philippe Mathieu-Daudé > --- > hw/usb/hcd-xhci-pci.c | 2 +- > 1 file changed, 1 insertion(+),

Re: [PATCH v12] qapi: introduce 'query-x86-cpuid' QMP command.

2021-08-23 Thread Eduardo Habkost
On Mon, Aug 23, 2021 at 9:35 AM Markus Armbruster wrote: > > Eduardo Habkost writes: > > > On Wed, Aug 11, 2021 at 9:44 AM Thomas Huth wrote: > >> > >> On 11/08/2021 15.40, Eduardo Habkost wrote: > >> > On Wed, Aug 11, 2021 at 2:10 AM Thomas Hut

Re: [PATCH] i386/cpu: Remove AVX_VNNI feature from Cooperlake cpu model

2021-08-20 Thread Eduardo Habkost
On Fri, Aug 20, 2021 at 01:46:11PM +0800, Yang Zhong wrote: > The AVX_VNNI feature is not in Cooperlake platform, remove it > from cpu model. > > Signed-off-by: Yang Zhong Fixes: c1826ea6a052 ("i386/cpu: Expose AVX_VNNI instruction to guest") Queued, thanks! -- Eduardo

Re: [PATCH v3 50/66] hw/core/cpu: Move cpu properties to cpu-sysemu.c

2021-08-19 Thread Eduardo Habkost
On Thu, Aug 19, 2021 at 04:26:10PM +0100, Peter Maydell wrote: > On Wed, 18 Aug 2021 at 21:09, Richard Henderson > wrote: > > > > The comment in cpu-common.c is absolutely correct, we can't > > rely on the ifdef in a file built once. This was only "working" > > because we used ifndef. > > > > Sig

Re: [PATCH v3 09/25] python/aqmp: add AsyncProtocol.accept() method

2021-08-19 Thread Eduardo Habkost
On Thu, Aug 19, 2021 at 11:48:16AM -0400, John Snow wrote: > On Thu, Aug 19, 2021 at 10:50 AM Eric Blake wrote: > > > On Wed, Aug 18, 2021 at 10:24:52AM -0400, John Snow wrote: > > > > > > > > > > +@upper_half > > > > > +@require(Runstate.IDLE) > > > > > +async def accept(self, addres

[PULL 1/1] machine: Disallow specifying topology parameters as zero

2021-08-16 Thread Eduardo Habkost
iewed-by: Andrew Jones Reviewed-by: Cornelia Huck Message-Id: <20210816024522.143124-2-wangyana...@huawei.com> Signed-off-by: Eduardo Habkost --- hw/core/machine.c | 14 ++ qapi/machine.json | 6 +++--- qemu-options.hx | 12 +++- 3 files changed, 24 insertions(+), 8 de

[PULL 0/1] Last minute fix for -rc4

2021-08-16 Thread Eduardo Habkost
The following changes since commit bd44d64a3879bb6b0ca19bff3be16e0093502fac: Merge remote-tracking branch 'remotes/thuth-gitlab/tags/pull-request-2021-08-11' into staging (2021-08-15 16:46:23 +0100) are available in the Git repository at: https://gitlab.com/ehabkost/qemu.git tags/machine-n

[PULL 0/1] Bug fix for -rc4

2021-08-12 Thread Eduardo Habkost
This is a bug fix to be included in case we are going to have a 6.1.0-rc4. I don't think this bug alone should delay the release of QEMU 6.1.0. The following changes since commit 703e8cd6189cf699c8d5c094bc68b5f3afa6ad71: Update version for v6.1.0-rc3 release (2021-08-10 19:08:09 +0100) are av

[PULL 1/1] hw/core: fix error checkig in smp_parse

2021-08-12 Thread Eduardo Habkost
lt;20210812175353.4128471-1-berra...@redhat.com> Signed-off-by: Eduardo Habkost --- hw/core/machine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/core/machine.c b/hw/core/machine.c index 943974d411c..ab4fca6546a 100644 --- a/hw/core/machine.c +++ b/hw/core/machi

Re: [PATCH for-6.1 ?] hw/core: fix error checkig in smp_parse

2021-08-12 Thread Eduardo Habkost
On Thu, Aug 12, 2021 at 06:53:53PM +0100, Daniel P. Berrangé wrote: > The machine_set_smp() mistakenly checks 'errp' not '*errp', > and so thinks there is an error every single time it runs. > This causes it to jump to the end of the method, skipping > the max CPUs checks. The caller meanwhile sees

Re: [PATCH] target/i386: Remove split lock detect in Snowridge CPU model

2021-08-11 Thread Eduardo Habkost
On Wed, Jun 30, 2021 at 09:20:53AM +0800, Chenyi Qiang wrote: > At present, there's no mechanism intelligent enough to virtualize split > lock detection correctly. Remove it in Snowridge CPU model to avoid the > feature exposure. > > Signed-off-by: Chenyi Qiang Sorry I have missed this before 6.

Re: [PATCH v12] qapi: introduce 'query-x86-cpuid' QMP command.

2021-08-11 Thread Eduardo Habkost
On Wed, Aug 11, 2021 at 9:44 AM Thomas Huth wrote: > > On 11/08/2021 15.40, Eduardo Habkost wrote: > > On Wed, Aug 11, 2021 at 2:10 AM Thomas Huth wrote: > >> > >> On 10/08/2021 20.56, Eduardo Habkost wrote: > >>> On Sat, Aug 07, 2021 at 04:22:42PM +020

Re: [PATCH v12] qapi: introduce 'query-x86-cpuid' QMP command.

2021-08-11 Thread Eduardo Habkost
On Wed, Aug 11, 2021 at 2:10 AM Thomas Huth wrote: > > On 10/08/2021 20.56, Eduardo Habkost wrote: > > On Sat, Aug 07, 2021 at 04:22:42PM +0200, Markus Armbruster wrote: > >> Is this intended to be a stable interface? Interfaces intended just for > >> debugging u

Re: [PATCH v14] qapi: introduce 'query-x86-cpuid' QMP command.

2021-08-10 Thread Eduardo Habkost
On Tue, Aug 10, 2021 at 09:51:31AM +0300, Valeriy Vdovin wrote: > From: Valeriy Vdovin > > Introducing new QMP command 'query-x86-cpuid'. This command can be used to > get virtualized cpu model info generated by QEMU during VM initialization in > the form of cpuid representation. > > Diving into

Re: [PATCH v12] qapi: introduce 'query-x86-cpuid' QMP command.

2021-08-10 Thread Eduardo Habkost
On Sat, Aug 07, 2021 at 04:22:42PM +0200, Markus Armbruster wrote: > Is this intended to be a stable interface? Interfaces intended just for > debugging usually aren't. I don't think we need to make it a stable interface, but I won't mind if we declare it stable. > > Eduardo, what's your take o

Re: [PATCH v14] qapi: introduce 'query-x86-cpuid' QMP command.

2021-08-10 Thread Eduardo Habkost
On Tue, Aug 10, 2021 at 09:51:31AM +0300, Valeriy Vdovin wrote: > From: Valeriy Vdovin > > Introducing new QMP command 'query-x86-cpuid'. This command can be used to > get virtualized cpu model info generated by QEMU during VM initialization in > the form of cpuid representation. > > Diving into

Re: [PATCH for-6.2 02/12] qom: Use DEVICE_*CLASS instead of OBJECT_*CLASS

2021-08-10 Thread Eduardo Habkost
On Tue, Aug 10, 2021 at 01:56:25PM +0200, Juan Quintela wrote: > > -DeviceClass *dc = OBJECT_CLASS_CHECK(DeviceClass, list->data, > > - TYPE_DEVICE); > > +DeviceClass *dc = DEVICE_CLASS(list->data); > > Finding where DEVICE_CLASS is defin

Re: [PATCH for-6.2 05/12] [automated] Move QOM typedefs and add missing includes

2021-08-10 Thread Eduardo Habkost
On Tue, Aug 10, 2021 at 02:01:40PM +0200, Juan Quintela wrote: > Eduardo Habkost wrote: > > Some typedefs and macros are defined after the type check macros. > > This makes it difficult to automatically replace their > > definitions with OBJECT_DECLARE_TYPE. > >

[PATCH for-6.2 v3 1/2] qom: DECLARE_INTERFACE_CHECKER macro

2021-08-09 Thread Eduardo Habkost
The new macro will be similar to DECLARE_INSTANCE_CHECKER, but for interface types (that use INTEFACE_CHECK instead of OBJECT_CHECK). Signed-off-by: Eduardo Habkost --- Changes series v1 -> v2: none Change series v2 -> v3: * Rebased on top of [PATCH for-6.2 00/12] qom: Get rid of all

[PATCH for-6.2 v3 2/2] [autoamted] Use DECLARE_INTERFACE_CHECKER macro

2021-08-09 Thread Eduardo Habkost
Replace manual INTERFACE_CHECK macros with DECLARE_INTERFACE_CHECKER, which is less error prone. Generated using: $ ./scripts/codeconverter/converter.py -i \ --pattern=InterfaceCheckMacro $(g grep -l '' -- '*.[ch]') Signed-off-by: Eduardo Habkost --- include/hw/acpi/

Re: [PATCH] docs/devel: fix missing antislash

2021-08-09 Thread Eduardo Habkost
On Mon, Aug 09, 2021 at 07:31:41PM +0200, Alexandre Iooss wrote: > Signed-off-by: Alexandre Iooss > --- > docs/devel/qom.rst | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/docs/devel/qom.rst b/docs/devel/qom.rst > index e5fe3597cd..b9568c0fb8 100644 > --- a/docs/devel/q

[PATCH for-6.2 v3 0/2] qom: DECLARE_INTERFACE_CHECKER macro

2021-08-09 Thread Eduardo Habkost
.kernel.org/qemu-devel/20200916223258.599367-1-ehabk...@redhat.com v2: https://lore.kernel.org/qemu-devel/20200917024947.707586-1-ehabk...@redhat.com Eduardo Habkost (2): qom: DECLARE_INTERFACE_CHECKER macro [autoamted] Use DECLARE_INTERFACE_CHECKER macro include/hw/acpi/acpi_dev_interface.h | 5 ++---

Re: [PATCH for-6.2 00/12] qom: Get rid of all manual usage of OBJECT_CHECK & friends

2021-08-09 Thread Eduardo Habkost
On Sat, Aug 07, 2021 at 10:15:52AM +0200, Philippe Mathieu-Daudé wrote: > On 8/6/21 11:11 PM, Eduardo Habkost wrote: > > This series gets rid of all manual usage of OBJECT_CHECK, > > OBJECT_CLASS_CHECK, and OBJECT_GET_CLASS. > > > > All type check macros defined

[PATCH for-6.2 07/12] [automated] Use DECLARE_*CHECKER* macros when possible

2021-08-06 Thread Eduardo Habkost
type checker macros manually. Generated using: $ ./scripts/codeconverter/converter.py -i \ --pattern=TypeCheckMacro $(git grep -l '' -- '*.[ch]') Signed-off-by: Eduardo Habkost --- Cc: "Marc-André Lureau" Cc: Paolo Bonzini Cc: Patrick Venture Cc: Thomas Huth

[PATCH for-6.2 12/12] [automated] Use OBJECT_DECLARE_SIMPLE_TYPE when possible

2021-08-06 Thread Eduardo Habkost
Replace typedef + DECLARE_INSTANCE_CHECKER with equivalent OBJECT_DECLARE_SIMPLE_TYPE macro. Generated using: $ ./scripts/codeconverter/converter.py -i \ --pattern=AddObjectDeclareSimpleType $(git grep -l '' -- '*.[ch]') Signed-off-by: Eduardo Habkost --- Cc: Thomas Huth

[PATCH for-6.2 09/12] npcm7xx_otp: Use DECLARE_CLASS_CHECKERS

2021-08-06 Thread Eduardo Habkost
Use DECLARE_CLASS_CHECKERS instead of defining the NPCM7XX_OTP_CLASS and NPCM7XX_OTP_GET_CLASS macros manually. These changes had to be done manually because the typedef and the existing macro definitions were in different files. Signed-off-by: Eduardo Habkost --- Cc: Havard Skinnemoen Cc

[PATCH for-6.2 10/12] [automated] Use DECLARE_OBJ_CHECKERS when possible

2021-08-06 Thread Eduardo Habkost
This automatically convert DECLARE_INSTANCE_CHECKER/DECLARE_CLASS_CHECKER pairs to DECLARE_OBJ_CHECKERS. Generated using: $ ./scripts/codeconverter/converter.py -i \ --pattern=AddDeclareObjCheckers $(git grep -l '' -- '*.[ch]') Signed-off-by: Eduardo Habkost --- Cc: H

[PATCH for-6.2 11/12] [automated] Use OBJECT_DECLARE_TYPE when possible

2021-08-06 Thread Eduardo Habkost
Replace typedefs + DECLARE_OBJ_CHECKERS with equivalent OBJECT_DECLARE_TYPE macro. Generated using: $ ./scripts/codeconverter/converter.py -i \ --pattern=AddObjectDeclareType $(git grep -l '' -- '*.[ch]') Signed-off-by: Eduardo Habkost --- Cc: John Snow Cc: Kevin Wol

[PATCH for-6.2 03/12] scripts/codeconverter: Update to latest version

2021-08-06 Thread Eduardo Habkost
I'm not documenting every single change in the codeconverter script because most of that code will be deleted once we finish the QOM code conversion. This patch updates the script to the latest version that was used to perform changes in the QOM code. Signed-off-by: Eduardo Ha

[PATCH for-6.2 06/12] [automated] Split QOM "typedef struct T { ... } T" declarations

2021-08-06 Thread Eduardo Habkost
automated removal of typedef lines will be easier and safer. Generated using: $ ./scripts/codeconverter/converter.py -i \ --pattern=QOMStructTypedefSplit $(git grep -l '' -- '*.[ch]') Signed-off-by: Eduardo Habkost --- Cc: "Marc-André Lureau" Cc: Paolo Bo

[PATCH for-6.2 08/12] npcm7xx_clk: Use DECLARE_INSTANCE_CHECKER

2021-08-06 Thread Eduardo Habkost
d-off-by: Eduardo Habkost --- Cc: Havard Skinnemoen Cc: Tyrone Ting Cc: qemu-...@nongnu.org Cc: qemu-devel@nongnu.org --- hw/misc/npcm7xx_clk.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/hw/misc/npcm7xx_clk.c b/hw/misc/npcm7xx_clk.c index da6b14c545d..5247ac

[PATCH for-6.2 01/12] accel: Rename TYPE_ACCEL to TYPE_ACCEL_BASE

2021-08-06 Thread Eduardo Habkost
renaming TYPE_ACCEL to TYPE_ACCEL_BASE. Note that the actual QOM type name is still "accel", because QOM type names are user-visible and I don't want to make any user-visible change here. Signed-off-by: Eduardo Habkost --- Notes about name alternatives: I have considered using the name

[PATCH for-6.2 05/12] [automated] Move QOM typedefs and add missing includes

2021-08-06 Thread Eduardo Habkost
]') which will: - split "typdef struct { ... } TypedefName" declarations - move the typedefs and #defines above the type check macros - add missing #include "qom/object.h" lines if necessary Signed-off-by: Eduardo Habkost --- Cc: Richard Henderson Cc: Paolo Bonzini Cc: &q

[PATCH for-6.2 04/12] [automated] Add struct names to typedefs used by QOM types

2021-08-06 Thread Eduardo Habkost
\ --pattern=AddNamesToTypedefs $(git grep -l '' -- '*.[ch]') Signed-off-by: Eduardo Habkost --- Cc: "Marc-André Lureau" Cc: Paolo Bonzini Cc: Thomas Huth Cc: Havard Skinnemoen Cc: Tyrone Ting Cc: Vijai Kumar K Cc: Bastian Koppelmann Cc: qemu-devel@nongnu.org Cc: q

[PATCH for-6.2 02/12] qom: Use DEVICE_*CLASS instead of OBJECT_*CLASS

2021-08-06 Thread Eduardo Habkost
There are multiple functions where OBJECT_GET_CLASS or OBJECT_CLASS_CHECK are being used directly for DeviceClass/TYPE_DEVICE, instead of the DEVICE_GET_CLASS or DEVICE_CLASS wrappers. There's no reason to not use the wrappers, so use them. Signed-off-by: Eduardo Habkost --- Cc: "

[PATCH for-6.2 00/12] qom: Get rid of all manual usage of OBJECT_CHECK & friends

2021-08-06 Thread Eduardo Habkost
.431680-1-ehabk...@redhat.com> https://lore.kernel.org/qemu-devel/20210806023119.431680-1-ehabk...@redhat.com Based-on: <20210805193431.307761-1-ehabk...@redhat.com> Based-on: <20210805214739.390613-1-ehabk...@redhat.com> Based-on: <20210806023119.431680-1-ehabk...@redhat.co

Win32 and ACCEL macro/function

2021-08-05 Thread Eduardo Habkost
Hello, I'm looking for help dealing with a naming conflict when building QEMU for Windows hosts. The summary is: I'm trying to replace the ACCEL() macro in include/qemu/accel.h with an inline function, but the ACCEL name conflicts with a symbol provided by winuser.h: In file included from /bui

[PATCH for-6.2 v2] s390-sclp-events-bus: Use OBJECT_DECLARE_SIMPLE_TYPE

2021-08-05 Thread Eduardo Habkost
We have a SCLPEventsBus struct type defined, but no QOM type checkers are declared for the type. Use OBJECT_DECLARE_SIMPLE_TYPE to declare the struct type and have a SCLP_EVENT_BUS typecast wrapper defined. Signed-off-by: Eduardo Habkost --- Changes v1 -> v2: * v1 was previously submitted

Re: [PATCH for-6.2 4/6] s390-sclp-events-bus: Use OBJECT_DECLARE_SIMPLE_TYPE

2021-08-05 Thread Eduardo Habkost
On Thu, Aug 05, 2021 at 03:34:29PM -0400, Eduardo Habkost wrote: > We have a SCLPEventsBus struct type defined, but no QOM type > checkers are declared for the type. > > Use OBJECT_DECLARE_SIMPLE_TYPE to declare the struct type and > have a SCLP_EVENT_BUS typecast wrapper defined.

[PATCH for-6.2] sbsa-ref: Rename SBSA_GWDT enum value

2021-08-05 Thread Eduardo Habkost
signal from the Generic Watchdog. Rename the enum value to SBSA_GWDT_WS0 to be more explicit and avoid the name conflict. Signed-off-by: Eduardo Habkost --- Cc: Radoslaw Biernacki Cc: Peter Maydell Cc: Leif Lindholm Cc: Shashi Mallela Cc: qemu-...@nongnu.org Cc: qemu-devel@nongnu.org --- hw

[PATCH] bcm2836: Remove redundant typedef and macros

2021-08-05 Thread Eduardo Habkost
acros duplicate what is already defined by the OBJECT_DECLARE_TYPE declaration at bcm2836.h. Remove the redundant declarations. Signed-off-by: Eduardo Habkost --- Cc: Philippe Mathieu-Daudé Cc: Luc Michel Cc: Peter Maydell --- hw/arm/bcm2836.c | 9 ++--- 1 file changed, 2 insertions(+), 7 del

[PATCH for-6.2 4/6] s390-sclp-events-bus: Use OBJECT_DECLARE_SIMPLE_TYPE

2021-08-05 Thread Eduardo Habkost
We have a SCLPEventsBus struct type defined, but no QOM type checkers are declared for the type. Use OBJECT_DECLARE_SIMPLE_TYPE to declare the struct type and have a SCLP_EVENT_BUS typecast wrapper defined. Signed-off-by: Eduardo Habkost --- Cc: Richard Henderson Cc: David Hildenbrand Cc

[PATCH for-6.2 6/6] Use PCI_HOST_BRIDGE macro

2021-08-05 Thread Eduardo Habkost
OBJECT_CHECK(PciHostState, ..., TYPE_PCI_HOST_BRIDGE) is exactly what the PCI_HOST_BRIDGE macro does. We can just use the macro instead of using OBJECT_CHECK manually. Signed-off-by: Eduardo Habkost --- Cc: "Michael S. Tsirkin" Cc: Igor Mammedov Cc: Paolo Bonzini Cc: Richard Hen

[PATCH for-6.2 3/6] s390-sclp-events-bus: Set instance_size

2021-08-05 Thread Eduardo Habkost
We have a SCLPEventsBus struct defined, but the struct is not used at the TypeInfo definition. This works today but will break silently if anybody adds a new field to SCLPEventsBus. Set instance_size properly to avoid problems in the future. Signed-off-by: Eduardo Habkost --- Cc: Cornelia Huck

[PATCH for-6.2 5/6] s390x: event-facility: Use SCLP_EVENT_BUS macro

2021-08-05 Thread Eduardo Habkost
Use the SCLP_EVENT_BUS macro instead of manually calling OBJECT_CHECK. Signed-off-by: Eduardo Habkost --- Cc: Cornelia Huck Cc: Thomas Huth Cc: Halil Pasic Cc: Christian Borntraeger Cc: Richard Henderson Cc: David Hildenbrand Cc: qemu-s3...@nongnu.org Cc: qemu-devel@nongnu.org --- hw

[PATCH for-6.2 2/6] sbsa_gwdt: Delete broken SBSA_*CLASS macros

2021-08-05 Thread Eduardo Habkost
Those macros never worked and never will, because the SBSA_GWDTClass type never existed. Signed-off-by: Eduardo Habkost --- Cc: qemu-devel@nongnu.org Cc: Peter Maydell Cc: Shashi Mallela --- include/hw/watchdog/sbsa_gwdt.h | 4 1 file changed, 4 deletions(-) diff --git a/include/hw

[PATCH for-6.2 1/6] acpi: Delete broken ACPI_GED_X86 macro

2021-08-05 Thread Eduardo Habkost
The macro never worked and never will, because the AcpiGedX86State type never existed. Signed-off-by: Eduardo Habkost --- Cc: "Michael S. Tsirkin" Cc: Igor Mammedov Cc: qemu-devel@nongnu.org --- include/hw/acpi/generic_event_device.h | 2 -- 1 file changed, 2 deletions(-) di

[PATCH for-6.2 0/6] qom: Fix broken OBJECT_CHECK usage

2021-08-05 Thread Eduardo Habkost
This series removes some broken OBJECT_CHECK macros and fix cases where OBJECT_CHECK is being used directly in the code. Eduardo Habkost (6): acpi: Delete broken ACPI_GED_X86 macro sbsa_gwdt: Delete broken SBSA_*CLASS macros s390-sclp-events-bus: Set instance_size s390-sclp-events-bus

Re: [PATCH for-6.2 01/10] docs: qom: Replace old GTK-Doc #symbol syntax with `symbol`

2021-08-05 Thread Eduardo Habkost
On Thu, Aug 05, 2021 at 12:36:11PM -0400, Eduardo Habkost wrote: > On Wed, Aug 04, 2021 at 08:26:10PM -0400, John Snow wrote: > > On Wed, Aug 4, 2021 at 5:00 PM Eduardo Habkost wrote: > > > > > On Wed, Aug 04, 2021 at 09:42:24PM +0100, Peter Maydell wrote: > > &

Re: [PATCH for-6.2 01/10] docs: qom: Replace old GTK-Doc #symbol syntax with `symbol`

2021-08-05 Thread Eduardo Habkost
On Wed, Aug 04, 2021 at 08:26:10PM -0400, John Snow wrote: > On Wed, Aug 4, 2021 at 5:00 PM Eduardo Habkost wrote: > > > On Wed, Aug 04, 2021 at 09:42:24PM +0100, Peter Maydell wrote: > > > Is there a sensible default-role we can use as the default for the whole > >

  1   2   3   4   5   6   7   8   9   10   >