Xen: ARM: Zero reserved fields of xatp before making hypervisor call
authorJiandi An <anjiandi@codeaurora.org>
Wed, 28 Dec 2016 00:47:32 +0000 (18:47 -0600)
committerStefano Stabellini <sstabellini@kernel.org>
Tue, 3 Jan 2017 18:06:13 +0000 (10:06 -0800)
commit0b47a6bd1150f4846b1d61925a4cc5a96593a541
treeec91ad5336033603d3cf1aa47a8ee5718530edd7
parentf9751a60f17eb09e1d1bd036daaddc3ea3a8bed6
Xen: ARM: Zero reserved fields of xatp before making hypervisor call

Ensure all reserved fields of xatp are zero before making
hypervisor call to XEN in xen_map_device_mmio().
xenmem_add_to_physmap_one() in XEN fails the mapping request if
extra.res reserved field in xatp is not zero for XENMAPSPACE_dev_mmio
request.

Signed-off-by: Jiandi An <anjiandi@codeaurora.org>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
drivers/xen/arm-device.c