[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v5 3/3] docs: Add a generic loader explanation d
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH v5 3/3] docs: Add a generic loader explanation document |
Date: |
Thu, 12 May 2016 10:24:44 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
On 05/12/2016 10:13 AM, Alistair Francis wrote:
> Signed-off-by: Alistair Francis <address@hidden>
> ---
> V4:
> - Re-write to be more comprehensive
>
> docs/generic-loader.txt | 56
> +++++++++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 56 insertions(+)
> create mode 100644 docs/generic-loader.txt
> +Loading Memory Values
> +---------------------------
Worth matching ---- line length to the line above?
> +
> +NOTE: The loader device supports other options (see the next section) but
> they
> + do not apply to setting memory values and will be ignored.
Ignoring invalid option combinations is not as friendly as outright
rejecting them.
> +
> +Loading Files
> +---------------------------
And again
> +The loader device also allows files to be loaded into memory. This can be
> done
> +similarly to setting memory values. The syntax is shown below:
> +
> + -device loader,file=<file>,addr=<addr>,cpu-num=<cpu-num>,force-raw=<raw>
> +
> + <file> - A file to be loaded into memory
> + <addr> - The addr in memory that the file should be loaded. This is
> + ignored if you are using an ELF (unless force-raw is true).
> + This is requried if you aren't loading an ELF.
s/requried/required/
> + <cpu-num> - This specifices the CPU that should be used. This is an
s/specifices/specifies/
> + optional argument and will cause the CPU's PC to be set to
> + where the image is stored. This option should only be used
> + for the boot image.
> + <force-raw> - Forces the file to be treated as a raw image. This can be
> + used to specificy the load address of ELF files.
s/specificy/specify/
> +
> +An example of loading an ELF file which CPU0 will boot is shown below:
> + -device loader,file=./images/boot.elf,cpu-num=0
>
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature