Re: [PATCH v3 14/29] target/i386: Prefer fast cpu_env() over slower CPU QOM cast macro

2024-01-30 Thread Igor Mammedov
On Mon, 29 Jan 2024 17:44:56 +0100 Philippe Mathieu-Daudé wrote: > Mechanical patch produced running the command documented > in scripts/coccinelle/cpu_env.cocci_template header. commenting here since, I'm not expert on coccinelle scripts. On negative side we are permanently loosing type

Re: [PATCH v2 6/6] xen_arm: Add virtual PCIe host bridge support

2023-11-24 Thread Igor Mammedov
On Tue, 21 Nov 2023 22:10:28 + Volodymyr Babchuk wrote: > From: Oleksandr Tyshchenko > > The bridge is needed for virtio-pci support, as QEMU can emulate the > whole bridge with any virtio-pci devices connected to it. > > This patch provides a flexible way to configure PCIe brige

Re: [PATCH 11/12] hw/xen: automatically assign device index to block devices

2023-10-23 Thread Igor Mammedov
On Wed, 18 Oct 2023 09:32:47 +0100 David Woodhouse wrote: > On Wed, 2023-10-18 at 09:32 +0200, Igor Mammedov wrote: > > On Mon, 16 Oct 2023 16:19:08 +0100 > > David Woodhouse wrote: > > > > > From: David Woodhouse > > > > > > &g

Re: [PATCH 11/12] hw/xen: automatically assign device index to block devices

2023-10-18 Thread Igor Mammedov
On Mon, 16 Oct 2023 16:19:08 +0100 David Woodhouse wrote: > From: David Woodhouse > is this index a user (guest) visible? > There's no need to force the user to assign a vdev. We can automatically > assign one, starting at xvda and searching until we find the first disk > name that's unused.

Re: [PATCH v8] xen/pt: reserve PCI slot 2 for Intel igd-passthru

2023-01-20 Thread Igor Mammedov
On Tue, 17 Jan 2023 09:50:23 -0500 Chuck Zmudzinski wrote: > On 1/17/2023 5:35 AM, Igor Mammedov wrote: > > On Mon, 16 Jan 2023 13:00:53 -0500 > > Chuck Zmudzinski wrote: > > > > > On 1/16/23 10:33, Igor Mammedov wrote: > > > > On Fri, 13 Jan 20

Re: [PATCH v8] xen/pt: reserve PCI slot 2 for Intel igd-passthru

2023-01-20 Thread Igor Mammedov
On Tue, 17 Jan 2023 09:43:52 -0500 Chuck Zmudzinski wrote: > On 1/17/2023 5:35 AM, Igor Mammedov wrote: > > On Mon, 16 Jan 2023 13:00:53 -0500 > > Chuck Zmudzinski wrote: > > > > > On 1/16/23 10:33, Igor Mammedov wrote: > > > > On Fri, 13 Jan 20

Re: [PATCH v2] x86/hotplug: Do not put offline vCPUs in mwait idle state

2023-01-20 Thread Igor Mammedov
On Fri, 20 Jan 2023 05:55:11 -0800 "Srivatsa S. Bhat" wrote: > Hi Igor and Thomas, > > Thank you for your review! > > On 1/19/23 1:12 PM, Thomas Gleixner wrote: > > On Mon, Jan 16 2023 at 15:55, Igor Mammedov wrote: > >> "Srivatsa S. Bhat&qu

Re: [PATCH v8] xen/pt: reserve PCI slot 2 for Intel igd-passthru

2023-01-17 Thread Igor Mammedov
On Mon, 16 Jan 2023 13:00:53 -0500 Chuck Zmudzinski wrote: > On 1/16/23 10:33, Igor Mammedov wrote: > > On Fri, 13 Jan 2023 16:31:26 -0500 > > Chuck Zmudzinski wrote: > > > >> On 1/13/23 4:33 AM, Igor Mammedov wrote: > >> > On Thu, 12 Jan 2023 23:

Re: [PATCH v8] xen/pt: reserve PCI slot 2 for Intel igd-passthru

2023-01-17 Thread Igor Mammedov
On Mon, 16 Jan 2023 13:00:53 -0500 Chuck Zmudzinski wrote: > On 1/16/23 10:33, Igor Mammedov wrote: > > On Fri, 13 Jan 2023 16:31:26 -0500 > > Chuck Zmudzinski wrote: > > > >> On 1/13/23 4:33 AM, Igor Mammedov wrote: > >> > On Thu, 12 Jan 2023 23:

Re: [PATCH v8] xen/pt: reserve PCI slot 2 for Intel igd-passthru

2023-01-16 Thread Igor Mammedov
On Fri, 13 Jan 2023 16:31:26 -0500 Chuck Zmudzinski wrote: > On 1/13/23 4:33 AM, Igor Mammedov wrote: > > On Thu, 12 Jan 2023 23:14:26 -0500 > > Chuck Zmudzinski wrote: > > > >> On 1/12/23 6:03 PM, Michael S. Tsirkin wrote: > >> > On Thu, Jan 12,

Re: [PATCH v2] x86/hotplug: Do not put offline vCPUs in mwait idle state

2023-01-16 Thread Igor Mammedov
On Sun, 15 Jan 2023 22:01:34 -0800 "Srivatsa S. Bhat" wrote: > From: "Srivatsa S. Bhat (VMware)" > > Under hypervisors that support mwait passthrough, a vCPU in mwait > CPU-idle state remains in guest context (instead of yielding to the > hypervisor via VMEXIT), which helps speed up wakeups

Re: [PATCH v8] xen/pt: reserve PCI slot 2 for Intel igd-passthru

2023-01-13 Thread Igor Mammedov
On Thu, 12 Jan 2023 23:14:26 -0500 Chuck Zmudzinski wrote: > On 1/12/23 6:03 PM, Michael S. Tsirkin wrote: > > On Thu, Jan 12, 2023 at 10:55:25PM +, Bernhard Beschow wrote: > >> I think the change Michael suggests is very minimalistic: Move the if > >> condition around

Re: Question to mem-path support at QEMU for Xen

2022-07-28 Thread Igor Mammedov
On Thu, 28 Jul 2022 15:17:49 +0800 Huang Rui wrote: > Hi Igor, > > Appreciate you for the reply! > > On Wed, Jul 27, 2022 at 04:19:30PM +0800, Igor Mammedov wrote: > > On Tue, 26 Jul 2022 15:27:07 +0800 > > Huang Rui wrote: > > > > > Hi Anthon

Re: Question to mem-path support at QEMU for Xen

2022-07-27 Thread Igor Mammedov
On Tue, 26 Jul 2022 15:27:07 +0800 Huang Rui wrote: > Hi Anthony and other Qemu/Xen guys, > > We are trying to enable venus on Xen virtualization platform. And we would > like to use the backend memory with memory-backend-memfd,id=mem1,size=4G > options on QEMU, however, the QEMU will tell us

Re: [PATCH v2 3/3] Use g_new() & friends where that makes obvious sense

2022-03-22 Thread Igor Mammedov
FILES... > > Signed-off-by: Markus Armbruster > Reviewed-by: Philippe Mathieu-Daudé > Reviewed-by: Cédric Le Goater > Reviewed-by: Alex Bennée > Acked-by: Dr. David Alan Gilbert for */i386/* Reviewed-by: Igor Mammedov nit: possible miss, see below [...] > diff --gi

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

2020-12-15 Thread Igor Mammedov
On Mon, 14 Dec 2020 12:24:18 -0500 Eduardo Habkost wrote: > On Mon, Dec 14, 2020 at 03:55:30PM +0100, Igor Mammedov wrote: > > On Fri, 11 Dec 2020 17:05:20 -0500 > > Eduardo Habkost wrote: > > > > > Every single qdev property setter function manually checks >

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

2020-12-14 Thread Igor Mammedov
On Fri, 11 Dec 2020 17:05:27 -0500 Eduardo Habkost wrote: > 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 Reviewed-by: Igor Mammedov > --- > Changes

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

2020-12-14 Thread Igor Mammedov
On Fri, 11 Dec 2020 17:05:20 -0500 Eduardo Habkost wrote: > 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

Re: [PATCH 3/5] qom: Remove module_obj_name parameter from OBJECT_DECLARE* macros

2020-09-17 Thread Igor Mammedov
;UPPERCASE); > > Signed-off-by: Eduardo Habkost for x86/virtio/hostmem/QOM Acked-by: Igor Mammedov > --- > Cc: "Marc-André Lureau" > Cc: Gerd Hoffmann > Cc: "Michael S. Tsirkin" > Cc: "Daniel P. Berrangé" > Cc:

Re: [Xen-devel] [PATCH 0/2] misc: Replace zero-length arrays with flexible array member

2020-03-06 Thread Igor Mammedov
d to upstream > coccinelle? > > I used spatch 1.0.8 with: > > -I include --include-headers \ > --macro-file scripts/cocci-macro-file.h \ > --keep-comments --indent 4 > > Regards, > > Phil. > > Based-on: <20200304153311.22959-1-phi...@redhat.com&g

Re: [Xen-devel] [Qemu-devel] [PATCH for-3.2 v5 07/19] hw: apply accel compat properties without touching globals

2018-12-13 Thread Igor Mammedov
On Wed, 12 Dec 2018 16:00:06 +0400 Marc-André Lureau wrote: > Hi > On Mon, Dec 10, 2018 at 8:55 PM Igor Mammedov wrote: > > > > On Mon, 10 Dec 2018 17:45:22 +0100 > > Igor Mammedov wrote: > > > > > On Tue, 4 Dec 2018 18:20:11 +0400 > > > M

Re: [Xen-devel] [Qemu-devel] [PATCH for-3.2 v5 07/19] hw: apply accel compat properties without touching globals

2018-12-11 Thread Igor Mammedov
rom a GPtrArray. > > Signed-off-by: Marc-André Lureau other than static leak looks fine, considering that we already leak compat_props, it doesn't really matter, so: Reviewed-by: Igor Mammedov > --- > include/hw/qdev-core.h | 10 ++ > include/qom/object.h | 3 +++

Re: [Xen-devel] [Qemu-devel] [PATCH for-3.2 v5 07/19] hw: apply accel compat properties without touching globals

2018-12-10 Thread Igor Mammedov
On Mon, 10 Dec 2018 17:45:22 +0100 Igor Mammedov wrote: > On Tue, 4 Dec 2018 18:20:11 +0400 > Marc-André Lureau wrote: > > > Instead of registering compat properties as globals, let's keep them > > in their own array, to avoid mixing with user global

Re: [Xen-devel] [PATCH for-3.2 v5 07/19] hw: apply accel compat properties without touching globals

2018-12-10 Thread Igor Mammedov
On Tue, 4 Dec 2018 18:20:11 +0400 Marc-André Lureau wrote: > Instead of registering compat properties as globals, let's keep them > in their own array, to avoid mixing with user globals. > > Introduce object_apply_global_props() function, to apply compatibility > properties from a GPtrArray. >

Re: [Xen-devel] [PATCH for-3.2 v4 15/28] hw: apply accel compat properties without touching globals

2018-11-28 Thread Igor Mammedov
On Tue, 27 Nov 2018 13:27:48 +0400 Marc-André Lureau wrote: > Introduce object_apply_global_props() function, to apply compatibility > properties from a GPtrArray. > > For accel compatibility properties, apply them during > device_post_init(), after accel_register_compat_props() has set them. >

Re: [Xen-devel] [Qemu-devel] [PATCH for-3.2 v3 10/14] qdev-props: call object_apply_global_props()

2018-11-27 Thread Igor Mammedov
On Tue, 27 Nov 2018 00:02:35 +0400 Marc-André Lureau wrote: > Hi > On Mon, Nov 26, 2018 at 5:27 PM Igor Mammedov wrote: > > > > On Wed, 7 Nov 2018 16:36:48 +0400 > > Marc-André Lureau wrote: > > > > > It's now possible to use the common function. >

Re: [Xen-devel] [Qemu-devel] [PATCH v5 20/24] hw: acpi: Define ACPI tables builder interface

2018-11-27 Thread Igor Mammedov
On Thu, 22 Nov 2018 00:57:21 +0100 Samuel Ortiz wrote: > On Fri, Nov 16, 2018 at 05:02:26PM +0100, Igor Mammedov wrote: > > On Mon, 5 Nov 2018 02:40:43 +0100 > > Samuel Ortiz wrote: > > > > > In order to decouple ACPI APIs from specific machine types, we are

Re: [Xen-devel] [Qemu-devel] [PATCH v5 12/24] hw: acpi: Export the MCFG getter

2018-11-27 Thread Igor Mammedov
On Thu, 22 Nov 2018 00:21:06 +0100 Samuel Ortiz wrote: > Hi Igor, > > On Thu, Nov 15, 2018 at 01:36:58PM +0100, Igor Mammedov wrote: > > On Mon, 5 Nov 2018 02:40:35 +0100 > > Samuel Ortiz wrote: > > > > > From: Yang Zhong > > > > > &

Re: [Xen-devel] [Qemu-devel] [PATCH v5 15/24] hw: i386: Export the i386 ACPI SRAT build method

2018-11-26 Thread Igor Mammedov
On Thu, 22 Nov 2018 00:27:33 +0100 Samuel Ortiz wrote: > On Thu, Nov 15, 2018 at 02:28:54PM +0100, Igor Mammedov wrote: > > On Mon, 5 Nov 2018 02:40:38 +0100 > > Samuel Ortiz wrote: > > > > > This is the standard way of building SRAT on x86 platfoms. But fu

Re: [Xen-devel] [Qemu-devel] [PATCH for-3.2 v3 00/14] Generalize machine compatibility properties

2018-11-26 Thread Igor Mammedov
On Wed, 7 Nov 2018 16:36:38 +0400 Marc-André Lureau wrote: > Hi, > > During "[PATCH v2 05/10] qom/globals: generalize > object_property_set_globals()" review, Eduardo suggested to rework the > GlobalProperty handling, so that -global is limited to QDev only and > we avoid mixing the machine

Re: [Xen-devel] [PATCH for-3.2 v3 10/14] qdev-props: call object_apply_global_props()

2018-11-26 Thread Igor Mammedov
On Wed, 7 Nov 2018 16:36:48 +0400 Marc-André Lureau wrote: > It's now possible to use the common function. > > Teach object_apply_global_props() to warn if Error argument is NULL. > > Signed-off-by: Marc-André Lureau > --- > hw/core/qdev-properties.c | 24 ++-- >

Re: [Xen-devel] [PATCH for-3.2 v3 08/14] qdev-props: convert global_props to GArray

2018-11-23 Thread Igor Mammedov
On Wed, 7 Nov 2018 16:36:46 +0400 Marc-André Lureau wrote: > A step towards being able to call object_apply_global_props(). it also makes code more uniform as we don't have to deal with type inform of GList. maybe move it at the beginning of series and include accel part as well? otherwise

Re: [Xen-devel] [PATCH for-3.2 v3 07/14] qdev: all globals are now user-provided

2018-11-23 Thread Igor Mammedov
On Wed, 7 Nov 2018 16:36:45 +0400 Marc-André Lureau wrote: > Considering that CPU features are provided via command line, the I can guess what it is about once I recall how -cpu foo,+-feat works, but without that knowledge I don't get meaning behind the sentence. Could you rephrase it? >

Re: [Xen-devel] [Qemu-devel] [PATCH for-3.2 v3 02/14] qom: make interface types abstract

2018-11-23 Thread Igor Mammedov
On Wed, 7 Nov 2018 16:36:40 +0400 Marc-André Lureau wrote: > Interfaces don't have instance, let's make the interface type really > abstract to avoid confusion. > > Signed-off-by: Marc-André Lureau Reviewed-by: Igor Mammedov > --- > include/hw/acpi/acpi_d

Re: [Xen-devel] [PATCH for-3.2 v3 06/14] qdev: do not mix compat props with global props

2018-11-23 Thread Igor Mammedov
On Wed, 7 Nov 2018 16:36:44 +0400 Marc-André Lureau wrote: > Machine & Accel props are not provided by user. Let's not mix them > with the global properties. > > Call a new helper function object_apply_global_props() during > device_post_init(). > > Add a stub for current_machine, so

Re: [Xen-devel] [Qemu-devel] [PATCH v5 11/24] hw: acpi: Export and generalize the PCI host AML API

2018-11-23 Thread Igor Mammedov
On Thu, 22 Nov 2018 00:12:17 +0100 Samuel Ortiz wrote: > Hi Igor, > > On Wed, Nov 14, 2018 at 11:55:37AM +0100, Igor Mammedov wrote: > > On Mon, 5 Nov 2018 02:40:34 +0100 > > Samuel Ortiz wrote: > > > > > From: Yang Zhong > > > > &g

Re: [Xen-devel] [Qemu-devel] [PATCH v5 10/24] hw: acpi: Export the PCI host and holes getters

2018-11-23 Thread Igor Mammedov
On Wed, 21 Nov 2018 16:43:12 +0100 Samuel Ortiz wrote: > On Tue, Nov 13, 2018 at 04:59:18PM +0100, Igor Mammedov wrote: > > On Mon, 5 Nov 2018 02:40:33 +0100 > > Samuel Ortiz wrote: > > > > > This is going to be needed by the hardware reduced impleme

Re: [Xen-devel] [Qemu-devel] [PATCH v5 05/24] hw: acpi: Implement XSDT support for RSDP

2018-11-22 Thread Igor Mammedov
On Wed, 21 Nov 2018 15:42:11 +0100 Samuel Ortiz wrote: > Hi Igor, > > On Thu, Nov 08, 2018 at 03:16:23PM +0100, Igor Mammedov wrote: > > On Mon, 5 Nov 2018 02:40:28 +0100 > > Samuel Ortiz wrote: > > > > > XSDT is the 64-bit version of the legacy ACPI

Re: [Xen-devel] [Qemu-devel] [PATCH v5 01/24] hw: i386: Decouple the ACPI build from the PC machine type

2018-11-22 Thread Igor Mammedov
On Wed, 21 Nov 2018 15:42:37 +0100 Samuel Ortiz wrote: > Hi Igor, > > On Fri, Nov 09, 2018 at 03:23:16PM +0100, Igor Mammedov wrote: > > On Mon, 5 Nov 2018 02:40:24 +0100 > > Samuel Ortiz wrote: > > > > > ACPI tables are platform and machine type

Re: [Xen-devel] [Qemu-devel] [PATCH v5 00/24] ACPI reorganization for hardware-reduced API addition

2018-11-22 Thread Igor Mammedov
On Wed, 21 Nov 2018 15:38:16 +0100 Samuel Ortiz wrote: > Igor, > > On Wed, Nov 21, 2018 at 03:15:26PM +0100, Igor Mammedov wrote: > > On Wed, 21 Nov 2018 07:35:47 -0500 > > "Michael S. Tsirkin" wrote: > > > > > On Mon, Nov 19, 2018 at 04:31:10P

Re: [Xen-devel] [Qemu-devel] [PATCH v5 00/24] ACPI reorganization for hardware-reduced API addition

2018-11-21 Thread Igor Mammedov
On Wed, 21 Nov 2018 07:35:47 -0500 "Michael S. Tsirkin" wrote: > On Mon, Nov 19, 2018 at 04:31:10PM +0100, Igor Mammedov wrote: > > On Fri, 16 Nov 2018 17:37:54 +0100 > > Paolo Bonzini wrote: > > > > > On 16/11/18 17:29, Igor Mammedov wrote: >

Re: [Xen-devel] [Qemu-devel] [PATCH for-3.2 v3 02/14] qom: make interface types abstract

2018-11-21 Thread Igor Mammedov
On Tue, 20 Nov 2018 19:54:23 +0100 Laszlo Ersek wrote: > On 11/20/18 17:33, Igor Mammedov wrote: > > On Wed, 7 Nov 2018 16:36:40 +0400 > > Marc-André Lureau wrote: > > > >> Interfaces don't have instance, let's make the interface type really &g

Re: [Xen-devel] [Qemu-devel] [PATCH for-3.2 v3 05/14] qdev: move qdev_prop_register_global_list() to tests

2018-11-20 Thread Igor Mammedov
On Wed, 7 Nov 2018 16:36:43 +0400 Marc-André Lureau wrote: > The function is only used by a test, move it there. > > Signed-off-by: Marc-André Lureau > Reviewed-by: Eduardo Habkost Reviewed-by: Igor Mammedov > --- > include/hw/qdev-properties.h | 1 - > hw/c

Re: [Xen-devel] [PATCH for-3.2 v3 03/14] qom: make user_creatable_complete() specific to UserCreatable

2018-11-20 Thread Igor Mammedov
t doesn't apply to current HEAD anymore > > Signed-off-by: Marc-André Lureau > Reviewed-by: Igor Mammedov > --- > include/qom/object_interfaces.h | 4 ++-- > hw/misc/ivshmem.c | 2 +- > hw/virtio/virtio-rng.c | 2 +- > qom/object.c

Re: [Xen-devel] [Qemu-devel] [PATCH for-3.2 v3 02/14] qom: make interface types abstract

2018-11-20 Thread Igor Mammedov
On Wed, 7 Nov 2018 16:36:40 +0400 Marc-André Lureau wrote: > Interfaces don't have instance, let's make the interface type really > abstract to avoid confusion. > > Signed-off-by: Marc-André Lureau > --- > include/hw/acpi/acpi_dev_interface.h | 6 +- > include/hw/arm/linux-boot-if.h

Re: [Xen-devel] [Qemu-devel] [PATCH for-3.2 v3 01/14] tests: qdev_prop_check_globals() doesn't return "all_used"

2018-11-20 Thread Igor Mammedov
-type.prop5=105 not used > warning: global nondevice-type.prop6 has invalid class name > > Clarify the function return value. > > Signed-off-by: Marc-André Lureau Reviewed-by: Igor Mammedov > --- > tests/test-qdev-global-props.c | 12 ++-- > 1 file changed, 6

Re: [Xen-devel] [Qemu-devel] [PATCH v5 00/24] ACPI reorganization for hardware-reduced API addition

2018-11-20 Thread Igor Mammedov
On Mon, 19 Nov 2018 18:14:26 +0100 Paolo Bonzini wrote: > On 19/11/18 16:31, Igor Mammedov wrote: > > I've tried to give suggestions how to restructure series > > on per patch basis. In my opinion it quite possible to split > > series in several smaller ones and

Re: [Xen-devel] [PATCH v5 19/24] hw: acpi: Retrieve the PCI bus from AcpiPciHpState

2018-11-20 Thread Igor Mammedov
On Mon, 19 Nov 2018 18:02:53 + "Boeuf, Sebastien" wrote: > On Mon, 2018-11-19 at 16:37 +0100, Igor Mammedov wrote: > > On Fri, 16 Nov 2018 19:42:08 + > > "Boeuf, Sebastien" wrote: > > > > > > > > Hi Igor, > >

Re: [Xen-devel] [PATCH v5 05/24] hw: acpi: Implement XSDT support for RSDP

2018-11-20 Thread Igor Mammedov
On Mon, 19 Nov 2018 13:27:14 -0500 "Michael S. Tsirkin" wrote: > On Thu, Nov 08, 2018 at 03:16:23PM +0100, Igor Mammedov wrote: > > On Mon, 5 Nov 2018 02:40:28 +0100 > > Samuel Ortiz wrote: > > > > > XSDT is the 64-bit version of the legacy ACPI R

Re: [Xen-devel] [PATCH v5 19/24] hw: acpi: Retrieve the PCI bus from AcpiPciHpState

2018-11-19 Thread Igor Mammedov
On Fri, 16 Nov 2018 19:42:08 + "Boeuf, Sebastien" wrote: > Hi Igor, > > On Fri, 2018-11-16 at 10:39 +0100, Igor Mammedov wrote: > > On Mon,  5 Nov 2018 02:40:42 +0100 > > Samuel Ortiz wrote: > > > > > > > > From: Sebastien Boeuf

Re: [Xen-devel] [Qemu-devel] [PATCH v5 00/24] ACPI reorganization for hardware-reduced API addition

2018-11-19 Thread Igor Mammedov
On Fri, 16 Nov 2018 17:37:54 +0100 Paolo Bonzini wrote: > On 16/11/18 17:29, Igor Mammedov wrote: > > General suggestions for this series: > > 1. Preferably don't do multiple changes within a patch > > neither post huge patches (unless it's pure code movement)

Re: [Xen-devel] [Qemu-devel] [PATCH v5 00/24] ACPI reorganization for hardware-reduced API addition

2018-11-16 Thread Igor Mammedov
On Mon, 5 Nov 2018 02:40:23 +0100 Samuel Ortiz wrote: > This patch set provides an ACPI code reorganization in preparation for > adding a shared hardware-reduced ACPI API to QEMU. > > The changes are coming from the NEMU [1] project where we're defining > a new x86 machine type: i386/virt.

Re: [Xen-devel] [Qemu-devel] [PATCH v5 20/24] hw: acpi: Define ACPI tables builder interface

2018-11-16 Thread Igor Mammedov
On Mon, 5 Nov 2018 02:40:43 +0100 Samuel Ortiz wrote: > In order to decouple ACPI APIs from specific machine types, we are > creating an ACPI builder interface that each ACPI platform can choose to > implement. > This way, a new machine type can re-use the high level ACPI APIs and > define some

Re: [Xen-devel] [PATCH v5 22/24] hw: pci-host: piix: Return PCI host pointer instead of PCI bus

2018-11-16 Thread Igor Mammedov
On Mon, 5 Nov 2018 02:40:45 +0100 Samuel Ortiz wrote: All remaining patches a bit out of proper order, they should be around patch 12/24 where you started to touch MCFG code. > For building the MCFG table, we need to track a given machine > type PCI host pointer, and we can't get it from the

Re: [Xen-devel] [PATCH v5 19/24] hw: acpi: Retrieve the PCI bus from AcpiPciHpState

2018-11-16 Thread Igor Mammedov
along with find_i440fx(), it might be worth to mention in this commit message. Something along lines that ACPI PCIHP exist to support guests without SHPC support on PCI based PC machine. Considering that Q35 provides native PCI-E hotplug, there is no need to add ACPI hotplug there.

Re: [Xen-devel] [Qemu-devel] [PATCH v5 18/24] hw: i386: Export the MADT build method

2018-11-16 Thread Igor Mammedov
On Mon, 5 Nov 2018 02:40:41 +0100 Samuel Ortiz wrote: > It is going to be used by the PC machine type as the MADT table builder > method and thus needs to be exported outside of acpi-build.c > > Also, now that the generic build_madt() API is exported, we have to > rename the ARM static one in

Re: [Xen-devel] [Qemu-devel] [PATCH v5 15/24] hw: i386: Export the i386 ACPI SRAT build method

2018-11-15 Thread Igor Mammedov
On Mon, 5 Nov 2018 02:40:38 +0100 Samuel Ortiz wrote: > This is the standard way of building SRAT on x86 platfoms. But future > machine types could decide to define their own custom SRAT build method > through the ACPI builder methods. > Moreover, we will also need to reach build_srat() from

Re: [Xen-devel] [PATCH v5 14/24] hw: i386: Make the hotpluggable memory size property more generic

2018-11-15 Thread Igor Mammedov
t; it to memory-device.h instead. > > Signed-off-by: Samuel Ortiz not sure it belong to this series, but regardless where it end-ups Reviewed-by: Igor Mammedov > --- > include/hw/i386/pc.h | 1 - > include/hw/mem/memory-device.h | 2 ++ > hw/i386/acpi-build.c

Re: [Xen-devel] [PATCH v5 12/24] hw: acpi: Export the MCFG getter

2018-11-15 Thread Igor Mammedov
On Mon, 5 Nov 2018 02:40:35 +0100 Samuel Ortiz wrote: > From: Yang Zhong > > The ACPI MCFG getter is not x86 specific and could be called from > anywhere within generic ACPI API, so let's export it. So far it's x86 or more exactly q35 specific thing, for example it won't work with arm/virt

Re: [Xen-devel] [PATCH v5 11/24] hw: acpi: Export and generalize the PCI host AML API

2018-11-14 Thread Igor Mammedov
On Mon, 5 Nov 2018 02:40:34 +0100 Samuel Ortiz wrote: > From: Yang Zhong > > The AML build routines for the PCI host bridge and the corresponding > DSDT addition are neither x86 nor PC machine type specific. > We can move them to the architecture agnostic hw/acpi folder, and by > carrying all

Re: [Xen-devel] [Qemu-devel] [PATCH v5 10/24] hw: acpi: Export the PCI host and holes getters

2018-11-13 Thread Igor Mammedov
On Mon, 5 Nov 2018 02:40:33 +0100 Samuel Ortiz wrote: > This is going to be needed by the hardware reduced implementation, so > let's export it. > Once the ACPI builder methods and getters will be implemented, the > acpi_get_pci_host() implementation will become hardware agnostic. > >

Re: [Xen-devel] [PATCH v5 09/24] hw: i386: Move PCI host definitions to pci_host.h

2018-11-09 Thread Igor Mammedov
On Mon, 5 Nov 2018 02:40:32 +0100 Samuel Ortiz wrote: > The PCI hole properties are not pc or i386 specific. They belong to the > PCI host header instead. > > Signed-off-by: Samuel Ortiz > --- > include/hw/i386/pc.h | 5 - > include/hw/pci/pci_host.h | 6 ++ > 2 files changed, 6

Re: [Xen-devel] [PATCH v5 02/24] hw: acpi: Export ACPI build alignment API

2018-11-09 Thread Igor Mammedov
On Mon, 5 Nov 2018 02:40:25 +0100 Samuel Ortiz wrote: > This is going to be needed by the Hardware-reduced ACPI routines. > > Reviewed-by: Philippe Mathieu-Daudé > Tested-by: Philippe Mathieu-Daudé > Signed-off-by: Samuel Ortiz the patch is probably misplaced withing series, if there is an

Re: [Xen-devel] [PATCH v5 01/24] hw: i386: Decouple the ACPI build from the PC machine type

2018-11-09 Thread Igor Mammedov
On Mon, 5 Nov 2018 02:40:24 +0100 Samuel Ortiz wrote: > ACPI tables are platform and machine type and even architecture > agnostic, and as such we want to provide an internal ACPI API that > only depends on platform agnostic information. > > For the x86 architecture, in order to build ACPI

Re: [Xen-devel] [PATCH v5 07/24] hw: acpi: Generalize AML build routines

2018-11-09 Thread Igor Mammedov
On Mon, 5 Nov 2018 02:40:30 +0100 Samuel Ortiz wrote: > From: Yang Zhong > > Most of the AML build routines under acpi-build are not even > architecture specific. They can be moved to the more generic hw/acpi > folder where they could be shared across machine types and > architectures. I'd

Re: [Xen-devel] [Qemu-devel] [PATCH v5 13/24] hw: acpi: Do not create hotplug method when handler is not defined

2018-11-09 Thread Igor Mammedov
On Mon, 5 Nov 2018 02:40:36 +0100 Samuel Ortiz wrote: > CPU and memory ACPI hotplug are not necessarily handled through SCI > events. For example, with Hardware-reduced ACPI, the GED device will > manage ACPI hotplug entirely. > As a consequence, we make the CPU and memory specific events AML >

Re: [Xen-devel] [Qemu-devel] [PATCH v5 05/24] hw: acpi: Implement XSDT support for RSDP

2018-11-08 Thread Igor Mammedov
On Thu, 8 Nov 2018 15:16:23 +0100 Igor Mammedov wrote: [...] > patch 4: convert arm's impl. to build_append_int_noprefix() API (commit > 5d7a334f7) >... move out to aml-build.c my mistake, generally when we move something out, we should do it in separate path preferabl

Re: [Xen-devel] [Qemu-devel] [PATCH v5 03/24] hw: acpi: The RSDP build API can return void

2018-11-08 Thread Igor Mammedov
On Mon, 5 Nov 2018 02:40:26 +0100 Samuel Ortiz wrote: > For both x86 and ARM architectures, the internal RSDP build API can > return void as the current return value is unused. > > Signed-off-by: Samuel Ortiz Reviewed-by: Igor Mammedov > --- > hw/arm/virt-acpi-build.c |

Re: [Xen-devel] [PATCH v5 16/24] hw: acpi: Fix memory hotplug AML generation error

2018-11-08 Thread Igor Mammedov
o value ^ > > Signed-off-by: Yang Zhong Reviewed-by: Igor Mammedov I suggest to put this patch at the beginning of the series before reference tables in test are updated. > --- > hw/acpi/memory_hotplug.c | 10 +- > 1 file changed, 5 insertions(+), 5 deletions(-) > &g

Re: [Xen-devel] [PATCH v5 05/24] hw: acpi: Implement XSDT support for RSDP

2018-11-08 Thread Igor Mammedov
On Mon, 5 Nov 2018 02:40:28 +0100 Samuel Ortiz wrote: > XSDT is the 64-bit version of the legacy ACPI RSDT (Root System > Description Table). RSDT only allow for 32-bit addressses and have thus > been deprecated. Since ACPI version 2.0, RSDPs should point at XSDTs and > no longer RSDTs,

Re: [Xen-devel] [Qemu-devel] [PATCH 08/30] hw/i386: use the BYTE-based definitions

2018-03-05 Thread Igor Mammedov
On Mon, 5 Mar 2018 13:29:15 +0100 Igor Mammedov <imamm...@redhat.com> wrote: > On Thu, 15 Feb 2018 01:28:38 -0300 > Philippe Mathieu-Daudé <f4...@amsat.org> wrote: > > > It ease code review, unit is explicit. > > > > Signed-off-by:

Re: [Xen-devel] [PATCH 08/30] hw/i386: use the BYTE-based definitions

2018-03-05 Thread Igor Mammedov
} > > -#define HOLE_640K_START (640 * 1024) > -#define HOLE_640K_END (1024 * 1024) > +#define HOLE_640K_START (640 * K_BYTE) > +#define HOLE_640K_END (1024 * K_BYTE) nit: could be 1 * M_BYTE [...] Reviewed-by: Igor Mammedov <imamm...@redhat.com>