Re: Relocation overflow on RISC-V with multi-range memory layout

2023-11-01 Thread Wu, Fei
On 10/15/2023 5:16 AM, Vladimir 'phcoder' Serbinenko wrote: > I looked into it and found out that current code misses both got and > trampolines. I have a template for solution but I didn't test it yet. > Can you upload your EFI images (RISCV_VIRT_CODE.fd and > RISCV_VIRT_VARS.fd) somewhere so I do

Re: Relocation overflow on RISC-V with multi-range memory layout

2023-10-14 Thread Vladimir 'phcoder' Serbinenko
I looked into it and found out that current code misses both got and trampolines. I have a template for solution but I didn't test it yet. Can you upload your EFI images (RISCV_VIRT_CODE.fd and RISCV_VIRT_VARS.fd) somewhere so I don't have to compile myself? https://github.com/phcoder/GRUB/tree/ris

Re: Relocation overflow on RISC-V with multi-range memory layout

2023-10-11 Thread Wu, Fei
On 10/11/2023 9:50 PM, Vladimir 'phcoder' Serbinenko wrote: > > > Le mer. 11 oct. 2023, 12:20, Wu, Fei > a écrit : > > On 10/9/2023 11:14 AM, Wu, Fei wrote: > > On 9/27/2023 11:23 PM, Vladimir 'phcoder' Serbinenko wrote: > >> That is not the correct solutio

Re: Relocation overflow on RISC-V with multi-range memory layout

2023-10-11 Thread Vladimir 'phcoder' Serbinenko
Le mer. 11 oct. 2023, 12:20, Wu, Fei a écrit : > On 10/9/2023 11:14 AM, Wu, Fei wrote: > > On 9/27/2023 11:23 PM, Vladimir 'phcoder' Serbinenko wrote: > >> That is not the correct solution. Correct solution is to use trampoline > >> facility like e.g. ppc does. Can you post the full reproduction

Re: Relocation overflow on RISC-V with multi-range memory layout

2023-10-11 Thread Wu, Fei
On 10/9/2023 11:14 AM, Wu, Fei wrote: > On 9/27/2023 11:23 PM, Vladimir 'phcoder' Serbinenko wrote: >> That is not the correct solution. Correct solution is to use trampoline >> facility like e.g. ppc does. Can you post the full reproduction >> instructions? >> Hi Vladimir, Could you please explai

Re: Relocation overflow on RISC-V with multi-range memory layout

2023-10-08 Thread Wu, Fei
On 9/27/2023 11:23 PM, Vladimir 'phcoder' Serbinenko wrote: > That is not the correct solution. Correct solution is to use trampoline > facility like e.g. ppc does. Can you post the full reproduction > instructions? > 1. prepare the host for pcie passthrough, e.g. on ubuntu, put something like the

Re: Relocation overflow on RISC-V with multi-range memory layout

2023-09-27 Thread Vladimir 'phcoder' Serbinenko
That is not the correct solution. Correct solution is to use trampoline facility like e.g. ppc does. Can you post the full reproduction instructions? Le lun. 25 sept. 2023, 10:53, Wu, Fei a écrit : > Hi All, > > I'm enabling PCIe passthrough on qemu riscv, the physical memory > range between 3GB

Re: Relocation overflow on RISC-V with multi-range memory layout

2023-09-27 Thread Daniel Kiper
Adding Atish... On Wed, Sep 27, 2023 at 02:16:40PM +0800, Wu, Fei wrote: > On 9/25/2023 4:51 PM, Wu, Fei wrote: > > Hi All, > > > > I'm enabling PCIe passthrough on qemu riscv, the physical memory > > range between 3GB and 4GB is reserved. Therefore if guest has 4GB ram, > > two ranges are created

Re: Relocation overflow on RISC-V with multi-range memory layout

2023-09-26 Thread Wu, Fei
On 9/25/2023 4:51 PM, Wu, Fei wrote: > Hi All, > > I'm enabling PCIe passthrough on qemu riscv, the physical memory > range between 3GB and 4GB is reserved. Therefore if guest has 4GB ram, > two ranges are created as [2G, 3G) and [4G, 7G). More details can be > found here: > https://lore.kernel.or