Xen: ARM: Zero reserved fields of xatp before making hypervisor call
commit704a6d719d4c4228c7f0b1fbaf6bc35fe2ccf1d8
authorJiandi An <anjiandi@codeaurora.org>
Wed, 28 Dec 2016 00:47:32 +0000 (27 18:47 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Aug 2017 01:59:47 +0000 (6 18:59 -0700)
treee495778f9462a0ecb64dd07dc0ad5e4bf7c4f2f6
parentf76ddff6c5215131483efed20acc896e021abb9f
Xen: ARM: Zero reserved fields of xatp before making hypervisor call

[ Upstream commit 0b47a6bd1150f4846b1d61925a4cc5a96593a541 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/xen/arm-device.c