This commit adds support for the HVMOP_altp2m_set_visibility command on
ARM. With altp2m_set_view_visibility being implemented, no further changes
beyond updating the #ifdef CONFIG_X86 gates are necessary.
This is commit 5/5 of the altp2m view validity/visibility phase.
Signed-off-by: Rose Spangler <Rose.Spangler@elektrobit.com>
---
v6: Introduced this patch.
---
xen/common/altp2m.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/xen/common/altp2m.c b/xen/common/altp2m.c
index 7b80426c7798..c234bb3774f4 100644
--- a/xen/common/altp2m.c
+++ b/xen/common/altp2m.c
@@ -477,6 +477,7 @@ int do_altp2m_op(
rc = __copy_to_guest(arg, &a, 1) ? -EFAULT : 0;
break;
}
+#endif /* CONFIG_X86 */
case HVMOP_altp2m_set_visibility:
{
@@ -490,7 +491,6 @@ int do_altp2m_op(
rc = altp2m_set_view_visibility(d, idx, a.u.set_visibility.visible);
break;
}
-#endif /* CONFIG_X86 */
default:
#ifdef CONFIG_X86
--
2.34.1