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

Re: [Xen-devel] [PATCH v4 04/34] HYPERCALL_version_op. New hypercall mirroring XENVER_ but sane.

On 03/15/2016 01:56 PM, Konrad Rzeszutek Wilk wrote:
This hypercall mirrors the XENVER_ in that it has similar functionality.
However it is designed differently:
  - No compat layer. The data structures are the same size on 32
    as on 64-bit.
  - The hypercall accepts three arguments - the command, pointer to
    an buffer, and the length of the buffer.
  - Each sub-ops can be "probed" for size by returning the size of
    buffer that will be needed - if the buffer is NULL.
  - Subops can complete even if the buffer is too slow - truncated
    data will be filled and hypercall will return -ENOBUFS.
  - VERSION_OP_commandline, VERSION_OP_changeset are privileged.
  - There are no XENVER_compile_info equivalent.
  - The hypercall can return -EPERM and toolstack/OSes are expected
    to deal with it.

Suggested-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>

Acked-by: Daniel De Graaf <dgdegra@xxxxxxxxxxxxx>

Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.