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

2023-09-25 Thread Wu, Fei
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.org/all/cakmqykmtazt5sacumd4vxyfgaqibpzqjahttsusb+yek

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 &

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

2023-10-08 Thread Wu, Fei
ce,drive=hd0 \ -drive file=fat:rw:/home/wufei/src/fat,id=hd0 4. build and put grub.efi to the directory 'fat' 5. on uefi shell, run grub.efi Thanks, Fei. > Le lun. 25 sept. 2023, 10:53, Wu, Fei <mailto:fei2...@intel.com>> a écrit : > > Hi All, > > I

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? &g

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 <mailto:fei2...@intel.com>> a écrit : > > On 10/9/2023 11:14 AM, Wu, Fei wrote: > > On 9/27/2023 11:23 PM, Vladimir 'phcoder'

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

2023-11-01 Thread Wu, Fei
010 gp = 0x0tp = 0x080036000 sepc = 0x0BDCD1D9A sstatus = 0x080026120 stval = 0x0AFAFAFAFAFAFAFAF Thanks, Fei. > On Thu, Oct 12, 2023 at 2:30 AM Wu, Fei wrote: >> >> On 10/11/2023 9:50 PM, Vladimir 'phcoder' Serbinenko wro