xen: Report grant table v1/v2 capabilities to the toolstack
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 29 Oct 2021 17:38:13 +0000 (18:38 +0100)
committerIan Jackson <iwj@xenproject.org>
Mon, 8 Nov 2021 15:09:16 +0000 (15:09 +0000)
commitb36c23eada769f647e5352d5691f793be06afd62
tree195b33eda004eb780d40d20924f91f5257efec22
parent9bc9fff04ba077c4a9782f12578362d8947c534b
xen: Report grant table v1/v2 capabilities to the toolstack

In order to let the toolstack be able to set the gnttab version on a
per-domain basis, it needs to know which ABIs Xen supports.  Introduce
XEN_SYSCTL_PHYSCAP_gnttab_v{1,2} for the purpose, and plumb in down into
userspace.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Christian Lindig <christian.lindig@citrix.com>
Reviewed-by: Ian Jackson <iwj@xenproject.org>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Releae-Acked-by: Ian Jackson <iwj@xenproject.org>
12 files changed:
tools/golang/xenlight/helpers.gen.go
tools/golang/xenlight/types.gen.go
tools/include/libxl.h
tools/libs/light/libxl.c
tools/libs/light/libxl_types.idl
tools/ocaml/libs/xc/xenctrl.ml
tools/ocaml/libs/xc/xenctrl.mli
tools/xl/xl_info.c
xen/common/grant_table.c
xen/common/sysctl.c
xen/include/public/sysctl.h
xen/include/xen/grant_table.h