diff options
author | David Gibson | 2016-01-19 05:57:42 +0100 |
---|---|---|
committer | David Gibson | 2016-01-30 13:37:36 +0100 |
commit | c920f7b42fc7834bae73a5fd146f58db18bb3f58 (patch) | |
tree | 3b1e3b1ba30e1f4b5ca6cb75a4400ace3e41713c /qemu-options.h | |
parent | cuda: add missing fields to VMStateDescription (diff) | |
download | qemu-c920f7b42fc7834bae73a5fd146f58db18bb3f58.tar.gz qemu-c920f7b42fc7834bae73a5fd146f58db18bb3f58.tar.xz qemu-c920f7b42fc7834bae73a5fd146f58db18bb3f58.zip |
spapr: Small fixes to rtas_ibm_get_system_parameter, remove rtas_st_buffer
rtas_st_buffer() appears in spapr.h as though it were a widely used helper,
but in fact it is only used for saving data in a format used by
rtas_ibm_get_system_parameter(). This changes it to a local helper more
specifically for that function.
While we're there fix a couple of small defects in
rtas_ibm_get_system_parameter:
- For the string value SPLPAR_CHARACTERISTICS, it wasn't including the
terminating \0 in the length which it should according to LoPAPR
7.3.16.1
- It now checks that the supplied buffer has at least enough space for
the length of the returned data, and returns an error if it does not.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Diffstat (limited to 'qemu-options.h')
0 files changed, 0 insertions, 0 deletions