xen: Fix XSM build after dropping XEN_DOMCTL_getmemlist
PATCH 1/1 xen: Fix XSM build after dropping XEN_DOMCTL_getmemlist
c/s 94450e36bfbb removed XEN_DOMCTL_getmemlist entirely, but missed adjusting the XSM side of things. As far as I can tell, 'pagelist' wasn't even offered to dom0 in default policy.
Also, drop the stale struct xen_domctl_getmemlist which was missed from the same changeset.
---
CC: Jan Beulich <[email protected]>
CC: Daniel De Graaf <[email protected]>
--- xen/include/public/domctl.h | 14 -------------- xen/xsm/flask/hooks.c | 3 --- xen/xsm/flask/policy/access_vectors | 2 -- 3 files changed, 19 deletions(-)
xen/include/public/domctl.h +0 -14
@@ -122,19 +122,6 @@ typedef struct xen_domctl_getdomaininfo xen_domctl_getdomaininfo_t;DEFINE_XEN_GUEST_HANDLE (xen_domctl_getdomaininfo_t); -/* XEN_DOMCTL_getmemlist */ -struct xen_domctl_getmemlist { -/* IN variables. */ -/* Max entries to write to output buffer. */ -uint64_aligned_t max_pfns; -/* Start index in guest's page list. */ -uint64_aligned_t start_pfn; -XEN_GUEST_HANDLE_64 (uint64) buffer; -/* OUT variables. */ -uint64_aligned_t num_pfns; -}; - -/* XEN_DOMCTL_getpageframeinfo */ #define XEN_DOMCTL_PFINFO_LTAB_SHIFT 28
@@ -1194,7 +1181,6 @@ struct xen_domctl {union {struct xen_domctl_createdomain createdomain;struct xen_domctl_getdomaininfo getdomaininfo; -struct xen_domctl_getmemlist getmemlist;struct xen_domctl_getpageframeinfo3 getpageframeinfo3;struct xen_domctl_nodeaffinity nodeaffinity;struct xen_domctl_vcpuaffinity vcpuaffinity;
xen/xsm/flask/hooks.c +0 -3
@@ -669,9 +669,6 @@ static int flask_domctl(struct domain *d, int cmd)case XEN_DOMCTL_getpageframeinfo3:return current_has_perm (d,SECCLASS_MMU ,MMU__PAGEINFO ); -case XEN_DOMCTL_getmemlist: -return current_has_perm (d,SECCLASS_MMU ,MMU__PAGELIST ); -case XEN_DOMCTL_hypercall_init:return current_has_perm (d,SECCLASS_DOMAIN ,DOMAIN__HYPERCALL );
xen/xsm/flask/policy/access_vectors +0 -2
@@ -357,8 +357,6 @@ class mmu map_write # XEN_DOMCTL_getpageframeinfo3 pageinfo -# XEN_DOMCTL_getmemlist - pagelist # XENMEM_{increase,decrease}_reservation, XENMEM_populate_physmap adjust # XENMEM_{current,maximum}_reservation, XENMEM_maximum_gpfn
Signature · 7 lines
2.1.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 9 lines
Quoted 1 line
Quoted 1 line · On 26.01.18 at 20:34, <[email protected]> wrote:
c/s
94450e36bfbbremovedXEN_DOMCTL_getmemlistentirely, but missed adjusting the XSM side of things. As far as I can tell, 'pagelist' wasn't even offered to dom0 in default policy.Also, drop the stale struct
xen_domctl_getmemlistwhich was missed from the same changeset.Signed-off-by Andrew Cooper <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 8 lines · Andrew Cooper
c/s
94450e36bfbbremovedXEN_DOMCTL_getmemlistentirely, but missed adjusting the XSM side of things. As far as I can tell, 'pagelist' wasn't even offered to dom0 in default policy.Also, drop the stale struct
xen_domctl_getmemlistwhich was missed from the same changeset.Signed-off-by Andrew Cooper <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel