sysctl: report existing physcaps on Arm
authorRoger Pau Monne <roger.pau@citrix.com>
Fri, 6 Sep 2019 14:30:20 +0000 (16:30 +0200)
committerJulien Grall <julien.grall@arm.com>
Mon, 9 Sep 2019 10:15:49 +0000 (11:15 +0100)
commit82239182eb32e4cab5da9a453b5cc931bfd053a6
treea5f484a2a874d469a2d47cd0b659e20f56064ba0
parent6fa1798b2d7066f53f310f05e86b82c713e3bc42
sysctl: report existing physcaps on Arm

Current physcaps in XEN_SYSCTL_physinfo are only used by x86, albeit
the capabilities themselves are not x86 specific.

This patch adds support for also reporting the current capabilities on
Arm hardware. Note that on Arm PHYSCAP_hvm is always reported, and
setting PHYSCAP_directio has been moved to common code since the same
logic to set it is used by x86 and Arm.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Julien Grall <julien.grall@arm.com>
xen/arch/arm/sysctl.c
xen/arch/x86/sysctl.c
xen/common/sysctl.c
xen/include/public/sysctl.h