Port-xen archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: rndseed= does not seem to work with Xen



On Wed, Mar 03, 2021 at 01:01:32PM -0500, Greg Troxel wrote:
> 
> I modified my boot.cfg line to
> 
> menu=Xen:load /netbsd-XEN3_DOM0.gz rndseed=/var/db/entropy-file console=pc;multiboot /xen.gz dom0_mem=4096M
> 
> but that did not change my boot-time dmesg.
> 
> The diff from GENERIC is basically:
> 
> -entropy: entering seed from bootloader with 256 bits of entropy
> -entropy: ready
> +entropy: WARNING: extracting entropy too early
> +entropy: ready
> 
> so I am guessing the rndseed scheme has the bootloader read the file and
> pass it in vs the kernel reading the file early.   I'll put a note in
> the HOWTO that there ought to be a way to do this but it doesn't work,
> unless someone can explain why that's wrong.

The question is: who is supposed to read the rndseed file on boot ?
The bootloader or the kernel ?
if it's the kernel this should be easy to fix; for Xen the command line
is parsed in sys/arch/xen/xen/xen_machdep.c

I couldn't find in amd64/ or x86/ where rndseed= could be parsed.

-- 
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
     NetBSD: 26 ans d'experience feront toujours la difference
--


Home | Main Index | Thread Index | Old Index