diff mbox series

[18/23] xsm/dummy: Allow hwdom SYSCTL_readconsole/physinfo

Message ID 20250306220343.203047-19-jason.andryuk@amd.com (mailing list archive)
State New
Headers show
Series ARM split hardware and control domains | expand

Commit Message

Jason Andryuk March 6, 2025, 10:03 p.m. UTC
Allow the hwdom to access the console, and to access physical
information about the system.

Signed-off-by: Jason Andryuk <jason.andryuk@amd.com>
---
 xen/include/xsm/dummy.h | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/xen/include/xsm/dummy.h b/xen/include/xsm/dummy.h
index 294777e904..f4656bd179 100644
--- a/xen/include/xsm/dummy.h
+++ b/xen/include/xsm/dummy.h
@@ -193,6 +193,9 @@  static XSM_INLINE int cf_check xsm_sysctl(XSM_DEFAULT_ARG int cmd)
     {
     case XEN_SYSCTL_getdomaininfolist:
         return xsm_default_action(XSM_XS_PRIV, current->domain, NULL);
+    case XEN_SYSCTL_readconsole:
+    case XEN_SYSCTL_physinfo:
+        return xsm_default_action(XSM_HW_PRIV, current->domain, NULL);
     default:
         return xsm_default_action(XSM_PRIV, current->domain, NULL);
     }