[PATCH] xen/riscv: copy_to_guest/copy_from_guest functionality.

2025-02-28 Thread Milan Djokic
From: Slavisa Petrovic This patch implements copy_to_guest/copy_from_guest functions for RISC-V. These functions are designed to facilitate data exchange between guest and hypervisor. Signed-off-by: Milan Djokic Signed-off-by: Slavisa Petrovic --- Tested on qemu with xcp-ng latest branch

[PATCH] riscv: Add initial Xen guest support for RISC-V

2025-01-14 Thread Milan Djokic
switching in the Xen environment, allowing further development and integration. Signed-off-by: Milan Djokic Signed-off-by: Slavisa Petrovic --- arch/riscv/Kbuild| 1 + arch/riscv/Kconfig | 19 +++ arch/riscv/include/asm/cpu.h | 1

[PATCH v3] x86/efi: Use generic PE/COFF structures

2024-09-23 Thread Milan Djokic
From: Nikola Jelic Adapted x86 efi parser and mkreloc utility to use generic PE header (efi/pe.h), instead of locally defined structures for each component. Signed-off-by: Nikola Jelic Signed-off-by: Milan Djokic --- Changes in V3: - Add xen/include among include dirs for mkreloc, instead

[PATCH v2] x86/efi: Use generic PE/COFF structures

2024-08-27 Thread Milan Djokic
From: Nikola Jelic Adapted x86 efi parser and mkreloc utility to use generic PE header (efi/pe.h), instead of locally defined structures for each component. Signed-off-by: Nikola Jelic Signed-off-by: Milan Djokic --- Changes in V2: - Using pe header constants instead of hardcoded values

[PATCH v2] xen: PE/COFF image header

2024-07-23 Thread Milan Djokic
structure member comments. Also, COFF relocation and win cert structures are ommited, since these are not relevant for Xen. Origin: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 36e4fc57fc16 Signed-off-by: Nikola Jelic Signed-off-by: Milan Djokic --- This header is split into a

[PATCH] xen: PE/COFF image header

2024-07-19 Thread Milan Djokic
structure member comments. Origin: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 36e4fc57fc16 Signed-off-by: Nikola Jelic Signed-off-by: Milan Djokic --- This header is split into a separate commit following discussion from https://lists.xenproject.org/archives/html/xen-devel/2024

[PATCH v4] xen/riscv: PE/COFF image header for RISC-V target

2024-07-02 Thread Milan Djokic
/runtime services and system table handling are yet to be implemented. Tested on both QEMU and StarFive VisionFive 2 with OpenSBI->U-Boot->xen->dom0 boot chain. Signed-off-by: Nikola Jelic Signed-off-by: Milan Djokic --- Changes since v3: * pe.h structures clarification --- Changes

[no subject]

2024-07-02 Thread Milan Djokic
c Signed-off-by: Milan Djokic --- Changes since v2: * Restructured EFI image headers - generic PE/COFF headers moved to xen/include/efi/pe.h, riscv image header left in arch specific dir (riscv/include/asm/riscv-image-header.h) * EFI PE/COFF header section moved to separate file (efi-head