]> xenbits.xensource.com Git - people/sstabellini/xen-unstable.git/.git/commit
xen: decouple HVM and IOMMU capabilities
authorWei Liu <wei.liu2@citrix.com>
Fri, 24 Aug 2018 20:01:40 +0000 (21:01 +0100)
committerWei Liu <wei.liu2@citrix.com>
Thu, 13 Sep 2018 16:03:32 +0000 (17:03 +0100)
commit0e2c886efa9bf9a18a3a413eaa5ead7a1d95eb93
tree3d7be063fc3dcc52a5ad5506add1ca87c689ca16
parentefaf9122b8d66cef9c67a9ca85e1ca9f7622e478
xen: decouple HVM and IOMMU capabilities

HVM and IOMMU are two distinct hardware features, yet they were
bundled together in sysctl and xl's output.

Decouple them on sysctl level. On toolstack level we still need to
maintain a sensible semantics for `xl info`. Massage the information
according to the following table:

pv      hvm     iommu           flags in xl info
0       0       0               n/a
0       0       1               n/a
0       1       0               hvm
0       1       1               hvm hvm_directio
1       0       0               NIL
1       0       1               directio
1       1       0               hvm
1       1       1               hvm hvm_directio directio

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl.c
tools/libxl/libxl.h
tools/libxl/libxl_types.idl
tools/xl/xl_info.c
xen/arch/x86/sysctl.c
xen/include/public/sysctl.h