[Qemu-devel] [PATCH v6 3/3] pci: enable RedHat PCI bridges to reserve additional resource on PCI init

2017-08-13 Thread Aleksandr Bezzubikov
In case of Red Hat Generic PCIE Root Port reserve additional buses and/or IO/MEM/PREF space, which values are provided in a vendor-specific capability. Signed-off-by: Aleksandr Bezzubikov <zuban...@gmail.com> --- src/fw/pciinit.

[Qemu-devel] [PATCH v6 1/4] hw/pci: introduce pcie-pci-bridge device

2017-08-13 Thread Aleksandr Bezzubikov
Introduce a new PCIExpress-to-PCI Bridge device, which is a hot-pluggable PCI Express device and supports devices hot-plug with SHPC. This device is intended to replace the DMI-to-PCI Bridge. Signed-off-by: Aleksandr Bezzubikov <zuban...@gmail.com> Reviewed-by: Marcel Apfelbau

[Qemu-devel] [PATCH v6 0/4] Generic PCIE-PCI Bridge

2017-08-13 Thread Aleksandr Bezzubikov
ability to help firmware on the system init. This allows the bridge to be hotpluggable. Now it's supported only for pcie-root-port. Now it's supposed to used with SeaBIOS only, look at the SeaBIOS corresponding series "Allow RedHat PCI bridges reserve more buses than necessary duri

[Qemu-devel] [PATCH v6 4/4] docs: update documentation considering PCIE-PCI bridge

2017-08-13 Thread Aleksandr Bezzubikov
Signed-off-by: Aleksandr Bezzubikov <zuban...@gmail.com> Reviewed-by: Laszlo Ersek <ler...@redhat.com> Reviewed-by: Marcel Apfelbaum <mar...@redhat.com> --- docs/pcie.txt| 49 ++-- docs/pcie_pci_bridge.txt | 114 ++

[Qemu-devel] [PATCH v6 3/4] hw/pci: add QEMU-specific PCI capability to the Generic PCI Express Root Port

2017-08-13 Thread Aleksandr Bezzubikov
to reserve are provided to the device via a corresponding property, and to the firmware via new PCI capability. The properties' default values are -1 to keep default behavior unchanged. Signed-off-by: Aleksandr Bezzubikov <zuban...@gmail.com> Reviewed-by: Marcel Apfelbaum <mar...@redhat.com

[Qemu-devel] [PATCH v6 2/4] hw/pci: introduce bridge-only vendor-specific capability to provide some hints to firmware

2017-08-13 Thread Aleksandr Bezzubikov
On PCI init PCI bridges may need some extra info about bus number, IO, memory and prefetchable memory to reserve. QEMU can provide this with a special vendor-specific PCI capability. Signed-off-by: Aleksandr Bezzubikov <zuban...@gmail.com> Reviewed-by: Marcel Apfelbaum <mar...@redhat.com

Re: [Qemu-devel] [PATCH v6 0/4] Generic PCIE-PCI Bridge

2017-08-13 Thread Aleksandr Bezzubikov
2017-08-13 18:49 GMT+03:00 Aleksandr Bezzubikov <zuban...@gmail.com>: > This series introduces a new device - Generic PCI Express to PCI bridge, > and also makes all necessary changes to enable hotplug of the bridge itself > and any device into the bridge. > > Changes v5->

[Qemu-devel] [PATCH v6 2/3] pci: add QEMU-specific PCI capability structure

2017-08-13 Thread Aleksandr Bezzubikov
-off-by: Aleksandr Bezzubikov <zuban...@gmail.com> --- src/fw/dev-pci.h | 53 + 1 file changed, 53 insertions(+) create mode 100644 src/fw/dev-pci.h diff --git a/src/fw/dev-pci.h b/src/fw/dev-pci.h new file mode 100644 index 000..0

Re: [Qemu-devel] [PATCH v4 5/5] docs: update documentation considering PCIE-PCI bridge

2017-08-09 Thread Aleksandr Bezzubikov
2017-08-09 13:18 GMT+03:00 Laszlo Ersek <ler...@redhat.com>: > On 08/08/17 21:21, Aleksandr Bezzubikov wrote: >> 2017-08-08 18:11 GMT+03:00 Laszlo Ersek <ler...@redhat.com>: >>> one comment below >>> >>> On 08/05/17 22:27, Aleksandr Bezzubikov wrote:

[Qemu-devel] [PATCH v5 0/3] Red Hat PCI bridge resource reserve capability (was: Allow RedHat PCI bridges reserve more buses than necessary during init)

2017-08-10 Thread Aleksandr Bezzubikov
structure for IO, memory and prefetchable memory limits. Aleksandr Bezzubikov (3): pci: refactor pci_find_capapibilty to get bdf as the first argument instead of the whole pci_device pci: add QEMU-specific PCI capability structure pci: enable RedHat PCI bridges to reserve additional resource on PCI

[Qemu-devel] [PATCH v5 2/3] pci: add QEMU-specific PCI capability structure

2017-08-10 Thread Aleksandr Bezzubikov
-off-by: Aleksandr Bezzubikov <zuban...@gmail.com> --- src/fw/dev-pci.h | 52 1 file changed, 52 insertions(+) create mode 100644 src/fw/dev-pci.h diff --git a/src/fw/dev-pci.h b/src/fw/dev-pci.h new file mode 100644 index 000..c

[Qemu-devel] [PATCH v5 3/3] pci: enable RedHat PCI bridges to reserve additional resource on PCI init

2017-08-10 Thread Aleksandr Bezzubikov
In case of Red Hat Generic PCIE Root Port reserve additional buses and/or IO/MEM/PREF space, which values are provided in a vendor-specific capability. Signed-off-by: Aleksandr Bezzubikov <zuban...@gmail.com> --- src/fw/dev-pci.h | 2 +- src/fw/pciinit.c

[Qemu-devel] [PATCH v5 3/4] hw/pci: add QEMU-specific PCI capability to the Generic PCI Express Root Port

2017-08-10 Thread Aleksandr Bezzubikov
to reserve are provided to the device via a corresponding property, and to the firmware via new PCI capability. The properties' default values are -1 to keep default behavior unchanged. Signed-off-by: Aleksandr Bezzubikov <zuban...@gmail.com> Reviewed-by: Marcel Apfelbaum <mar...@redhat.com

[Qemu-devel] [PATCH v5 0/4] Generic PCIE-PCI Bridge

2017-08-10 Thread Aleksandr Bezzubikov
ows the bridge to be hotpluggable. Now it's supported only for pcie-root-port. Now it's supposed to used with SeaBIOS only, look at the SeaBIOS corresponding series "Allow RedHat PCI bridges reserve more buses than necessary during init". Aleksandr Bezzubikov (4): hw/pci: i

[Qemu-devel] [PATCH v5 1/4] hw/pci: introduce pcie-pci-bridge device

2017-08-10 Thread Aleksandr Bezzubikov
Introduce a new PCIExpress-to-PCI Bridge device, which is a hot-pluggable PCI Express device and supports devices hot-plug with SHPC. This device is intended to replace the DMI-to-PCI Bridge. Signed-off-by: Aleksandr Bezzubikov <zuban...@gmail.com> --- hw/pci-bridge/Makefile.objs

[Qemu-devel] [PATCH v5 4/4] docs: update documentation considering PCIE-PCI bridge

2017-08-10 Thread Aleksandr Bezzubikov
Signed-off-by: Aleksandr Bezzubikov <zuban...@gmail.com> --- docs/pcie.txt| 49 ++-- docs/pcie_pci_bridge.txt | 115 +++ 2 files changed, 141 insertions(+), 23 deletions(-) create mode 100644 docs/pcie_pci_bridge.txt

[Qemu-devel] [PATCH v5 2/4] hw/pci: introduce bridge-only vendor-specific capability to provide some hints to firmware

2017-08-10 Thread Aleksandr Bezzubikov
On PCI init PCI bridges may need some extra info about bus number, IO, memory and prefetchable memory to reserve. QEMU can provide this with a special vendor-specific PCI capability. Signed-off-by: Aleksandr Bezzubikov <zuban...@gmail.com> Reviewed-by: Marcel Apfelbaum <mar...@redhat.com

[Qemu-devel] [PATCH v6 0/3] Red Hat PCI bridge resource reserve capability

2017-08-13 Thread Aleksandr Bezzubikov
d: - data type added; - reserve space in a structure for IO, memory and prefetchable memory limits. Aleksandr Bezzubikov (3): pci: refactor pci_find_capapibilty to get bdf as the first argument instead of the whole pci_device pci: add QEMU-specific PCI capability struct

[Qemu-devel] [PATCH v6 1/3] pci: refactor pci_find_capapibilty to get bdf as the first argument instead of the whole pci_device

2017-08-13 Thread Aleksandr Bezzubikov
Refactor pci_find_capability function to get bdf instead of a whole pci_device* as the only necessary field for this function is still bdf. Signed-off-by: Aleksandr Bezzubikov <zuban...@gmail.com> Reviewed-by: Marcel Apfelbaum <mar...@redhat.com> --- src/fw/pciinit.c| 4 ++--

[Qemu-devel] [RFC PATCH v2 5/6] hw/pci: add bus_reserve property to pcie-root-port

2017-07-22 Thread Aleksandr Bezzubikov
property, and to the firmware via new PCI capability (next patch). The property's default value is 1 as we want to hotplug at least 1 bridge. Signed-off-by: Aleksandr Bezzubikov <zuban...@gmail.com> --- hw/pci-bridge/pcie_root_port.c | 1 + include/hw/pci/pcie_port.h | 3 +++ 2 files chan

[Qemu-devel] [RFC PATCH v2 6/6] hw/pci: add hint capabilty for additional bus reservation to pcie-root-port

2017-07-22 Thread Aleksandr Bezzubikov
Signed-off-by: Aleksandr Bezzubikov <zuban...@gmail.com> --- hw/pci-bridge/pcie_root_port.c | 5 + 1 file changed, 5 insertions(+) diff --git a/hw/pci-bridge/pcie_root_port.c b/hw/pci-bridge/pcie_root_port.c index b0e49e1..ca92d85 100644 --- a/hw/pci-bridge/pcie_root_port.c +++ b/

[Qemu-devel] [RFC PATCH v2 0/6] Generic PCIE-PCI Bridge

2017-07-22 Thread Aleksandr Bezzubikov
ity to help firmware on the system init. This allows the bridge to be hotpluggable. Now it's supported only for pcie-root-port. Now it's supposed to used with SeaBIOS only, look at the SeaBIOS corresponding series "". Aleksandr Bezzubikov (6): hw/pci: introduce pcie-pci-bridg

[Qemu-devel] [RFC PATCH v2 4/6] hw/pci: introduce bridge-only vendor-specific capability to provide some hints to firmware

2017-07-22 Thread Aleksandr Bezzubikov
only 1 byte since it is the size of Subordinate Bus Number register. Signed-off-by: Aleksandr Bezzubikov <zuban...@gmail.com> --- hw/pci/pci_bridge.c | 27 +++ include/hw/pci/pci_bridge.h | 18 ++ 2 files changed, 45 insertions(+) diff --git a/

[Qemu-devel] [RFC PATCH v2 0/4] Allow RedHat PCI bridges reserve more buses than necessary during init

2017-07-22 Thread Aleksandr Bezzubikov
e in a structure for IO, memory and prefetchable memory limits. Aleksandr Bezzubikov (4): pci: refactor pci_find_capapibilty to get bdf as the first argument instead of the whole pci_device pci: add RedHat vendor ID pci: add QEMU-specific PCI capability structure pci: enable Re

[Qemu-devel] [RFC PATCH v2 1/4] pci: refactor pci_find_capapibilty to get bdf as the first argument instead of the whole pci_device

2017-07-22 Thread Aleksandr Bezzubikov
Refactor pci_find_capability function to get bdf instead of a whole pci_device* as the only necessary field for this function is still bdf. It greatly helps when we have bdf but not pci_device. Signed-off-by: Aleksandr Bezzubikov <zuban...@gmail.com> --- src/fw/pciinit.c| 4 ++--

[Qemu-devel] [RFC PATCH v2 2/4] pci: add RedHat vendor ID

2017-07-22 Thread Aleksandr Bezzubikov
Signed-off-by: Aleksandr Bezzubikov <zuban...@gmail.com> --- src/hw/pci_ids.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hw/pci_ids.h b/src/hw/pci_ids.h index 4ac73b4..db2e694 100644 --- a/src/hw/pci_ids.h +++ b/src/hw/pci_ids.h @@ -2263,6 +2263,8 @@ #

[Qemu-devel] [RFC PATCH v2 3/4] pci: add QEMU-specific PCI capability structure

2017-07-22 Thread Aleksandr Bezzubikov
of limits match ones from PCI Type 1 Configuration Space Header, number of buses to reserve occupies only 1 byte since it is the size of Subordinate Bus Number register. Signed-off-by: Aleksandr Bezzubikov <zuban...@gmail.com> --- src/hw/pci_cap.h | 23 +++ 1 file chang

[Qemu-devel] [RFC PATCH v2 4/4] pci: enable RedHat PCI bridges to reserve additional buses on PCI init

2017-07-22 Thread Aleksandr Bezzubikov
In case of Red Hat PCI bridges reserve additional buses, which number is provided in a vendor-specific capability. Signed-off-by: Aleksandr Bezzubikov <zuban...@gmail.com> --- src/fw/pciinit.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/fw/pci

[Qemu-devel] [RFC PATCH v2 1/6] hw/pci: introduce pcie-pci-bridge device

2017-07-22 Thread Aleksandr Bezzubikov
Signed-off-by: Aleksandr Bezzubikov <zuban...@gmail.com> --- hw/pci-bridge/Makefile.objs | 2 +- hw/pci-bridge/pcie_pci_bridge.c | 151 include/hw/pci/pci.h| 1 + 3 files changed, 153 insertions(+), 1 deletion(-) create mode 100

[Qemu-devel] [RFC PATCH v2 3/6] hw/pci: enable SHPC for PCIE-PCI bridge

2017-07-22 Thread Aleksandr Bezzubikov
Signed-off-by: Aleksandr Bezzubikov <zuban...@gmail.com> --- hw/pci-bridge/pcie_pci_bridge.c | 63 - 1 file changed, 62 insertions(+), 1 deletion(-) diff --git a/hw/pci-bridge/pcie_pci_bridge.c b/hw/pci-bridge/pcie_pci_bridge.c index 0991a7b..3

[Qemu-devel] [RFC PATCH v2 2/6] hw/i386: allow SHPC for Q35 machine

2017-07-22 Thread Aleksandr Bezzubikov
Unmask previously masked SHPC feature in _OSC method. Signed-off-by: Aleksandr Bezzubikov <zuban...@gmail.com> --- hw/i386/acpi-build.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c index 6b7bade..0d99585 100644 --- a/hw/i38

[Qemu-devel] [RFC PATCH 0/2] Allow RedHat PCI bridges reserve more buses than necessary during init

2017-07-19 Thread Aleksandr Bezzubikov
in RedHat generic pcie-root-port that contains number of additional bus to reserve on BIOS PCI init. Aleksandr Bezzubikov (2): pci: add support for direct usage of bdf for capability lookup pci: enable RedHat pci bridges to reserve more buses src/fw/pciinit.c | 12 ++-- src/hw

[Qemu-devel] [RFC PATCH 2/2] pci: enable RedHat pci bridges to reserve more buses

2017-07-19 Thread Aleksandr Bezzubikov
In case of RedHat PCI bridges reserve additional buses, which number is provided in a vendor-specific capability. Signed-off-by: Aleksandr Bezzubikov <zuban...@gmail.com> --- src/fw/pciinit.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/fw/pciinit.c

[Qemu-devel] [RFC PATCH 1/2] pci: add support for direct usage of bdf for capability lookup

2017-07-19 Thread Aleksandr Bezzubikov
Add a capability lookup function which gets bdf instead of pci_device as its first argument. It may be useful when we have bdf, but don't have the whole pci_device structure. Signed-off-by: Aleksandr Bezzubikov <zuban...@gmail.com> --- src/hw/pcidevice.c | 24

[Qemu-devel] [PATCH RFC 5/6] hw/acpi: extend acpi pci hotplug support for pci express

2017-06-29 Thread Aleksandr Bezzubikov
Signed-off-by: Aleksandr Bezzubikov <zuban...@gmail.com> --- hw/i386/acpi-build.c | 47 +++ 1 file changed, 31 insertions(+), 16 deletions(-) diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c index e434efe..8bbece5 100644 --- a/hw/i38

[Qemu-devel] [PATCH RFC 1/6] hw/acpi: remove dead acpi code

2017-06-29 Thread Aleksandr Bezzubikov
Signed-off-by: Aleksandr Bezzubikov <zuban...@gmail.com> --- hw/i386/acpi-build.c | 10 -- 1 file changed, 10 deletions(-) diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c index afcadac..6fce967 100644 --- a/hw/i386/acpi-build.c +++ b/hw/i386/acpi-build.c @@ -1912,16 +

[Qemu-devel] [PATCH RFC 3/6] hw/acpi: fix pcihp io initialization

2017-06-29 Thread Aleksandr Bezzubikov
Signed-off-by: Aleksandr Bezzubikov <zuban...@gmail.com> --- hw/i386/acpi-build.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c index b0dcd34..c99dbcc 100644 --- a/hw/i386/acpi-build.c +++ b/hw/i386/acpi-build.c @@ -

[Qemu-devel] [PATCH RFC 6/6] hw/ich9: enable acpi pci hotplug

2017-06-29 Thread Aleksandr Bezzubikov
Signed-off-by: Aleksandr Bezzubikov <zuban...@gmail.com> --- hw/acpi/ich9.c | 31 +++ hw/isa/lpc_ich9.c | 12 include/hw/acpi/ich9.h | 4 include/hw/i386/pc.h | 7 ++- 4 files changed, 53 insertions(+), 1 deletion(-) diff

[Qemu-devel] [PATCH RFC 0/6] q35: add acpi pci hotplug support

2017-06-29 Thread Aleksandr Bezzubikov
generated dynamically. In other words, the bridge plugged in - a new acpi definition block is loaded (using LoadTable method). This is necessary for PCIE-PCI bridge hotplugging feature. Aleksandr Bezzubikov (6): hw/acpi: remove dead acpi code hw/acpi: simplify dsdt building code hw/acpi: fi

[Qemu-devel] [PATCH RFC 4/6] hw/acpi: prepare pci hotplug IO for ich9

2017-06-29 Thread Aleksandr Bezzubikov
Signed-off-by: Aleksandr Bezzubikov <zuban...@gmail.com> --- hw/i386/acpi-build.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c index c99dbcc..e434efe 100644 --- a/hw/i386/acpi-build.c +++ b/hw/i386/acpi-b

[Qemu-devel] [PATCH RFC 2/6] hw/acpi: simplify dsdt building code

2017-06-29 Thread Aleksandr Bezzubikov
Signed-off-by: Aleksandr Bezzubikov <zuban...@gmail.com> --- hw/i386/acpi-build.c | 59 +++- 1 file changed, 26 insertions(+), 33 deletions(-) diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c index 6fce967..b0dcd34 100644 --- a/hw/i38

[Qemu-devel] [PATCH v4 1/5] hw/i386: allow SHPC for Q35 machine

2017-08-05 Thread Aleksandr Bezzubikov
Unmask previously masked SHPC feature in _OSC method. Signed-off-by: Aleksandr Bezzubikov <zuban...@gmail.com> Reviewed-by: Marcel Apfelbaum <mar...@redhat.com> --- hw/i386/acpi-build.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/i386/acpi-build.c b/

[Qemu-devel] [PATCH v4 2/5] hw/pci: introduce pcie-pci-bridge device

2017-08-05 Thread Aleksandr Bezzubikov
Introduce a new PCIExpress-to-PCI Bridge device, which is a hot-pluggable PCI Express device and supports devices hot-plug with SHPC. This device is intended to replace the DMI-to-PCI Bridge in an overwhelming majority of use-cases. Signed-off-by: Aleksandr Bezzubikov <zuban...@gmail.

[Qemu-devel] [PATCH v4 0/5] Generic PCIE-PCI Bridge

2017-08-05 Thread Aleksandr Bezzubikov
ow it's supposed to used with SeaBIOS only, look at the SeaBIOS corresponding series "Allow RedHat PCI bridges reserve more buses than necessary during init". Aleksandr Bezzubikov (5): hw/i386: allow SHPC for Q35 machine hw/pci: introduce pcie-pci-bridge device hw/pci: introdu

[Qemu-devel] [PATCH v4 3/3] pci: enable RedHat PCI bridges to reserve additional buses on PCI init

2017-08-05 Thread Aleksandr Bezzubikov
In case of Red Hat Generic PCIE Root Port reserve additional buses, which number is provided in a vendor-specific capability. Signed-off-by: Aleksandr Bezzubikov <zuban...@gmail.com> --- src/fw/pciinit.c | 69 src/hw/pci_ids.h | 3

[Qemu-devel] [PATCH v4 4/5] hw/pci: add QEMU-specific PCI capability to the Generic PCI Express Root Port

2017-08-05 Thread Aleksandr Bezzubikov
is provided to the device via a corresponding property, and to the firmware via new PCI capability. The properties' default value is -1 to keep default behavior unchanged. Signed-off-by: Aleksandr Bezzubikov <zuban...@gmail.com> --- hw/pci-bridge/gen_pcie_root_port.

[Qemu-devel] [PATCH v4 3/5] hw/pci: introduce bridge-only vendor-specific capability to provide some hints to firmware

2017-08-05 Thread Aleksandr Bezzubikov
On PCI init PCI bridges may need some extra info about bus number, IO, memory and prefetchable memory to reserve. QEMU can provide this with a special vendor-specific PCI capability. Signed-off-by: Aleksandr Bezzubikov <zuban...@gmail.com> --- hw/pci/pci_bridge.c

[Qemu-devel] [PATCH v4 5/5] docs: update documentation considering PCIE-PCI bridge

2017-08-05 Thread Aleksandr Bezzubikov
Signed-off-by: Aleksandr Bezzubikov <zuban...@gmail.com> --- docs/pcie.txt| 49 +++-- docs/pcie_pci_bridge.txt | 110 +++ 2 files changed, 136 insertions(+), 23 deletions(-) create mode 100644 docs/pcie_pci_bridge.txt

[Qemu-devel] [PATCH v4 0/3] Allow RedHat PCI bridges reserve more buses than necessary during init

2017-08-05 Thread Aleksandr Bezzubikov
endor added (addresses Konrad's comment). 2. Refactored pci_find_capability function (addresses Marcel's comment). 3. Capability reworked: - data type added; - reserve space in a structure for IO, memory and prefetchable memory limits. Aleksandr Bezzubiko

[Qemu-devel] [PATCH v4 2/3] pci: add QEMU-specific PCI capability structure

2017-08-05 Thread Aleksandr Bezzubikov
-off-by: Aleksandr Bezzubikov <zuban...@gmail.com> --- src/fw/dev-pci.h | 50 ++ 1 file changed, 50 insertions(+) create mode 100644 src/fw/dev-pci.h diff --git a/src/fw/dev-pci.h b/src/fw/dev-pci.h new file mode 100644 index 000..2c8ddb0 --

[Qemu-devel] [PATCH v3 0/3] Allow RedHat PCI bridges reserve more buses than necessary during init

2017-07-28 Thread Aleksandr Bezzubikov
s v1->v2: 1. New #define for Red Hat vendor added (addresses Konrad's comment). 2. Refactored pci_find_capability function (addresses Marcel's comment). 3. Capability reworked: - data type added; - reserve space in a structure for IO, memory and prefetchable memory

[Qemu-devel] [PATCH v3 0/5] Generic PCIE-PCI Bridge

2017-07-28 Thread Aleksandr Bezzubikov
bridge to be hotpluggable. Now it's supported only for pcie-root-port. Now it's supposed to used with SeaBIOS only, look at the SeaBIOS corresponding series "". Aleksandr Bezzubikov (5): hw/i386: allow SHPC for Q35 machine hw/pci: introduce pcie-pci-bridge device hw/pci: intro

[Qemu-devel] [PATCH v3 1/5] hw/i386: allow SHPC for Q35 machine

2017-07-28 Thread Aleksandr Bezzubikov
Unmask previously masked SHPC feature in _OSC method. Signed-off-by: Aleksandr Bezzubikov <zuban...@gmail.com> --- hw/i386/acpi-build.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c index 6b7bade..2ab32f9 100644 --- a/h

[Qemu-devel] [PATCH v3 4/5] hw/pci: add QEMU-specific PCI capability to Generic PCI Express Root Port

2017-07-28 Thread Aleksandr Bezzubikov
From: Aleksandr Bezzubikov <abezzubi...@ispras.ru> To enable hotplugging of a newly created pcie-pci-bridge, we need to tell firmware (SeaBIOS in this case) to reserve additional buses for pcie-root-port, that allows us to hotplug pcie-pci-bridge into this root port. The number of

[Qemu-devel] [PATCH v3 2/3] pci: add QEMU-specific PCI capability structure

2017-07-28 Thread Aleksandr Bezzubikov
-off-by: Aleksandr Bezzubikov <zuban...@gmail.com> --- src/fw/dev-pci.h | 62 1 file changed, 62 insertions(+) create mode 100644 src/fw/dev-pci.h diff --git a/src/fw/dev-pci.h b/src/fw/dev-pci.h new file mode 100644 index 000..f

[Qemu-devel] [PATCH v3 3/3] pci: enable RedHat PCI bridges to reserve additional buses on PCI init

2017-07-28 Thread Aleksandr Bezzubikov
In case of Red Hat Generic PCIE Root Port reserve additional buses, which number is provided in a vendor-specific capability. Signed-off-by: Aleksandr Bezzubikov <zuban...@gmail.com> --- src/fw/pciinit.c | 37 +++-- src/hw/pci_ids.h | 3 +++ src/types.h

[Qemu-devel] [PATCH v3 2/5] hw/pci: introduce pcie-pci-bridge device

2017-07-28 Thread Aleksandr Bezzubikov
Introduce a new PCIExpress-to-PCI Bridge device, which is a hot-pluggable PCI Express device and supports devices hot-plug with SHPC. This device is intended to replace the DMI-to-PCI Bridge in an overwhelming majority of use-cases. Signed-off-by: Aleksandr Bezzubikov <zuban...@gmail.

[Qemu-devel] [PATCH v3 5/5] docs: update documentation considering PCIE-PCI bridge

2017-07-28 Thread Aleksandr Bezzubikov
Signed-off-by: Aleksandr Bezzubikov <zuban...@gmail.com> --- docs/pcie.txt| 46 ++ docs/pcie_pci_bridge.txt | 121 +++ 2 files changed, 147 insertions(+), 20 deletions(-) create mode 100644 docs/pcie_pci_bridge.txt

[Qemu-devel] [PATCH v3 1/3] pci: refactor pci_find_capapibilty to get bdf as the first argument instead of the whole pci_device

2017-07-28 Thread Aleksandr Bezzubikov
Refactor pci_find_capability function to get bdf instead of a whole pci_device* as the only necessary field for this function is still bdf. Reviewed-by: Marcel Apfelbaum <mar...@redhat.com> Signed-off-by: Aleksandr Bezzubikov <zuban...@gmail.com> --- src/fw/pciinit.c| 4 ++--

[Qemu-devel] [PATCH v3 3/5] hw/pci: introduce bridge-only vendor-specific capability to provide some hints to firmware

2017-07-28 Thread Aleksandr Bezzubikov
On PCI init PCI bridges may need some extra info about bus number to reserve, IO, memory and prefetchable memory limits. QEMU can provide this with a special vendor-specific PCI capability. Signed-off-by: Aleksandr Bezzubikov <zuban...@gmail.com> --- hw/pci/pci_bridge.c

Re: [Qemu-devel] [PATCH v4 5/5] docs: update documentation considering PCIE-PCI bridge

2017-08-08 Thread Aleksandr Bezzubikov
2017-08-08 18:11 GMT+03:00 Laszlo Ersek <ler...@redhat.com>: > one comment below > > On 08/05/17 22:27, Aleksandr Bezzubikov wrote: > >> +Capability layout (defined in include/hw/pci/pci_bridge.h): >> + >> +uint8_t id; Standard PCI capability header fi

Re: [Qemu-devel] [PATCH v4 4/5] hw/pci: add QEMU-specific PCI capability to the Generic PCI Express Root Port

2017-08-08 Thread Aleksandr Bezzubikov
2017-08-08 22:54 GMT+03:00 Michael S. Tsirkin <m...@redhat.com>: > On Sat, Aug 05, 2017 at 11:27:37PM +0300, Aleksandr Bezzubikov wrote: >> To enable hotplugging of a newly created pcie-pci-bridge, >> we need to tell firmware (SeaBIOS in this case) > &g

[Qemu-devel] [PATCH v7 4/4] docs: update documentation considering PCIE-PCI bridge

2017-08-17 Thread Aleksandr Bezzubikov
Signed-off-by: Aleksandr Bezzubikov <zuban...@gmail.com> Reviewed-by: Laszlo Ersek <ler...@redhat.com> Reviewed-by: Marcel Apfelbaum <mar...@redhat.com> --- docs/pcie.txt| 49 ++-- docs/pcie_pci_bridge.txt | 114 ++

[Qemu-devel] [PATCH v7 2/4] hw/pci: introduce bridge-only vendor-specific capability to provide some hints to firmware

2017-08-17 Thread Aleksandr Bezzubikov
On PCI init PCI bridges may need some extra info about bus number, IO, memory and prefetchable memory to reserve. QEMU can provide this with a special vendor-specific PCI capability. Signed-off-by: Aleksandr Bezzubikov <zuban...@gmail.com> Reviewed-by: Marcel Apfelbaum <mar...@redhat.com

[Qemu-devel] [PATCH v7 2/3] pci: add QEMU-specific PCI capability structure

2017-08-17 Thread Aleksandr Bezzubikov
-off-by: Aleksandr Bezzubikov <zuban...@gmail.com> Reviewed-by: Marcel Apfelbaum <mar...@redhat.com> --- src/fw/dev-pci.h | 53 + 1 file changed, 53 insertions(+) create mode 100644 src/fw/dev-pci.h diff --git a/src/fw/dev-pci.h b/src/

[Qemu-devel] [PATCH RESEND v7 2/3] pci: add QEMU-specific PCI capability structure

2017-08-17 Thread Aleksandr Bezzubikov
-off-by: Aleksandr Bezzubikov <zuban...@gmail.com> Reviewed-by: Marcel Apfelbaum <mar...@redhat.com> --- src/fw/dev-pci.h | 53 + 1 file changed, 53 insertions(+) create mode 100644 src/fw/dev-pci.h diff --git a/src/fw/dev-pci.h b/src/

[Qemu-devel] [PATCH RESEND v7 1/3] pci: refactor pci_find_capapibilty to get bdf as the first argument instead of the whole pci_device

2017-08-17 Thread Aleksandr Bezzubikov
Refactor pci_find_capability function to get bdf instead of a whole pci_device* as the only necessary field for this function is still bdf. Signed-off-by: Aleksandr Bezzubikov <zuban...@gmail.com> Reviewed-by: Marcel Apfelbaum <mar...@redhat.com> --- src/fw/pciinit.c| 4 ++--

[Qemu-devel] [PATCH RESEND v7 0/3] Red Hat PCI bridge resource reserve capability

2017-08-17 Thread Aleksandr Bezzubikov
anges v1->v2: 1. New #define for Red Hat vendor added (addresses Konrad's comment). 2. Refactored pci_find_capability function (addresses Marcel's comment). 3. Capability reworked: - data type added; - reserve space in a structure for IO, memory and prefetchable memory

[Qemu-devel] [PATCH RESEND v7 3/3] pci: enable RedHat PCI bridges to reserve additional resources on PCI init

2017-08-17 Thread Aleksandr Bezzubikov
In case of Red Hat Generic PCIE Root Port reserve additional buses and/or IO/MEM/PREF space, which values are provided in a vendor-specific capability. Signed-off-by: Aleksandr Bezzubikov <zuban...@gmail.com> Reviewed-by: Marcel Apfelbaum <mar...@redhat.com> --- src/fw/pci

[Qemu-devel] [PATCH v7 3/4] hw/pci: add QEMU-specific PCI capability to the Generic PCI Express Root Port

2017-08-17 Thread Aleksandr Bezzubikov
to reserve are provided to the device via a corresponding property, and to the firmware via new PCI capability. The properties' default values are -1 to keep default behavior unchanged. Signed-off-by: Aleksandr Bezzubikov <zuban...@gmail.com> Reviewed-by: Marcel Apfelbaum <mar...@redhat.com

[Qemu-devel] [PATCH v7 0/3] Red Hat PCI bridge resource reserve capability

2017-08-17 Thread Aleksandr Bezzubikov
onrad's comment). 2. Refactored pci_find_capability function (addresses Marcel's comment). 3. Capability reworked: - data type added; - reserve space in a structure for IO, memory and prefetchable memory limits. Aleksandr Bezzubikov (3): pci: refactor pci_find_capa

[Qemu-devel] [PATCH v7 1/3] pci: refactor pci_find_capapibilty to get bdf as the first argument instead of the whole pci_device

2017-08-17 Thread Aleksandr Bezzubikov
Refactor pci_find_capability function to get bdf instead of a whole pci_device* as the only necessary field for this function is still bdf. Signed-off-by: Aleksandr Bezzubikov <zuban...@gmail.com> Reviewed-by: Marcel Apfelbaum <mar...@redhat.com> --- src/fw/pciinit.c| 4 ++--

[Qemu-devel] [PATCH v7 3/3] pci: enable RedHat PCI bridges to reserve additional resources on PCI init

2017-08-17 Thread Aleksandr Bezzubikov
In case of Red Hat Generic PCIE Root Port reserve additional buses and/or IO/MEM/PREF space, which values are provided in a vendor-specific capability. Signed-off-by: Aleksandr Bezzubikov <zuban...@gmail.com> Reviewed-by: Marcel Apfelbaum <mar...@redhat.com> --- src/fw/pci

[Qemu-devel] [PATCH v7 0/4] Generic PCIE-PCI Bridge

2017-08-17 Thread Aleksandr Bezzubikov
dge. 2. Enable SHPC support for the Q35 machine (ACPI stuff). 3. Introduce PCI capability to help firmware on the system init. This allows the bridge to be hotpluggable. Now it's supported only for pcie-root-port. Now it's supposed to used with SeaBIOS only, look at the SeaBIOS correspondi

[Qemu-devel] [PATCH v7 1/4] hw/pci: introduce pcie-pci-bridge device

2017-08-17 Thread Aleksandr Bezzubikov
Introduce a new PCIExpress-to-PCI Bridge device, which is a hot-pluggable PCI Express device and supports devices hot-plug with SHPC. This device is intended to replace the DMI-to-PCI Bridge. Signed-off-by: Aleksandr Bezzubikov <zuban...@gmail.com> Reviewed-by: Marcel Apfelbau

[Qemu-devel] Generic PCIE-PCI Bridge GSoC Project Report

2017-08-22 Thread Aleksandr Bezzubikov
hub: https://github.com/zuban32/seabios/commits/qemu_res_cap?author=zuban32 -- Aleksandr Bezzubikov

[Qemu-devel] [PATCH RFC] hw/pci-bridge: implement pcie-pci-bridge device

2017-06-25 Thread Aleksandr Bezzubikov
Signed-off-by: Aleksandr Bezzubikov <zuban...@gmail.com> --- hw/pci-bridge/Makefile.objs | 2 +- hw/pci-bridge/pcie_pci_bridge.c | 152 include/hw/pci/pci.h| 1 + 3 files changed, 154 insertions(+), 1 deletion(-) create mode 100

[Qemu-devel] [PATCH RFC] Generic PCIE-to-PCI Bridge

2017-06-25 Thread Aleksandr Bezzubikov
.html, but will require dynamic ACPI code emission in case when the bridge was hotplugged itself. Aleksandr Bezzubikov (1): hw/pci-bridge: implement pcie-pci-bridge device hw/pci-bridge/Makefile.objs | 2 +- hw/pci-bridge/pcie_pci_bridge.c | 152

Re: [Qemu-devel] [PATCH RESEND v7 0/3] Red Hat PCI bridge resource reserve capability

2017-09-14 Thread Aleksandr Bezzubikov
2017-09-10 22:40 GMT+03:00 Marcel Apfelbaum <mar...@redhat.com>: > On 10/09/2017 21:34, Aleksandr Bezzubikov wrote: >> >> >> пт, 18 авг. 2017 г. в 2:33, Aleksandr Bezzubikov <zuban...@gmail.com >> <mailto:zuban...@gmail.com>>: >> >> >&

Re: [Qemu-devel] What is the best commit for record-replay?

2017-09-18 Thread Aleksandr Bezzubikov
tried to record and replay WinXP boot process, and I've encountered exactly the same problem as described above - record is fine, replay gets stuck early. I use current master. And I've discovered the second problem - recording makes initial snapshot, but it doesn't seem to be saved to the disk - replay can't see it. Hope you've already found the solution (as the last post was on 2 May) and it's just got missed the mailing list. > -- Aleksandr Bezzubikov

Re: [Qemu-devel] What is the best commit for record-replay?

2017-09-18 Thread Aleksandr Bezzubikov
[+CC Pavel Dovgaluk, me] 2017-09-18 15:02 GMT+03:00 Aleksandr Bezzubikov <zuban...@gmail.com>: > 2017-05-02 15:42 GMT+03:00 Igor R <boost.li...@gmail.com>: >>>>>> I'm trying to use the deterministic record/replay feature, and I would >>>>>> lik

Re: [Qemu-devel] What is the best commit for record-replay?

2017-09-19 Thread Aleksandr Bezzubikov
2017-09-19 12:30 GMT+03:00 Alex Bennée <alex.ben...@linaro.org>: > > Pavel Dovgalyuk <dovga...@ispras.ru> writes: > >>> From: Aleksandr Bezzubikov [mailto:zuban...@gmail.com] >>> 2017-09-18 15:02 GMT+03:00 Aleksandr Bezzubikov <zuban...@gmail.com>: >

Re: [Qemu-devel] [PATCH v7 1/4] hw/pci: introduce pcie-pci-bridge device

2017-09-20 Thread Aleksandr Bezzubikov
ср, 20 сент. 2017 г. в 10:13, Marcel Apfelbaum <mar...@redhat.com>: > On 19/09/2017 23:34, Eduardo Habkost wrote: > > On Fri, Aug 18, 2017 at 02:36:47AM +0300, Aleksandr Bezzubikov wrote: > >> Introduce a new PCIExpress-to-PCI Bridge device, > >> which is a

Re: [Qemu-devel] [PATCH v7 1/4] hw/pci: introduce pcie-pci-bridge device

2017-09-20 Thread Aleksandr Bezzubikov
2017-09-20 17:02 GMT+03:00 Marcel Apfelbaum <mar...@redhat.com>: > On 20/09/2017 16:57, Eduardo Habkost wrote: >> >> On Wed, Sep 20, 2017 at 09:52:01AM +, Aleksandr Bezzubikov wrote: >>> >>> ср, 20 сент. 2017 г. в 10:13, Marcel Apfelbaum <mar...

[Qemu-devel] [PATCH] hw/pci-bridge/pcie_pci_bridge: properly handle MSI unavailability case

2017-09-20 Thread Aleksandr Bezzubikov
Signed-off-by: Aleksandr Bezzubikov <zuban...@gmail.com> --- hw/pci-bridge/pcie_pci_bridge.c | 24 ++-- 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/hw/pci-bridge/pcie_pci_bridge.c b/hw/pci-bridge/pcie_pci_bridge.c index 9aa5cc3..da562fe 100644 --- a/

Re: [Qemu-devel] [PATCH] hw/pci-bridge/pcie_pci_bridge: properly handle MSI unavailability case

2017-09-21 Thread Aleksandr Bezzubikov
2017-09-21 13:16 GMT+03:00 Marcel Apfelbaum <mar...@redhat.com>: > Hi Aleksandr, > > On 21/09/2017 0:21, Aleksandr Bezzubikov wrote: >> >> Signed-off-by: Aleksandr Bezzubikov <zuban...@gmail.com> >> --- >> hw/pci-bridge/pcie_pci_bridge.c | 24 +++

Re: [Qemu-devel] [PATCH v7 0/4] Generic PCIE-PCI Bridge

2017-09-05 Thread Aleksandr Bezzubikov
ср, 23 авг. 2017 г. в 5:46, Michael S. Tsirkin <m...@redhat.com>: > On Tue, Aug 22, 2017 at 02:43:39PM +0300, Marcel Apfelbaum wrote: > > On 18/08/2017 2:36, Aleksandr Bezzubikov wrote: > > > This series introduces a new device - Generic PCI Express to PCI > bridg

Re: [Qemu-devel] [PATCH RESEND v7 0/3] Red Hat PCI bridge resource reserve capability

2017-09-10 Thread Aleksandr Bezzubikov
пт, 18 авг. 2017 г. в 2:33, Aleksandr Bezzubikov <zuban...@gmail.com>: > Now PCI bridges get a bus range number on a system init, > basing on currently plugged devices. That's why when one wants to hotplug > another bridge, > it needs his child bus, which the parent is unable to

[Qemu-devel] [PATCH v2] hw/pci-bridge/pcie_pci_bridge: properly handle MSI unavailability case

2017-09-24 Thread Aleksandr Bezzubikov
. Also set the bridge's 'msi' property default value to 'auto' in order to trigger errors only when user explicitly set msi=on. v2: rewrite the commit message Reported-by: Eduardo Habkost <ehabk...@redhat.com> Signed-off-by: Aleksandr Bezzubikov <zuban...@gmail.com> Reviewed-by: Marc

Re: [Qemu-devel] Problem in pcie_pci_bridge_realize()

2017-09-27 Thread Aleksandr Bezzubikov
at > /home/thuth/devel/qemu/hw/core/qdev.c:914 > > Any clue what might be wrong here? > > Thomas Hi Thomas, This bug was already reported by Eduardo with ppc64, try this patch that is intended to fix it http://lists.nongnu.org/archive/html/qemu-devel/2017-09/msg06696.html -- Aleksandr Bezzubikov

Re: [Qemu-devel] Crash with pcie-pci-bridge on qemu-system-s390x

2017-11-02 Thread Aleksandr Bezzubikov
gt;> name=name@entry=0x559a4157 "realized", >> errp=errp@entry=0x7fffc6d8) at >> /home/thuth/devel/qemu/qom/qom-qobject.c:27 >> #5 0x557f0270 in object_property_set_bool (obj=0x5639b160, >> value=, name=0x5555559a4157 "realized", >> errp=0x7fffc6d8) >> at /home/thuth/devel/qemu/qom/object.c:1171 >> #6 0x5570b549 in qdev_device_add >> (opts=opts@entry=0x5640cb50, errp=errp@entry=0x7fffc7b0) at >> /home/thuth/devel/qemu/qdev-monitor.c:632 >> ... >> >> Thomas >> > Thanks, Aleksandr Bezzubikov

Re: [Qemu-devel] [PATCH v7 00/19] Fixing record/replay and adding reverse debugging

2018-10-10 Thread Aleksandr Bezzubikov
le.objs |3 > replay/replay-debugging.c | 319 > + > replay/replay-events.c| 16 ++ > replay/replay-internal.h |7 + > replay/replay-time.c | 32 ++--- > replay/replay.c | 26 > stu