|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [RFC PATCH v6 11/43] arm/altp2m: Add support for HVMOP_altp2m_get_domain_state
From: Rose Spangler <Rose.Spangler@xxxxxxxxxxxxxx>
This commit adds support for the altp2m_get_domain_state HVMOP on ARM. All
code used in the command implementation already works on ARM, so no further
changes beyond moving the #ifdef are necessary.
This is commit 1/1 of the get_domain_state phase.
Signed-off-by: Rose Spangler <Rose.Spangler@xxxxxxxxxxxxxx>
---
v6: Introduced this patch.
This commit can be squashed into the previous commit for the actual
submission if that would be preferred, but I thought it might be easier
to understand the command #ifdef gate approach by splitting this into a
separate 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 6481fae1ed12..3a3283f0860a 100644
--- a/xen/common/altp2m.c
+++ b/xen/common/altp2m.c
@@ -124,12 +124,12 @@ int do_altp2m_op(
switch ( a.cmd )
{
-#ifdef CONFIG_X86
case HVMOP_altp2m_get_domain_state:
a.u.domain_state.state = altp2m_active(d);
rc = __copy_to_guest(arg, &a, 1) ? -EFAULT : 0;
break;
+#ifdef CONFIG_X86
case HVMOP_altp2m_set_domain_state:
{
struct vcpu *v;
--
2.34.1
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |