Re: [Xen-devel] [PATCH] [RFC] xsm: add a default policy to .init.data

2016-06-07 Thread Konrad Rzeszutek Wilk
On Mon, May 23, 2016 at 10:51:29AM -0400, Daniel De Graaf wrote: > This includes the policy in tools/flask/policy in the hypervisor so that > the bootloader does not need to load a policy to get sane behavior from > an XSM-enabled hypervisor. > > RFC because this adds a binding between xen's build

Re: [Xen-devel] [PATCH] [RFC] xsm: add a default policy to .init.data

2016-05-23 Thread Daniel De Graaf
On 05/23/2016 11:34 AM, Jan Beulich wrote: On 23.05.16 at 16:51, wrote: --- a/xen/xsm/flask/Makefile +++ b/xen/xsm/flask/Makefile @@ -27,6 +27,27 @@ $(FLASK_H_FILES): $(FLASK_H_DEPEND) $(AV_H_FILES): $(AV_H_DEPEND) $(CONFIG_SHELL) policy/mkaccess_vector.sh $(AWK) $(AV_H_DEPEND) +obj-

Re: [Xen-devel] [PATCH] [RFC] xsm: add a default policy to .init.data

2016-05-23 Thread Jan Beulich
>>> On 23.05.16 at 16:51, wrote: > --- a/xen/xsm/flask/Makefile > +++ b/xen/xsm/flask/Makefile > @@ -27,6 +27,27 @@ $(FLASK_H_FILES): $(FLASK_H_DEPEND) > $(AV_H_FILES): $(AV_H_DEPEND) > $(CONFIG_SHELL) policy/mkaccess_vector.sh $(AWK) $(AV_H_DEPEND) > > +obj-y += policy.o > + > +ifeq ($(X

Re: [Xen-devel] [PATCH] [RFC] xsm: add a default policy to .init.data

2016-05-23 Thread Daniel De Graaf
On 05/23/2016 11:25 AM, Andrew Cooper wrote: On 23/05/16 15:51, Daniel De Graaf wrote: diff --git a/xen/xsm/xsm_core.c b/xen/xsm/xsm_core.c index 634ec98..af1d86f 100644 --- a/xen/xsm/xsm_core.c +++ b/xen/xsm/xsm_core.c @@ -47,6 +47,17 @@ static void __init do_xsm_initcalls(void) } } +e

Re: [Xen-devel] [PATCH] [RFC] xsm: add a default policy to .init.data

2016-05-23 Thread Andrew Cooper
On 23/05/16 15:51, Daniel De Graaf wrote: > diff --git a/xen/xsm/xsm_core.c b/xen/xsm/xsm_core.c > index 634ec98..af1d86f 100644 > --- a/xen/xsm/xsm_core.c > +++ b/xen/xsm/xsm_core.c > @@ -47,6 +47,17 @@ static void __init do_xsm_initcalls(void) > } > } > > +extern char __xsm_init_policy_st

Re: [Xen-devel] [PATCH] [RFC] xsm: add a default policy to .init.data

2016-05-23 Thread Wei Liu
On Mon, May 23, 2016 at 10:51:29AM -0400, Daniel De Graaf wrote: > This includes the policy in tools/flask/policy in the hypervisor so that > the bootloader does not need to load a policy to get sane behavior from > an XSM-enabled hypervisor. > > RFC because this adds a binding between xen's build

[Xen-devel] [PATCH] [RFC] xsm: add a default policy to .init.data

2016-05-23 Thread Daniel De Graaf
This includes the policy in tools/flask/policy in the hypervisor so that the bootloader does not need to load a policy to get sane behavior from an XSM-enabled hypervisor. RFC because this adds a binding between xen's build and the tools build. The inclusion of policy.o could be made conditional o