[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 2/6] ppc/pegasos2: Warn when using VOF but no kernel is speci
From: |
David Gibson |
Subject: |
Re: [PATCH 2/6] ppc/pegasos2: Warn when using VOF but no kernel is specified |
Date: |
Fri, 15 Oct 2021 14:15:59 +1100 |
On Thu, Oct 14, 2021 at 09:50:19PM +0200, BALATON Zoltan wrote:
> Issue a warning when using VOF (which is the default) but no -kernel
> option given to let users know that it will likely fail as the guest
> has nothing to run. It is not a hard error because it may still be
> useful to start the machine without further options for testing or
> inspecting it from monitor without actually booting it.
>
> Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Applied, thanks.
> ---
> hw/ppc/pegasos2.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/hw/ppc/pegasos2.c b/hw/ppc/pegasos2.c
> index 474cfdeabf..a1dd1f6752 100644
> --- a/hw/ppc/pegasos2.c
> +++ b/hw/ppc/pegasos2.c
> @@ -194,7 +194,10 @@ static void pegasos2_init(MachineState *machine)
> if (!pm->vof) {
> warn_report("Option -kernel may be ineffective with -bios.");
> }
> + } else if (pm->vof) {
> + warn_report("Using Virtual OpenFirmware but no -kernel option.");
> }
> +
> if (!pm->vof && machine->kernel_cmdline && machine->kernel_cmdline[0]) {
> warn_report("Option -append may be ineffective with -bios.");
> }
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
signature.asc
Description: PGP signature
- [PATCH 0/6] Misc pegasos2 patches, BALATON Zoltan, 2021/10/14
- [PATCH 1/6] ppc/pegasos2: Restrict memory to 2 gigabytes, BALATON Zoltan, 2021/10/14
- [PATCH 5/6] ppc/pegasos2: Add constants for PCI config addresses, BALATON Zoltan, 2021/10/14
- [PATCH 2/6] ppc/pegasos2: Warn when using VOF but no kernel is specified, BALATON Zoltan, 2021/10/14
- Re: [PATCH 2/6] ppc/pegasos2: Warn when using VOF but no kernel is specified,
David Gibson <=
- [PATCH 4/6] ppc/pegasos2: Access MV64361 registers via their memory region, BALATON Zoltan, 2021/10/14
- [PATCH 3/6] ppc/pegasos2: Implement get-time-of-day RTAS function with VOF, BALATON Zoltan, 2021/10/14
- [PATCH 6/6] ppc/pegasos2: Implement power-off RTAS function with VOF, BALATON Zoltan, 2021/10/14
- Re: [PATCH 0/6] Misc pegasos2 patches, David Gibson, 2021/10/15