Re: [PATCH 3/3] arm64: read VA_BITS from kcore for 52-bits VA kernel

2021-12-16 Thread Simon Horman
On Thu, Dec 16, 2021 at 09:59:42AM +0800, Pingfan Liu wrote: > On Wed, Dec 15, 2021 at 9:06 PM signed-off...@vergenet.net:Simon > Horman wrote: > > > > On Fri, Dec 10, 2021 at 11:07:35AM +0800, Pingfan Liu wrote: > > > phys_to_virt() calculates virtual address. As a important factor, > > > page_of

Re: [PATCH 3/3] arm64: read VA_BITS from kcore for 52-bits VA kernel

2021-12-15 Thread Pingfan Liu
On Thu, Dec 16, 2021 at 10:46 AM Pingfan Liu wrote: > > On Wed, Dec 15, 2021 at 9:35 PM Philipp Rudo wrote: > > > > Hi Pingfang, > > > > On Fri, 10 Dec 2021 11:07:35 +0800 > > Pingfan Liu wrote: > > > > > phys_to_virt() calculates virtual address. As a important factor, > > > page_offset is exce

Re: [PATCH 3/3] arm64: read VA_BITS from kcore for 52-bits VA kernel

2021-12-15 Thread Pingfan Liu
On Wed, Dec 15, 2021 at 9:35 PM Philipp Rudo wrote: > > Hi Pingfang, > > On Fri, 10 Dec 2021 11:07:35 +0800 > Pingfan Liu wrote: > > > phys_to_virt() calculates virtual address. As a important factor, > > page_offset is excepted to be accurate. > > > > Since arm64 kernel exposes va_bits through v

Re: [PATCH 3/3] arm64: read VA_BITS from kcore for 52-bits VA kernel

2021-12-15 Thread Pingfan Liu
On Wed, Dec 15, 2021 at 9:06 PM signed-off...@vergenet.net:Simon Horman wrote: > > On Fri, Dec 10, 2021 at 11:07:35AM +0800, Pingfan Liu wrote: > > phys_to_virt() calculates virtual address. As a important factor, > > page_offset is excepted to be accurate. > > > > Since arm64 kernel exposes va_bi

Re: [PATCH 3/3] arm64: read VA_BITS from kcore for 52-bits VA kernel

2021-12-15 Thread Philipp Rudo
Hi Pingfang, On Fri, 10 Dec 2021 11:07:35 +0800 Pingfan Liu wrote: > phys_to_virt() calculates virtual address. As a important factor, > page_offset is excepted to be accurate. > > Since arm64 kernel exposes va_bits through vmcore, using it. > > Signed-off-by: Pingfan Liu > --- > kexec/arch/

[PATCH 3/3] arm64: read VA_BITS from kcore for 52-bits VA kernel

2021-12-09 Thread Pingfan Liu
phys_to_virt() calculates virtual address. As a important factor, page_offset is excepted to be accurate. Since arm64 kernel exposes va_bits through vmcore, using it. Signed-off-by: Pingfan Liu --- kexec/arch/arm64/kexec-arm64.c | 31 +++ kexec/arch/arm64/kexec-arm64