flask: fix build after the introduction of DMOP
PATCH 1/1 flask: fix build after the introduction of DMOP
In 58cbc034 send_irq permission was removed but there was still reference to it in policy file. Remove the stale reference.
And now we also need dm permission. Add that.
---
Cc: Daniel De Graaf <[email protected]>
Cc: Paul Durrant <[email protected]>
Cc: Ian Jackson <[email protected]>
Staging is currently broken.
--- tools/flask/policy/modules/xen.if | 2 +- xen/xsm/flask/policy/access_vectors | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-)
tools/flask/policy/modules/xen.if +1 -1
@@ -58,7 +58,7 @@ define(`create_domain_common', ` allow $1 $2:mmu { map_read map_write adjust memorymap physmap pinpage mmuext_op updatemp }; allow $1 $2:grant setup; allow $1 $2:hvm { cacheattr getparam hvmctl sethvmc - setparam nested altp2mhvm altp2mhvm_op send_irq }; + setparam nested altp2mhvm altp2mhvm_op }; ') # create_domain(priv, target)
xen/xsm/flask/policy/access_vectors +2 -0
@@ -284,6 +284,8 @@ class hvm # HVMOP_altp2m_destroy_p2m HVMOP_altp2m_switch_p2m # HVMOP_altp2m_set_mem_access HVMOP_altp2m_change_gfn altp2mhvm_op +# DMOP + dm } # Class event describes event channels. Interdomain event channels have their
Signature · 7 lines
2.11.0 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
Quoted 14 lines
-----Original Message-----
From: Wei Liu [mailto:[email protected]]
Sent: 25 January 2017 10:43
To: Xen-devel <[email protected]>
Cc: Wei Liu <[email protected]>; Daniel De Graaf <[email protected]>; Paul Durrant <[email protected]>; Ian Jackson <[email protected]>
Subject: [PATCH] flask: fix build after the introduction of DMOPIn
58cbc034send_irqpermission was removed but there was still reference to it in policy file. Remove the stale reference.And now we also need dm permission. Add that.
Quoted 7 lines
Signed-off-by Wei Liu <[email protected]>---
Cc: Daniel De Graaf <[email protected]>
Cc: Paul Durrant <[email protected]>
Cc: Ian Jackson <[email protected]>Staging is currently broken.
Sorry about that.
Quoted 35 lines
--- tools/flask/policy/modules/xen.if | 2 +- xen/xsm/flask/policy/access_vectors | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-)tools/flask/policy/modules/xen.if +1
-1@@ -58,7 +58,7 @@ define(`create_domain_common', ` allow $1 $2:mmu { map_read map_write adjust memorymap physmap pinpage mmuext_op updatemp }; allow $1 $2:grant setup; allow $1 $2:hvm { cacheattr getparam hvmctl sethvmc - setparam nested altp2mhvm altp2mhvm_op send_irq }; + setparam nested altp2mhvm altp2mhvm_op }; ')#
create_domain(priv, target)xen/xsm/flask/policy/access_vectors +2
-0@@ -284,6 +284,8 @@ class hvm # HVMOP_altp2m_destroy_p2m HVMOP_altp2m_switch_p2m # HVMOP_altp2m_set_mem_access HVMOP_altp2m_change_gfn altp2mhvm_op +# DMOP + dm } # Class event describes event channels. Interdomain event channels have
Quoted 3 lines
their
--
2.11.0
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
PATCH 1/1 xsm/build: Further build fixes following the DMop series
In reply to Wei Liu---
CC: Jan Beulich <[email protected]>
CC: Daniel De Graaf <[email protected]>
CC: Paul Durrant <[email protected]>
CC: Ian Jackson <[email protected]>
Might be better to merge into one single patch when committed?
--- xen/xsm/dummy.c | 1 + xen/xsm/flask/hooks.c | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-)
xen/xsm/dummy.c +1 -0
@@ -156,6 +156,7 @@ void __init xsm_fixup_ops (struct xsm_operations *ops)set_to_dummy_if_null (ops, ioport_permission);set_to_dummy_if_null (ops, ioport_mapping);set_to_dummy_if_null (ops, pmu_op); +set_to_dummy_if_null (ops, dm_op);#endif set_to_dummy_if_null (ops, xen_version); }
xen/xsm/flask/hooks.c +0 -3
@@ -1776,9 +1776,6 @@ static struct xsm_operations flask_ops = {#ifdef CONFIG_X86 .do_mca = flask_do_mca, .shadow_control = flask_shadow_control, - .hvm_set_pci_intx_level = flask_hvm_set_pci_intx_level, - .hvm_set_isa_irq_level = flask_hvm_set_isa_irq_level, - .hvm_set_pci_link_route = flask_hvm_set_pci_link_route, .mem_sharing_op = flask_mem_sharing_op, .apic = flask_apic, .machine_memory_map = flask_machine_memory_map,
Signature · 7 lines
2.1.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
Re: [PATCH] [incremental] xsm/build: Further build fixes following the DMop series
Quoted 8 lines · Andrew Cooper
Signed-off-by Andrew Cooper <[email protected]>---
CC: Jan Beulich <[email protected]>
CC: Daniel De Graaf <[email protected]>
CC: Paul Durrant <[email protected]>
CC: Ian Jackson <[email protected]>Might be better to merge into one single patch when committed?
Yes, we should squash the two patches (the other one being mine posted earlier this morning).
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 8 lines · Wei Liu
In
58cbc034send_irqpermission was removed but there was still reference to it in policy file. Remove the stale reference.And now we also need dm permission. Add that.
Signed-off-by Wei Liu <[email protected]>---
Cc: Daniel De Graaf <[email protected]>
FAOD: Daniel I will need you ack before I can apply these two patches.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 11 lines · Wei Liu
Quoted 8 lines · Wei Liu
In
58cbc034send_irqpermission was removed but there was still reference to it in policy file. Remove the stale reference.And now we also need dm permission. Add that.
Signed-off-by Wei Liu <[email protected]>---
Cc: Daniel De Graaf <[email protected]>FAOD: Daniel I will need you ack before I can apply these two patches.
Actually I'm going to commit these patches now because staging is blocked, so this is a bit urgent.
Daniel, please review them all the same and tell us if you think things should be done differently. I will then post incremental patch for that.
Wei.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Re: [PATCH] [incremental] xsm/build: Further build fixes following the DMop series
In reply to Andrew CooperQuoted 8 lines · Andrew Cooper
Signed-off-by Andrew Cooper <[email protected]>---
CC: Jan Beulich <[email protected]>
CC: Daniel De Graaf <[email protected]>
CC: Paul Durrant <[email protected]>
CC: Ian Jackson <[email protected]>Might be better to merge into one single patch when committed?
Either way (combined with prior patch, original series, or alone):
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 6 lines · Wei Liu
In
58cbc034send_irqpermission was removed but there was still reference to it in policy file. Remove the stale reference.And now we also need dm permission. Add that.
Signed-off-by Wei Liu <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel