[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 4/4] hw/i386: pass RNG seed via setup_data entry
From: |
Jason A. Donenfeld |
Subject: |
Re: [PATCH 4/4] hw/i386: pass RNG seed via setup_data entry |
Date: |
Thu, 21 Jul 2022 15:02:49 +0200 |
On Thu, Jul 21, 2022 at 2:29 PM Paolo Bonzini <pbonzini@redhat.com> wrote:
> +static void x86_machine_get_linuxboot_seed(Object *obj, Visitor *v, const
> char *name,
> + void *opaque, Error **errp)
> +{
> + X86MachineState *x86ms = X86_MACHINE(obj);
> + OnOffAuto linuxboot_seed = x86ms->linuxboot_seed;
> +
> + visit_type_OnOffAuto(v, name, &linuxboot_seed, errp);
> +}
> +
> +static void x86_machine_set_linuxboot_seed(Object *obj, Visitor *v, const
> char *name,
> + void *opaque, Error **errp)
> +{
> + X86MachineState *x86ms = X86_MACHINE(obj);
> +
> + visit_type_OnOffAuto(v, name, &x86ms->linuxboot_seed, errp);
> +}
> +
Gross, no! There is no reason at all to make this into a user tunable.
Please don't do that. The whole point is that this is a simple
transparent mechanism.
There's also no need to usurp my patchset. I sent a v7 incorporating
your feedback. So this isn't really appreciated either. I actually
asked you not to usurp this over IRC, but you did anyway. If your goal
is "alienate this contributor so he doesn't like working on QEMU,"
then you're succeeding.
Here's v7:
20220721125636.446842-1-Jason@zx2c4.com/">https://lore.kernel.org/qemu-devel/20220721125636.446842-1-Jason@zx2c4.com/
This will handle your ridiculous theoretical migratory concerns with
minimal invasiveness and without having to introduce userfacing
tunables.
Let's keep discussion on that v7 thread, please.
Thanks,
Jason
- [PATCH 0/4] Refactor x86_load_linux and pass RNG seed via setup_data entry, Paolo Bonzini, 2022/07/21
- [PATCH 1/4] hw/i386: extract PVH load to a separate function, Paolo Bonzini, 2022/07/21
- [PATCH 2/4] hw/i386: define a struct for Linux boot protocol data, Paolo Bonzini, 2022/07/21
- [PATCH 3/4] hw/i386: extract handling of setup data linked list, Paolo Bonzini, 2022/07/21
- [PATCH 4/4] hw/i386: pass RNG seed via setup_data entry, Paolo Bonzini, 2022/07/21
- Re: [PATCH 0/4] Refactor x86_load_linux and pass RNG seed via setup_data entry, Michael S. Tsirkin, 2022/07/21