Hi,

From: Mike Larkin <mlar...@nested.page>
Subject: Re: amd64: update PTDpaddr with new PA of PML4 for libkvm
Date: Wed, 13 Feb 2019 01:01:28 -0800

> On Wed, Feb 13, 2019 at 05:40:45PM +0900, Naoki Fukaumi wrote:
>> Hi Mike Larkin,
>> 
>> since pmap_kernel is randomized, savecore(libkvm) cannot save core
>> dump from dump device. (savecore: magic number mismatch)
>> 
>> updating PTDpaddr fixes this issue.
>> 
>> by the way, is there any problem to use proc0.p_addr->u_pcb.pcb_cr3
>> instead of PTDpaddr in cpu_dump()?
>> 
> 
> Thanks for noticing this!
> 
> Does using the proc0.p_addr->u_pcb.pcb_cr3 expansion also work?

I'll try it.

> If so, we may be able to remove PTPpaddr entirely, if we remove the
> other usage in cpu_dump also.
> 
> -ml

--
FUKAUMI Naoki

Reply via email to