Re: [PATCH v2 3/3] hw/riscv/virt: Add ACPI GED and PC-DIMM MHP support

2024-05-27 Thread Björn Töpel
Daniel Henrique Barboza writes: > On 5/21/24 07:56, Björn Töpel wrote: >> From: Björn Töpel >> >> Add ACPI GED for the RISC-V "virt" machine, and wire up PC-DIMM memory >> hotplugging support. Heavily based/copied from hw/arm/virt.c. >> >>

Re: [PATCH v2 1/3] hw/riscv/virt: Add memory hotplugging and virtio-md-pci support

2024-05-27 Thread Björn Töpel
David Hildenbrand writes: > On 24.05.24 15:14, Daniel Henrique Barboza wrote: >> >> >> On 5/21/24 07:56, Björn Töpel wrote: >>> From: Björn Töpel >>> >>> Virtio-based memory devices (virtio-mem/virtio-pmem) allows for >>> dynami

Re: [PATCH v2 1/3] hw/riscv/virt: Add memory hotplugging and virtio-md-pci support

2024-05-27 Thread Björn Töpel
Daniel Henrique Barboza writes: > On 5/21/24 07:56, Björn Töpel wrote: >> From: Björn Töpel >> >> Virtio-based memory devices (virtio-mem/virtio-pmem) allows for >> dynamic resizing of virtual machine memory, and requires proper >> hotplugging (add/remove) s

[PATCH v2 3/3] hw/riscv/virt: Add ACPI GED and PC-DIMM MHP support

2024-05-21 Thread Björn Töpel
From: Björn Töpel Add ACPI GED for the RISC-V "virt" machine, and wire up PC-DIMM memory hotplugging support. Heavily based/copied from hw/arm/virt.c. Signed-off-by: Björn Töpel --- hw/riscv/Kconfig | 3 ++ hw/riscv/virt-acpi-build.c | 16 ++ hw/riscv/virt.c

[PATCH v2 2/3] hw/riscv/virt-acpi-build: Expose device memory in ACPI SRAT

2024-05-21 Thread Björn Töpel
From: Björn Töpel Now that device memory is supported by RISC-V 'virt', expose that region in the ACPI SRAT (System/Static Resource Affinity Table). ACPI SRAT is used by, e.g., the virtio-mem Linux kernel driver [1]. Link: https://virtio-mem.gitlab.io/user-guide/user-guide-linux

[PATCH v2 1/3] hw/riscv/virt: Add memory hotplugging and virtio-md-pci support

2024-05-21 Thread Björn Töpel
From: Björn Töpel Virtio-based memory devices (virtio-mem/virtio-pmem) allows for dynamic resizing of virtual machine memory, and requires proper hotplugging (add/remove) support to work. Add device memory support for RISC-V "virt" machine, and enable virtio-md-pci with the cor

[PATCH v2 0/3] RISC-V virt MHP support

2024-05-21 Thread Björn Töpel
From: Björn Töpel The RISC-V "virt" machine is currently missing memory hotplugging support (MHP). This series adds the missing virtio-md, and PC-DIMM support. I've include both the ACPI MHP/GED/PC-DIMM, and virtio-md in the same series. The two patches (virtio-md) ar

Re: [PATCH] hw/riscv/virt: Add hotplugging and virtio-md-pci support

2024-05-20 Thread Björn Töpel
Daniel Henrique Barboza writes: > On 5/20/24 15:51, Björn Töpel wrote: >> Daniel/David, >> >> Daniel Henrique Barboza writes: >> >>> On 5/18/24 16:50, David Hildenbrand wrote: >>>> >>>> Hi, >>>> >>>> >>&

Re: [PATCH] hw/riscv/virt: Add hotplugging and virtio-md-pci support

2024-05-20 Thread Björn Töpel
Daniel/David, Daniel Henrique Barboza writes: > On 5/18/24 16:50, David Hildenbrand wrote: >> >> Hi, >> >> diff --git a/hw/riscv/virt.c b/hw/riscv/virt.c index 4fdb66052587..16c2bdbfe6b6 100644 --- a/hw/riscv/virt.c +++ b/hw/riscv/virt.c @@ -53,6 +53,8 @@    #inc

Re: [PATCH] hw/riscv/virt: Add hotplugging and virtio-md-pci support

2024-05-20 Thread Björn Töpel
Daniel, Thanks for taking a look! Daniel Henrique Barboza writes: > Hi Björj, > > On 5/14/24 08:06, Björn Töpel wrote: >> From: Björn Töpel >> >> Virtio-based memory devices allows for dynamic resizing of virtual >> machine memory, and requires proper hotpl

[PATCH] hw/riscv/virt: Add hotplugging and virtio-md-pci support

2024-05-14 Thread Björn Töpel
From: Björn Töpel Virtio-based memory devices allows for dynamic resizing of virtual machine memory, and requires proper hotplugging (add/remove) support to work. Enable virtio-md-pci with the corresponding missing hotplugging callbacks for the RISC-V "virt" machine. Signed-off-by: B

Re: qemu riscv, thead c906, Linux boot regression

2024-01-25 Thread Björn Töpel
Daniel Henrique Barboza writes: > On 1/24/24 16:26, Björn Töpel wrote: >> Daniel Henrique Barboza writes: >> >>> On 1/24/24 09:49, Björn Töpel wrote: >>>> Hi! >>>> >>>> I bumped the RISC-V Linux kernel CI to use qemu 8.2.0, and

Re: qemu riscv, thead c906, Linux boot regression

2024-01-24 Thread Björn Töpel
Daniel Henrique Barboza writes: > On 1/24/24 09:49, Björn Töpel wrote: >> Hi! >> >> I bumped the RISC-V Linux kernel CI to use qemu 8.2.0, and realized that >> thead c906 didn't boot anymore. Bisection points to commit d6a427e2c0b2 >> ("t

Re: qemu riscv, thead c906, Linux boot regression

2024-01-24 Thread Björn Töpel
Conor Dooley writes: > On Wed, Jan 24, 2024 at 01:49:51PM +0100, Björn Töpel wrote: >> Hi! >> >> I bumped the RISC-V Linux kernel CI to use qemu 8.2.0, and realized that >> thead c906 didn't boot anymore. Bisection points to commit d6a427e2c0b2 >> ("t

qemu riscv, thead c906, Linux boot regression

2024-01-24 Thread Björn Töpel
Hi! I bumped the RISC-V Linux kernel CI to use qemu 8.2.0, and realized that thead c906 didn't boot anymore. Bisection points to commit d6a427e2c0b2 ("target/riscv/cpu.c: restrict 'marchid' value") Reverting that commit, or the hack below solves the boot issue: --8<-- diff --git a/target/riscv/c

[PATCH v2] riscv, qemu_fw_cfg: Add support for RISC-V architecture

2023-10-12 Thread Björn Töpel
From: Björn Töpel Qemu fw_cfg support was missing for RISC-V, which made it hard to do proper vmcore dumps from qemu. Add the missing RISC-V arch-defines. You can now do vmcore dumps from qemu. Add "-device vmcoreinfo" to the qemu command-line. From the qemu monitor: (qemu) dump-gu

[PATCH] riscv, qemu_fw_cfg: Add support for RISC-V architecture

2023-10-11 Thread Björn Töpel
From: Björn Töpel Qemu fw_cfg support was missing for RISC-V, which made it hard to do proper vmcore dumps from qemu. Add the missing RISC-V arch-defines. You can now do vmcore dumps from qemu. Add "-device vmcoreinfo" to the qemu command-line. From the qemu montior: (qemu) dump-gu

[PATCH] optionrom: Turn off -fcf-protection

2022-01-03 Thread Björn Töpel
Ubuntu GCC enables -fcf-protection globally, which is not supported for x86 16-bit (realmode). This causes the build to fail. This commit turns off that option. Signed-off-by: Björn Töpel --- pc-bios/optionrom/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/pc-bios/optionrom