Re: [PATCH] target/arm: build smbios 19 table

2022-11-22 Thread Mihai Carabas
La 22.11.2022 15:40, Peter Maydell a scris: On Mon, 21 Nov 2022 at 11:43, Peter Maydell wrote: On Mon, 21 Nov 2022 at 11:24, Mihai Carabas wrote: La 21.11.2022 13:02, Peter Maydell a scris: On Sun, 20 Nov 2022 at 17:53, Mihai Carabas wrote: La 18.11.2022 21:11, Peter Maydell a scris

Re: [PATCH] target/arm: build smbios 19 table

2022-11-21 Thread Mihai Carabas
La 21.11.2022 13:02, Peter Maydell a scris: On Sun, 20 Nov 2022 at 17:53, Mihai Carabas wrote: La 18.11.2022 21:11, Peter Maydell a scris: On Fri, 18 Nov 2022 at 17:37, Mihai Carabas wrote: Use the base_memmap to build the SMBIOS 19 table which provides the address mapping for a Physical

Re: [PATCH] target/arm: build smbios 19 table

2022-11-20 Thread Mihai Carabas
La 18.11.2022 21:11, Peter Maydell a scris: On Fri, 18 Nov 2022 at 17:37, Mihai Carabas wrote: Use the base_memmap to build the SMBIOS 19 table which provides the address mapping for a Physical Memory Array (from spec [1] chapter 7.20). This was present on i386 from commit

[PATCH] target/arm: build smbios 19 table

2022-11-18 Thread Mihai Carabas
[1] https://www.dmtf.org/sites/default/files/standards/documents/DSP0134_3.5.0.pdf Signed-off-by: Mihai Carabas --- hw/arm/virt.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/hw/arm/virt.c b/hw/arm/virt.c index cda9defe8f09..855b6982f363 100644 --- a/hw/arm/virt.c ++

Re: [PULL 21/46] tests/qtest: add a test case for pvpanic-pci

2021-01-29 Thread Mihai Carabas
La 29.01.2021 17:57, Peter Maydell a scris: On Fri, 29 Jan 2021 at 11:00, Peter Maydell wrote: From: Mihai Carabas Add a test case for pvpanic-pci device. The scenario is the same as pvpanic ISA device, but is using the PCI bus. Signed-off-by: Mihai Carabas Acked-by: Thomas Huth Reviewed

Re: [PATCH v6] Add support for pvpanic pci device

2021-01-27 Thread Mihai Carabas
La 27.01.2021 19:47, Peter Maydell a scris: On Wed, 27 Jan 2021 at 15:46, Mihai Carabas wrote: This patchset adds support for pvpanic pci device. v3: - patch 1: made pvpanic isa device available only for PC, compile pvpanic-test only when isa device is present - patch 2: fixed device id

[PATCH v6 2/4] hw/misc/pvpanic: add PCI interface support

2021-01-27 Thread Mihai Carabas
Add PCI interface support for PVPANIC device. Create a new file pvpanic-pci.c where the PCI specific routines reside and update the build system with the new files and config structure. Signed-off-by: Mihai Carabas Reviewed-by: Gerd Hoffmann Reviewed-by: Peter Maydell Signed-off-by: Mihai

[PATCH v6 1/4] hw/misc/pvpanic: split-out generic and bus dependent code

2021-01-27 Thread Mihai Carabas
ion io -> mr. - pvpanic_ioport_* in pvpanic_*. Update the build system with the new files and config structure. Signed-off-by: Mihai Carabas Reviewed-by: Peter Maydell --- hw/i386/Kconfig | 2 +- hw/misc/Kconfig | 6 ++- hw/misc/meson.build | 3 +- hw/misc/pvpa

[PATCH v6 3/4] pvpanic : update pvpanic spec document

2021-01-27 Thread Mihai Carabas
Add pvpanic PCI device support details in docs/specs/pvpanic.txt. Signed-off-by: Mihai Carabas Reviewed-by: Peter Maydell --- docs/specs/pvpanic.txt | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/docs/specs/pvpanic.txt b/docs/specs/pvpanic.txt index a90fbca

[PATCH v6 4/4] tests/qtest: add a test case for pvpanic-pci

2021-01-27 Thread Mihai Carabas
Add a test case for pvpanic-pci device. The scenario is the same as pvpanic ISA device, but is using the PCI bus. Signed-off-by: Mihai Carabas Acked-by: Thomas Huth Reviewed-by: Peter Maydell Signed-off-by: Mihai Carabas --- tests/qtest/meson.build| 1 + tests/qtest/pvpanic-pci

[PATCH v6] Add support for pvpanic pci device

2021-01-27 Thread Mihai Carabas
needed for MS WHQL tests v6: - removed subsystem_vendor_id and subsystem_id as they are filed out by default if empty - do not compile pvpanic-pci-test for ppc64 as we our tests do not support that platform Mihai Carabas (4): hw/misc/pvpanic: split-out generic and bus dependent code hw/misc

Re: [PATCH 2/4] hw/misc/pvpanic: add PCI interface support

2021-01-20 Thread Mihai Carabas
La 20.01.2021 15:43, Gerd Hoffmann a scris: Hi, +pc->realize = pvpanic_pci_realizefn; +pc->vendor_id = PCI_VENDOR_ID_REDHAT; +pc->device_id = PCI_DEVICE_ID_REDHAT_PVPANIC; Please fill out subsystem and subsystem vendor IDs as well: pc->subsystem_vendor_id pc->subsystem_id Not

[PATCH v5 1/4] hw/misc/pvpanic: split-out generic and bus dependent code

2021-01-20 Thread Mihai Carabas
ion io -> mr. - pvpanic_ioport_* in pvpanic_*. Update the build system with the new files and config structure. Signed-off-by: Mihai Carabas Reviewed-by: Peter Maydell --- hw/i386/Kconfig | 2 +- hw/misc/Kconfig | 6 ++- hw/misc/meson.build | 3 +- hw/misc/pvpa

[PATCH v5] Add support for pvpanic pci device

2021-01-20 Thread Mihai Carabas
needed for MS WHQL tests Mihai Carabas (4): hw/misc/pvpanic: split-out generic and bus dependent code hw/misc/pvpanic: add PCI interface support pvpanic : update pvpanic spec document tests/qtest: add a test case for pvpanic-pci docs/specs/pci-ids.txt | 1 + docs/specs/pvpanic.txt

[PATCH v5 2/4] hw/misc/pvpanic: add PCI interface support

2021-01-20 Thread Mihai Carabas
Add PCI interface support for PVPANIC device. Create a new file pvpanic-pci.c where the PCI specific routines reside and update the build system with the new files and config structure. Signed-off-by: Mihai Carabas Reviewed-by: Gerd Hoffmann Reviewed-by: Peter Maydell --- docs/specs/pci

[PATCH v5 3/4] pvpanic : update pvpanic spec document

2021-01-20 Thread Mihai Carabas
Add pvpanic PCI device support details in docs/specs/pvpanic.txt. Signed-off-by: Mihai Carabas Reviewed-by: Peter Maydell --- docs/specs/pvpanic.txt | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/docs/specs/pvpanic.txt b/docs/specs/pvpanic.txt index a90fbca

[PATCH v5 4/4] tests/qtest: add a test case for pvpanic-pci

2021-01-20 Thread Mihai Carabas
Add a test case for pvpanic-pci device. The scenario is the same as pvpanic ISA device, but is using the PCI bus. Signed-off-by: Mihai Carabas Acked-by: Thomas Huth Reviewed-by: Peter Maydell --- tests/qtest/meson.build| 1 + tests/qtest/pvpanic-pci-test.c | 94

Re: [PATCH 2/4] hw/misc/pvpanic: add PCI interface support

2021-01-20 Thread Mihai Carabas
+device_class_set_props(dc, pvpanic_pci_properties); + +pc->realize = pvpanic_pci_realizefn; +pc->vendor_id = PCI_VENDOR_ID_REDHAT; +pc->device_id = PCI_DEVICE_ID_REDHAT_PVPANIC; Please fill out subsystem and subsystem vendor IDs as well: pc->subsystem_vendor_id

[PATCH v4 1/4] hw/misc/pvpanic: split-out generic and bus dependent code

2021-01-20 Thread Mihai Carabas
ion io -> mr. - pvpanic_ioport_* in pvpanic_*. Update the build system with the new files and config structure. Signed-off-by: Mihai Carabas Reviewed-by: Peter Maydell --- hw/i386/Kconfig | 2 +- hw/misc/Kconfig | 6 ++- hw/misc/meson.build | 3 +- hw/misc/pvpa

[PATCH v4 4/4] tests/qtest: add a test case for pvpanic-pci

2021-01-20 Thread Mihai Carabas
Add a test case for pvpanic-pci device. The scenario is the same as pvpanic ISA device, but is using the PCI bus. Signed-off-by: Mihai Carabas Acked-by: Thomas Huth Reviewed-by: Peter Maydell --- tests/qtest/meson.build| 1 + tests/qtest/pvpanic-pci-test.c | 94

[PATCH v4] Add support for pvpanic pci device

2021-01-20 Thread Mihai Carabas
INTERFACE_PCIE_DEVICE - patch 3: fixed documentation - patch 4: add a qtest for pvpanic-pci v4: - added Rb/Ack on patches - modify test case to include -action parameter that was recently added and also to be on par with the pvpanic ISA device testing Mihai Carabas (4): hw/misc/pvpanic: split-out

[PATCH v4 3/4] pvpanic : update pvpanic spec document

2021-01-20 Thread Mihai Carabas
Add pvpanic PCI device support details in docs/specs/pvpanic.txt. Signed-off-by: Mihai Carabas Reviewed-by: Peter Maydell --- docs/specs/pvpanic.txt | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/docs/specs/pvpanic.txt b/docs/specs/pvpanic.txt index a90fbca

[PATCH v4 2/4] hw/misc/pvpanic: add PCI interface support

2021-01-20 Thread Mihai Carabas
Add PCI interface support for PVPANIC device. Create a new file pvpanic-pci.c where the PCI specific routines reside and update the build system with the new files and config structure. Signed-off-by: Mihai Carabas Reviewed-by: Gerd Hoffmann Reviewed-by: Peter Maydell --- docs/specs/pci

Re: [PATCH 3/4] pvpanic : update pvpanic spec document

2021-01-18 Thread Mihai Carabas
La 18.01.2021 12:32, Philippe Mathieu-Daudé a scris: On 1/15/21 7:34 PM, Mihai Carabas wrote: Add pvpanic PCI device support details in docs/specs/pvpanic.txt. Signed-off-by: Mihai Carabas --- docs/specs/pvpanic.txt | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff

[PATCH 3/4] pvpanic : update pvpanic spec document

2021-01-15 Thread Mihai Carabas
Add pvpanic PCI device support details in docs/specs/pvpanic.txt. Signed-off-by: Mihai Carabas --- docs/specs/pvpanic.txt | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/docs/specs/pvpanic.txt b/docs/specs/pvpanic.txt index a90fbca..974aafd 100644 --- a/docs

[PATCH 1/4] hw/misc/pvpanic: split-out generic and bus dependent code

2021-01-15 Thread Mihai Carabas
ion io -> mr. - pvpanic_ioport_* in pvpanic_*. Update the build system with the new files and config structure. Signed-off-by: Mihai Carabas --- hw/i386/Kconfig | 2 +- hw/misc/Kconfig | 6 ++- hw/misc/meson.build | 3 +- hw/misc/pvpanic-isa.c

[PATCH 2/4] hw/misc/pvpanic: add PCI interface support

2021-01-15 Thread Mihai Carabas
Add PCI interface support for PVPANIC device. Create a new file pvpanic-pci.c where the PCI specific routines reside and update the build system with the new files and config structure. Signed-off-by: Mihai Carabas --- docs/specs/pci-ids.txt| 1 + hw/misc/Kconfig | 6 +++ hw

[PATCH 4/4] tests/qtest: add a test case for pvpanic-pci

2021-01-15 Thread Mihai Carabas
Add a test case for pvpanic-pci device. The scenario is the same as pvpapnic ISA device, but is using the PCI bus. Signed-off-by: Mihai Carabas --- tests/qtest/meson.build| 1 + tests/qtest/pvpanic-pci-test.c | 62 ++ 2 files changed, 63

[PATCH v3] Add support for pvpanic pci device

2021-01-15 Thread Mihai Carabas
, removed INTERFACE_PCIE_DEVICE - patch 3: fixed documentation - patch 4: add a qtest for pvpanic-pci Mihai Carabas (4): hw/misc/pvpanic: split-out generic and bus dependent code hw/misc/pvpanic: add PCI interface support pvpanic : update pvpanic spec document tests/qtest: add a test case

Re: [PATCH 2/3] hw/misc/pvpanic: add PCI interface support

2020-12-22 Thread Mihai Carabas
> On 22 Dec 2020, at 17:30, Gerd Hoffmann wrote: > >  >> >> diff --git a/include/hw/pci/pci.h b/include/hw/pci/pci.h >> index 259f9c9..e9512ab 100644 >> --- a/include/hw/pci/pci.h >> +++ b/include/hw/pci/pci.h >> @@ -108,6 +108,7 @@ extern bool pci_available; >> #define

[PATCH 1/3] hw/misc/pvpanic: split-out generic and bus dependent code

2020-12-18 Thread Mihai Carabas
ion io -> mr. - pvpanic_ioport_* in pvpanic_*. Update the build system with the new files and config structure. Signed-off-by: Mihai Carabas --- hw/i386/Kconfig | 1 - hw/misc/Kconfig | 7 +++- hw/misc/meson.build | 3 +- hw/misc/pvpanic-isa.c

[PATCH v2] Add support for pvpanic pci device

2020-12-18 Thread Mihai Carabas
-system-aarch64 \ -machine virt,gic-version=3 -device pvpanic-pci After that you need to run a Linux kernel as guest, but you have to also apply the patches I have sent for adding pci support for the pvpanic driver [1]. [1] https://lkml.org/lkml/2020/10/29/645 Mihai Carabas (3): hw/misc

[PATCH 2/3] hw/misc/pvpanic: add PCI interface support

2020-12-18 Thread Mihai Carabas
Add PCI interface support for PVPANIC device. Create a new file pvpanic-pci.c where the PCI specific routines reside and update the build system with the new files and config structure. Signed-off-by: Mihai Carabas --- docs/specs/pci-ids.txt| 2 ++ hw/misc/Kconfig | 6 hw

[PATCH 3/3] pvpanic : update pvpanic spec document

2020-12-18 Thread Mihai Carabas
Add pvpanic PCI device support details in docs/specs/pvpanic.txt. Signed-off-by: Mihai Carabas --- docs/specs/pvpanic.txt | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/docs/specs/pvpanic.txt b/docs/specs/pvpanic.txt index a90fbca..5ddc8df 100644 --- a/docs

Re: [PATCH] Add support for pvpanic pci device

2020-12-14 Thread Mihai Carabas
La 14.12.2020 13:03, Peter Maydell a scris: On Wed, 28 Oct 2020 at 14:17, Mihai Carabas wrote: This patchset adds support for pvpanic pci device. The patchset was assembled from chuncks from some old patches [1] from 2018 which were left unmerged and some additions from me. How to test

Re: [PATCH] Add support for pvpanic pci device

2020-11-23 Thread Mihai Carabas
La 29.10.2020 14:30, Mihai Carabas a scris: La 28.10.2020 15:32, Mihai Carabas a scris: This patchset adds support for pvpanic pci device. The patchset was assembled from chuncks from some old patches [1] from 2018 which were left unmerged and some additions from me. How to test this: /usr

Re: [PATCH] Add support for pvpanic pci device

2020-10-29 Thread Mihai Carabas
La 28.10.2020 15:32, Mihai Carabas a scris: This patchset adds support for pvpanic pci device. The patchset was assembled from chuncks from some old patches [1] from 2018 which were left unmerged and some additions from me. How to test this: /usr/bin/qemu-system-aarch64 \ -machine virt

[PATCH 5/6] pvpanic : update pvpanic document

2020-10-28 Thread Mihai Carabas
From: Peng Hao Add mmio mode as a pci device support info in docs/specs/pvpanic.txt. Signed-off-by: Peng Hao Signed-off-by: Mihai Carabas --- docs/specs/pvpanic.txt | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/specs/pvpanic.txt b/docs/specs

[PATCH 4/6] hw/arm/virt: Use the pvpanic pci device

2020-10-28 Thread Mihai Carabas
From: Peng Hao Add pvpanic device in arm virt machine config file. Signed-off-by: Peng Hao Signed-off-by: Mihai Carabas --- default-configs/devices/arm-softmmu.mak | 1 + 1 file changed, 1 insertion(+) diff --git a/default-configs/devices/arm-softmmu.mak b/default-configs/devices/arm

[PATCH 2/6] hw/misc/pvpanic: Cosmetic renaming

2020-10-28 Thread Mihai Carabas
athieu-Daudé Signed-off-by: Peng Hao Signed-off-by: Mihai Carabas --- hw/misc/pvpanic.c | 28 include/hw/misc/pvpanic.h | 2 +- 2 files changed, 17 insertions(+), 13 deletions(-) diff --git a/hw/misc/pvpanic.c b/hw/misc/pvpanic.c index 598d547..2e085f4 100

[PATCH 3/6] hw/misc/pvpanic: Add the PCI interface

2020-10-28 Thread Mihai Carabas
From: Peng Hao Add pvpanic new type "TYPE_PVPANIC_PCI". Signed-off-by: Peng Hao Signed-off-by: Mihai Carabas --- hw/misc/pvpanic.c | 64 --- include/hw/misc/pvpanic.h | 1 + include/hw/pci/pci.h | 1 + 3 files changed, 62

[PATCH 1/6] hw/misc/pvpanic: Build the pvpanic device for any machine

2020-10-28 Thread Mihai Carabas
From: Philippe Mathieu-Daudé The 'pvpanic' ISA device can be use by any machine with an ISA bus. Reviewed-by: Peter Maydell Signed-off-by: Philippe Mathieu-Daudé Signed-off-by: Peng Hao Signed-off-by: Mihai Carabas --- hw/misc/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH] Add support for pvpanic pci device

2020-10-28 Thread Mihai Carabas
that you need to run a Linux kernel as guest, but you have to also apply the patches I will send for adding pci support for the pvpanic driver. [1] http://patchwork.ozlabs.org/project/qemu-devel/cover/1544095560-70807-1-git-send-email-peng.h...@zte.com.cn/ Mihai Carabas (1): pvpanic: break

[PATCH 6/6] pvpanic: break dependency on ISA_BUS adding PCI

2020-10-28 Thread Mihai Carabas
pvpanic is supported on ARM VIRT MACHINE as an PCI device, no need for an ISA bus. Signed-off-by: Mihai Carabas --- hw/misc/Kconfig | 2 +- hw/misc/pvpanic.c | 4 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/hw/misc/Kconfig b/hw/misc/Kconfig index 3185456..b650982 100644

Re: [PATCH 0/8] Add support for pvpanic mmio device

2020-10-26 Thread Mihai Carabas
On 10/22/2020 1:17 PM, Peter Maydell wrote: On Thu, 22 Oct 2020 at 09:25, Mihai Carabas wrote: The patchset was assembled from chuncks from some old patches from 2018 [1] which were left unmerged and some additions from me. Surprisingly their Linux kernel counterpart were merged (so

[PATCH 7/8] pvpanic : update pvpanic document

2020-10-22 Thread Mihai Carabas
From: Peng Hao Add mmio support info in docs/specs/pvpanic.txt. Reviewed-by: Andrew Jones Signed-off-by: Peng Hao Signed-off-by: Mihai Carabas --- docs/specs/pvpanic.txt | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/specs/pvpanic.txt b/docs/specs

[PATCH 5/8] hw/arm/virt: add pvpanic device in virt acpi table

2020-10-22 Thread Mihai Carabas
From: Peng Hao Add pvpanic device in virt acpi table, so when kernel command line uses acpi=force, kernel can get info from acpi table. Reviewed-by: Andrew Jones Signed-off-by: Peng Hao Signed-off-by: Mihai Carabas --- hw/arm/virt-acpi-build.c | 17 + 1 file changed, 17

[PATCH 4/8] hw/arm/virt: Use the pvpanic device

2020-10-22 Thread Mihai Carabas
From: Peng Hao Add pvpanic device in arm virt machine. Signed-off-by: Peng Hao Reviewed-by: Andrew Jones Signed-off-by: Mihai Carabas --- hw/arm/virt.c | 25 + include/hw/arm/virt.h | 2 ++ 2 files changed, 27 insertions(+) diff --git a/hw/arm/virt.c b/hw

[PATCH 6/8] hw/arm/virt: add configure interface for pvpanic-mmio

2020-10-22 Thread Mihai Carabas
From: Peng Hao Add the option to turn on/off the pvpanic-mmio device in virt machine. Signed-off-by: Peng Hao Reviewed-by: Andrew Jones Signed-off-by: Mihai Carabas --- hw/arm/virt.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/hw/arm/virt.c b/hw/arm/virt.c

[PATCH 3/8] hw/misc/pvpanic: Add the MMIO interface

2020-10-22 Thread Mihai Carabas
From: Peng Hao Add new pvpanic type: "TYPE_PVPANIC_MMIO". Reviewed-by: Peter Maydell Signed-off-by: Peng Hao Signed-off-by: Mihai Carabas --- hw/misc/pvpanic.c | 51 +++ include/hw/misc/pvpanic.h | 3 ++- 2 files changed, 49

[PATCH 8/8] pvpanic: break dependency on ISA_BUS

2020-10-22 Thread Mihai Carabas
pvpanic is supported on ARM VIRT MACHINE as an MMIO device, no need for an ISA bus. Signed-off-by: Mihai Carabas --- hw/arm/Kconfig| 1 + hw/misc/Kconfig | 2 +- hw/misc/pvpanic.c | 4 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/hw/arm/Kconfig b/hw/arm/Kconfig index

[PATCH 0/8] Add support for pvpanic mmio device

2020-10-22 Thread Mihai Carabas
...@zte.com.cn/ Mihai Carabas (1): pvpanic: break dependency on ISA_BUS Peng Hao (5): hw/misc/pvpanic: Add the MMIO interface hw/arm/virt: Use the pvpanic device hw/arm/virt: add pvpanic device in virt acpi table hw/arm/virt: add configure interface for pvpanic-mmio pvpanic : update pvpanic

[PATCH 1/8] hw/misc/pvpanic: Build the pvpanic device for any machine

2020-10-22 Thread Mihai Carabas
From: Philippe Mathieu-Daudé The 'pvpanic' ISA device can be use by any machine with an ISA bus. Reviewed-by: Peter Maydell Signed-off-by: Philippe Mathieu-Daudé Signed-off-by: Peng Hao Signed-off-by: Mihai Carabas --- hw/misc/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH 2/8] hw/misc/pvpanic: Cosmetic renaming

2020-10-22 Thread Mihai Carabas
athieu-Daudé Signed-off-by: Peng Hao Signed-off-by: Mihai Carabas --- hw/misc/pvpanic.c | 28 include/hw/misc/pvpanic.h | 2 +- 2 files changed, 17 insertions(+), 13 deletions(-) diff --git a/hw/misc/pvpanic.c b/hw/misc/pvpanic.c index 598d547..2e085f4 100

pvpanic mmio support

2020-10-13 Thread Mihai Carabas
Hello, Does anyone know if there is any progress with pvpanic patches that brings in mmio support [1]? I see no activity since late 2018, but I do see support added to the kernel (also asking myself how this was tested): 46f934c misc/pvpanic: add support to get pvpanic device info FDT