77945: regressions - FAIL
osstest service owner
Acked-by Daniel De Graaf Acked-by Daniel De Graaf Reviewed-by Boris Ostrovsky Acked-by Kevin Tian Acked-by Daniel De Graaf Reviewed-by Andrew Cooper Reviewed-by Andrew Cooper Acked-by Kevin Tian Acked-by Wei Liu Reviewed-by Andrew Cooper Reviewed-by Kevin Tian Acked-by Wei Liuflight 77945 xen-unstable real [real]
http://logs.test-lab.xenproject.org/osstest/logs/77945/
Regressions :-(
Tests which did not succeed and are blocking,
including tests which could not be run:
test-amd64-i386-xl-qemut-stubdom-debianhvm-amd64-xsm 5 xen-install fail REGR. vs. 77892
test-amd64-amd64-xl-xsm 5 xen-install fail REGR. vs. 77892 test-amd64-i386-xl-xsm 5 xen-install fail REGR. vs. 77892
test-amd64-amd64-xl-qemut-stubdom-debianhvm-amd64-xsm 5 xen-install fail REGR. vs. 77892 test-amd64-i386-xl-qemut-debianhvm-amd64-xsm 5 xen-install fail REGR. vs. 77892 test-amd64-amd64-xl-qemuu-debianhvm-amd64-xsm 5 xen-install fail REGR. vs. 77892 test-amd64-amd64-xl-qemut-debianhvm-amd64-xsm 5 xen-install fail REGR. vs. 77892 test-amd64-i386-xl-qemuu-debianhvm-amd64-xsm 5 xen-install fail REGR. vs. 77892
test-armhf-armhf-xl-xsm 6 xen-boot fail REGR. vs. 77892
Regressions which are regarded as allowable (not blocking):
test-amd64-i386-libvirt-xsm 5 xen-install fail REGR. vs. 77892 test-amd64-amd64-libvirt-xsm 5 xen-install fail REGR. vs. 77892 test-amd64-i386-libvirt-qemuu-debianhvm-amd64-xsm 5 xen-install fail REGR. vs. 77892 test-amd64-amd64-libvirt-qemuu-debianhvm-amd64-xsm 5 xen-install fail REGR. vs. 77892 test-armhf-armhf-libvirt-xsm 6 xen-boot fail REGR. vs. 77892 test-amd64-i386-rumpuserxen-i386 10 guest-start fail like 77892 test-amd64-i386-xl-qemuu-win7-amd64 16 guest-stop fail like 77892 test-amd64-amd64-xl-qemut-win7-amd64 16 guest-stop fail like 77892 test-armhf-armhf-xl-rtds 9 debian-install fail like 77892 test-amd64-amd64-libvirt-vhd 9 debian-di-install fail like 77892
Tests which did not succeed, but are not blocking:
test-amd64-amd64-xl-pvh-amd 11 guest-start fail never pass test-amd64-amd64-xl-pvh-intel 11 guest-start fail never pass test-armhf-armhf-libvirt 14 guest-saverestore fail never pass test-armhf-armhf-libvirt 12 migrate-support-check fail never pass test-amd64-i386-libvirt 12 migrate-support-check fail never pass test-amd64-amd64-libvirt 12 migrate-support-check fail never pass test-amd64-amd64-qemuu-nested-amd 16 debian-hvm-install/l1/l2 fail never pass test-amd64-i386-xl-qemut-win7-amd64 16 guest-stop fail never pass test-armhf-armhf-xl-arndale 12 migrate-support-check fail never pass test-armhf-armhf-xl-arndale 13 saverestore-support-check fail never pass test-amd64-amd64-xl-qemuu-win7-amd64 16 guest-stop fail never pass test-armhf-armhf-xl-credit2 13 saverestore-support-check fail never pass test-armhf-armhf-xl-credit2 12 migrate-support-check fail never pass test-armhf-armhf-xl-cubietruck 12 migrate-support-check fail never pass test-armhf-armhf-xl-cubietruck 13 saverestore-support-check fail never pass test-armhf-armhf-xl 12 migrate-support-check fail never pass test-armhf-armhf-xl 13 saverestore-support-check fail never pass test-armhf-armhf-xl-multivcpu 13 saverestore-support-check fail never pass test-armhf-armhf-xl-multivcpu 12 migrate-support-check fail never pass test-armhf-armhf-libvirt-raw 13 guest-saverestore fail never pass test-armhf-armhf-libvirt-raw 11 migrate-support-check fail never pass
test-armhf-armhf-libvirt-qcow2 11 migrate-support-check fail never pass
test-armhf-armhf-libvirt-qcow2 13 guest-saverestore fail never pass
test-armhf-armhf-xl-vhd 9 debian-di-install fail never pass
version targeted for testing:
xen 20c8f1a8a5fd61cb6f0ba6f3c3b3d567b1765116
baseline version:
xen f7347a282420a5edc74afb31e7c42c2765f24de5
Last test of basis 77892 2016-01-12 11:30:40 Z 1 days Testing same since 77945 2016-01-13 04:01:14 Z 0 days 1 attempts
------------------------------------------------------------
People who touched revisions under test:
Brendan Gregg <[email protected]>
Daniel De Graaf <[email protected]>
Doug Goldstein <[email protected]>
Haozhong Zhang <[email protected]>
Juergen Gross <[email protected]>
Kevin Tian <[email protected]>
Wei Liu <[email protected]> for tools bits
jobs:
build-amd64-xsm pass build-armhf-xsm pass build-i386-xsm pass build-amd64 pass build-armhf pass build-i386 pass build-amd64-libvirt pass build-armhf-libvirt pass build-i386-libvirt pass build-amd64-oldkern pass build-i386-oldkern pass build-amd64-prev pass build-i386-prev pass build-amd64-pvops pass build-armhf-pvops pass build-i386-pvops pass build-amd64-rumpuserxen pass build-i386-rumpuserxen pass test-amd64-amd64-xl pass test-armhf-armhf-xl pass test-amd64-i386-xl pass test-amd64-amd64-xl-qemut-debianhvm-amd64-xsm fail test-amd64-i386-xl-qemut-debianhvm-amd64-xsm fail test-amd64-amd64-libvirt-qemuu-debianhvm-amd64-xsm fail test-amd64-i386-libvirt-qemuu-debianhvm-amd64-xsm fail test-amd64-amd64-xl-qemuu-debianhvm-amd64-xsm fail test-amd64-i386-xl-qemuu-debianhvm-amd64-xsm fail test-amd64-amd64-xl-qemut-stubdom-debianhvm-amd64-xsm fail test-amd64-i386-xl-qemut-stubdom-debianhvm-amd64-xsm fail test-amd64-amd64-libvirt-xsm fail test-armhf-armhf-libvirt-xsm fail test-amd64-i386-libvirt-xsm fail test-amd64-amd64-xl-xsm fail test-armhf-armhf-xl-xsm fail test-amd64-i386-xl-xsm fail test-amd64-amd64-qemuu-nested-amd fail test-amd64-amd64-xl-pvh-amd fail test-amd64-i386-qemut-rhel6hvm-amd pass test-amd64-i386-qemuu-rhel6hvm-amd pass test-amd64-amd64-xl-qemut-debianhvm-amd64 pass test-amd64-i386-xl-qemut-debianhvm-amd64 pass test-amd64-amd64-xl-qemuu-debianhvm-amd64 pass test-amd64-i386-xl-qemuu-debianhvm-amd64 pass test-amd64-i386-freebsd10-amd64 pass test-amd64-amd64-xl-qemuu-ovmf-amd64 pass test-amd64-i386-xl-qemuu-ovmf-amd64 pass test-amd64-amd64-rumpuserxen-amd64 pass test-amd64-amd64-xl-qemut-win7-amd64 fail test-amd64-i386-xl-qemut-win7-amd64 fail test-amd64-amd64-xl-qemuu-win7-amd64 fail test-amd64-i386-xl-qemuu-win7-amd64 fail test-armhf-armhf-xl-arndale pass test-amd64-amd64-xl-credit2 pass test-armhf-armhf-xl-credit2 pass test-armhf-armhf-xl-cubietruck pass test-amd64-i386-freebsd10-i386 pass test-amd64-i386-rumpuserxen-i386 fail test-amd64-amd64-qemuu-nested-intel pass test-amd64-amd64-xl-pvh-intel fail test-amd64-i386-qemut-rhel6hvm-intel pass test-amd64-i386-qemuu-rhel6hvm-intel pass test-amd64-amd64-libvirt pass test-armhf-armhf-libvirt fail test-amd64-i386-libvirt pass test-amd64-amd64-migrupgrade pass test-amd64-i386-migrupgrade pass test-amd64-amd64-xl-multivcpu pass test-armhf-armhf-xl-multivcpu pass test-amd64-amd64-pair pass test-amd64-i386-pair pass test-amd64-amd64-libvirt-pair pass test-amd64-i386-libvirt-pair pass test-amd64-amd64-amd64-pvgrub pass test-amd64-amd64-i386-pvgrub pass test-amd64-amd64-pygrub pass test-armhf-armhf-libvirt-qcow2 fail test-amd64-amd64-xl-qcow2 pass test-armhf-armhf-libvirt-raw fail test-amd64-i386-xl-raw pass test-amd64-amd64-xl-rtds pass test-armhf-armhf-xl-rtds fail test-amd64-i386-xl-qemut-winxpsp3-vcpus1 pass test-amd64-i386-xl-qemuu-winxpsp3-vcpus1 pass test-amd64-amd64-libvirt-vhd fail test-armhf-armhf-xl-vhd fail test-amd64-amd64-xl-qemut-winxpsp3 pass test-amd64-i386-xl-qemut-winxpsp3 pass test-amd64-amd64-xl-qemuu-winxpsp3 pass test-amd64-i386-xl-qemuu-winxpsp3 pass
------------------------------------------------------------
sg-report-flight on osstest.test-lab.xenproject.org
logs: /home/logs/logs
images: /home/logs/images
Logs, config files, etc. are available at
http://logs.test-lab.xenproject.org/osstest/logs
Explanation of these reports, and of osstest in general, is at
http://xenbits.xen.org/gitweb/?p=osstest.git;a=blob;f=README.email;hb=master
http://xenbits.xen.org/gitweb/?p=osstest.git;a=blob;f=README;hb=master
Test harness code can be found at
http://xenbits.xen.org/gitweb?p=osstest.git;a=summary
Not pushing.
------------------------------------------------------------
commit 20c8f1a8a5fd61cb6f0ba6f3c3b3d567b1765116
Author: Doug Goldstein <[email protected]> Date: Tue Jan 12 11:39:47 2016 +0100
convert XSM_ENABLE to Kconfig
Converts the existing XSM_ENABLE flag from Config.mk to CONFIG_XSM within Kconfig. This also re-adds the dependency of CONFIG_FLASK on CONFIG_XSM.
commit 529298fdf9097f8e637f754c9b29bd58a8a714e9
Author: Doug Goldstein <[email protected]> Date: Tue Jan 12 11:36:33 2016 +0100
convert FLASK_ENABLE to Kconfig
Converts the Config.mk option of FLASK_ENABLE into a Kconfig option for the hypervisor called CONFIG_FLASK. This commit knowingly breaks the dependent relationship on XSM_ENABLE which is addressed when XSM_ENABLE is converted to Kconfig.
commit 361b4f9f0f0d4adc19df428e224a7b8fa62cd392
Author: Doug Goldstein <[email protected]> Date: Tue Jan 12 11:33:55 2016 +0100
build: save generated xen .config
Since we now support changing Xen options with Kconfig, we should save the configuration that was used to build up Xen. This will save it in /usr/lib/debug alongside xen-syms and call it xen-$(FULLVERSION).config
commit e3cce1799df2f957dfa00f84a5315cbf896490fe
Author: Brendan Gregg <[email protected]> Date: Tue Jan 12 11:33:16 2016 +0100
x86/VPMU: implement ipc and arch filter flags
This introduces a way to have a restricted VPMU, by specifying one of two predefined groups of PMCs to make available. For secure environments, this allows the VPMU to be used without needing to enable all PMCs.
commit 5513bd0b4675e2fa2ff4e9a06885f16727901805
Author: Juergen Gross <[email protected]> Date: Tue Jan 12 11:29:55 2016 +0100
add xenstore domain flag to hypervisor
In order to be able to have full support of a xenstore domain in Xen add a "Xenstore-domain" flag to the hypervisor. This flag must be specified at domain creation time and is returned by XEN_DOMCTL_getdomaininfo.
It will allow the domain to retrieve domain information by issuing the XEN_DOMCTL_getdomaininfo itself in order to be able to check for domains having been destroyed. At the same time this flag will inhibit the domain to be migrated, as this wouldn't be a very wise thing to do.
In case of a later support of a rebootable Dom0 this flag will allow to recognize a xenstore domain already being present to connect to.
commit cfacce340608be5f94ce0c8f424487b63c3d5399
Author: Haozhong Zhang <[email protected]> Date: Tue Jan 12 11:29:25 2016 +0100
x86/hvm: add support for pcommit instruction
Pass PCOMMIT CPU feature into HVM domain. Currently, we do not intercept pcommit instruction for L1 guest, and allow L1 to intercept pcommit instruction for L2 guest.
The specification of pcommit instruction can be found in
https://software.intel.com/sites/default/files/managed/0d/53/319433-022.pdf
commit 3cb82a561382466208db50d41d6401e2cc4819dd
Author: Haozhong Zhang <[email protected]> Date: Tue Jan 12 11:28:58 2016 +0100
x86/hvm: allow guest to use clflushopt and clwb
Pass CPU features CLFLUSHOPT and CLWB into HVM domain so that those two instructions can be used by guest.
The specification of above two instructions can be found in
https://software.intel.com/sites/default/files/managed/0d/53/319433-022.pdf
commit 165f36d5fa60ade72f691fbb81aad0a2cadaca37
Author: Doug Goldstein <[email protected]> Date: Tue Jan 12 11:27:49 2016 +0100
x86: convert bigmem to Kconfig
Convert the bigmem build option to Kconfig.
(qemu changes not included)
Quoted 9 lines
Quoted 1 line
Quoted 1 line · On 13.01.16 at 20:30, <[email protected]> wrote:
flight 77945 xen-unstable real [real]
http://logs.test-lab.xenproject.org/osstest/logs/77945/Regressions :-(
Tests which did not succeed and are blocking,
including tests which could not be run:
test-amd64-i386-xl-qemut-stubdom-debianhvm-amd64-xsm 5 xen-install fail REGR. vs. 77892
Quoted 7 lines
test-amd64-amd64-xl-xsm 5 xen-install fail REGR. vs. 77892 test-amd64-i386-xl-xsm 5 xen-install fail REGR. vs. 77892test-amd64-amd64-xl-qemut-stubdom-debianhvm-amd64-xsm 5 xen-install fail REGR. vs. 77892 test-amd64-i386-xl-qemut-debianhvm-amd64-xsm 5 xen-install fail REGR. vs. 77892 test-amd64-amd64-xl-qemuu-debianhvm-amd64-xsm 5 xen-install fail REGR. vs. 77892 test-amd64-amd64-xl-qemut-debianhvm-amd64-xsm 5 xen-install fail REGR. vs. 77892 test-amd64-i386-xl-qemuu-debianhvm-amd64-xsm 5 xen-install fail REGR. vs. 77892
All perhaps because of multiple instances of
2016-01-13 16:20:48 Z (skipping entry at 303..316; XSM policy file not present) 2016-01-13 16:20:48 Z (skipping entry at 317..330; XSM policy file not present)
? Are we having another ordering problem with the XSM/FLASK Kconfig-conversion patches?
Jan
Quoted 27 lines · Jan Beulich
Quoted 16 lines
Quoted 1 line
Quoted 1 line · On 13.01.16 at 20:30, <[email protected]> wrote:
flight 77945 xen-unstable real [real]
http://logs.test-lab.xenproject.org/osstest/logs/77945/Regressions :-(
Tests which did not succeed and are blocking,
including tests which could not be run:
test-amd64-i386-xl-qemut-stubdom-debianhvm-amd64-xsm 5 xen-install fail REGR. vs. 77892
test-amd64-amd64-xl-xsm 5 xen-install fail REGR. vs. 77892
test-amd64-i386-xl-xsm 5 xen-install fail REGR. vs. 77892 test-amd64-amd64-xl-qemut-stubdom-debianhvm-amd64-xsm 5 xen-install fail REGR. vs. 77892Quoted 8 lines
test-amd64-i386-xl-qemut-debianhvm-amd64-xsm 5 xen-install fail REGR. vs. 77892
test-amd64-amd64-xl-qemuu-debianhvm-amd64-xsm 5 xen-install fail REGR. vs. 77892
test-amd64-amd64-xl-qemut-debianhvm-amd64-xsm 5 xen-install fail REGR. vs. 77892
test-amd64-i386-xl-qemuu-debianhvm-amd64-xsm 5 xen-install fail REGR. vs. 77892All perhaps because of multiple instances of
Quoted 7 lines
2016-01-13 16:20:48 Z (skipping entry at 303..316; XSM policy file not present) 2016-01-13 16:20:48 Z (skipping entry at 317..330; XSM policy file notpresent)
? Are we having another ordering problem with the XSM/FLASK Kconfig-conversion patches?
The logs (at the bottom of the summary linked about) claim harness revision fff2921dd931d92de43cde2f977b2c6ac3605966 which includes the osstest side.
Looking at the build-amd64-xsm job
http://logs.test-lab.xenproject.org/osstest/logs/77945/build-amd64-xsm/info.html
I can see in the resulting tarballs that the policy is indeed missing and that the build log (5.ts-xen-build.log) seems to not contain the bits which build the policy (comparing with 77892's logs)
The bisector is working:
http://logs.test-lab.xenproject.org/osstest/results/bisect/xen-unstable/test-amd64-i386-xl-qemut-stubdom-debianhvm-amd64-xsm.xen-install.html
and has gotten to this range:
$ git log --oneline 5513bd0b4675..20c8f1a8a5fd
20c8f1a convert XSM_ENABLE to Kconfig
529298f convert FLASK_ENABLE to Kconfig
361b4f9 build: save generated xen .config
e3cce17 x86/VPMU: implement ipc and arch filter flagsI suspect the issue is that 529298f removes FLASK_ENABLE from the top- level, but that is used in tools/Makefile. i.e. there is that other patch which needed to go before the two included above.
Ian.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 13 lines
Quoted 1 line
Quoted 1 line · On 14.01.16 at 12:42, <[email protected]> wrote:
The bisector is working:
http://logs.test-lab.xenproject.org/osstest/results/bisect/xen-unstable/test
-amd64-i386-xl-qemut-stubdom-debianhvm-amd64-xsm.xen-install.htmland has gotten to this range:
$ git log --oneline 5513bd0b4675..20c8f1a8a5fd 20c8f1a convert XSM_ENABLE to Kconfig 529298f convert FLASK_ENABLE to Kconfig 361b4f9 build: save generated xen .config e3cce17 x86/VPMU: implement ipc and arch filter flags
Quoted 3 lines
I suspect the issue is that 529298f removes
FLASK_ENABLEfrom the top- level, but that is used intools/Makefile. i.e. there is that other patch which needed to go before the two included above.
And is that other patch ready to go in? If not, do we need to revert another time?
In any event - Doug, you should point out such dependencies in the submission, e.g. after the first --- marker.
Jan
Quoted 14 lines · Jan Beulich
Quoted 14 lines
Quoted 1 line
Quoted 1 line · On 14.01.16 at 12:42, <[email protected]> wrote:
The bisector is working:
http://logs.test-lab.xenproject.org/osstest/results/bisect/xen-unstable
/test -amd64-i386-xl-qemut-stubdom-debianhvm-amd64-xsm.xen-install.htmland has gotten to this range:
$ git log --oneline 5513bd0b4675..20c8f1a8a5fd 20c8f1a convert XSM_ENABLE to Kconfig 529298f convert FLASK_ENABLE to Kconfig 361b4f9 build: save generated xen .config e3cce17 x86/VPMU: implement ipc and arch filter flags
Quoted 7 lines
Quoted 4 lines
I suspect the issue is that 529298f removes
FLASK_ENABLEfrom the top- level, but that is used intools/Makefile. i.e. there is that other patch
which needed to go before the two included above.And is that other patch ready to go in? If not, do we need to revert another time?
I think that is likely to be the case, yes.
Quoted 2 lines
In any event - Doug, you should point out such dependencies in the submission, e.g. after the first --- marker.
Really they should have been in the same series in this case.
Ian.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 23 lines · Ian Campbell
Quoted 14 lines · Jan Beulich
Quoted 14 lines
Quoted 1 line
Quoted 1 line · On 14.01.16 at 12:42, <[email protected]> wrote:
The bisector is working:
http://logs.test-lab.xenproject.org/osstest/results/bisect/xen-unstable
/test -amd64-i386-xl-qemut-stubdom-debianhvm-amd64-xsm.xen-install.htmland has gotten to this range:
$ git log --oneline 5513bd0b4675..20c8f1a8a5fd 20c8f1a convert XSM_ENABLE to Kconfig 529298f convert FLASK_ENABLE to Kconfig 361b4f9 build: save generated xen .config e3cce17 x86/VPMU: implement ipc and arch filter flagsQuoted 7 lines
Quoted 4 lines
I suspect the issue is that 529298f removes
FLASK_ENABLEfrom the top- level, but that is used intools/Makefile. i.e. there is that other patch
which needed to go before the two included above.And is that other patch ready to go in? If not, do we need to revert another time?
Quoted 9 lines
I think that is likely to be the case, yes.
Quoted 2 lines
In any event - Doug, you should point out such dependencies in the submission, e.g. after the first --- marker.
Really they should have been in the same series in this case.
Ian.
They were all in the same thread. And were all acked. But the first one against the tools shouldn't have been necessary, it should have still built.
Signature · 1 line
Doug Goldstein
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 31 lines · Doug Goldstein
Quoted 30 lines · Ian Campbell
Quoted 15 lines · Jan Beulich
Quoted 15 lines
Quoted 1 line
Quoted 1 line · On 14.01.16 at 12:42, <[email protected]> wrote:
The bisector is working:
http://logs.test-lab.xenproject.org/osstest/results/bisect/xen-unst
able
/test -amd64-i386-xl-qemut-stubdom-debianhvm-amd64-xsm.xen-install.htmland has gotten to this range:
$ git log --oneline 5513bd0b4675..20c8f1a8a5fd 20c8f1a convert XSM_ENABLE to Kconfig 529298f convert FLASK_ENABLE to Kconfig 361b4f9 build: save generated xen .config e3cce17 x86/VPMU: implement ipc and arch filter flagsQuoted 8 lines
Quoted 5 lines
I suspect the issue is that 529298f removes
FLASK_ENABLEfrom the top-
level, but that is used intools/Makefile. i.e. there is that other patch
which needed to go before the two included above.And is that other patch ready to go in? If not, do we need to revert another time?
I think that is likely to be the case, yes.
Quoted 2 lines
In any event - Doug, you should point out such dependencies in the submission, e.g. after the first --- marker.
Quoted 8 lines
Quoted 4 lines
Really they should have been in the same series in this case.
Ian.
They were all in the same thread. And were all acked. But the first one against the tools shouldn't have been necessary, it should have still built.
I was talking about "tools: make flask utils build unconditional" from <145 [email protected]> which appears to be a singleton patch, not part of a series. Maybe that is unrelated to this breakage then?
Ian.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 41 lines · Ian Campbell
Quoted 31 lines · Doug Goldstein
Quoted 30 lines · Ian Campbell
Quoted 15 lines · Jan Beulich
Quoted 15 lines
Quoted 1 line
Quoted 1 line · On 14.01.16 at 12:42, <[email protected]> wrote:
The bisector is working:
http://logs.test-lab.xenproject.org/osstest/results/bisect/xen-unst
able
/test -amd64-i386-xl-qemut-stubdom-debianhvm-amd64-xsm.xen-install.htmland has gotten to this range:
$ git log --oneline 5513bd0b4675..20c8f1a8a5fd 20c8f1a convert XSM_ENABLE to Kconfig 529298f convert FLASK_ENABLE to Kconfig 361b4f9 build: save generated xen .config e3cce17 x86/VPMU: implement ipc and arch filter flagsQuoted 8 lines
Quoted 5 lines
I suspect the issue is that 529298f removes
FLASK_ENABLEfrom the top-
level, but that is used intools/Makefile. i.e. there is that other patch
which needed to go before the two included above.And is that other patch ready to go in? If not, do we need to revert another time?
I think that is likely to be the case, yes.
Quoted 2 lines
In any event - Doug, you should point out such dependencies in the submission, e.g. after the first --- marker.
Quoted 8 lines
Quoted 4 lines
Really they should have been in the same series in this case.
Ian.
They were all in the same thread. And were all acked. But the first one against the tools shouldn't have been necessary, it should have still built.
Quoted 8 lines
I was talking about "tools: make flask utils build unconditional" from <145 [email protected]> which appears to be a singleton patch, not part of a series. Maybe that is unrelated to this breakage then?
Ian.
It shouldn't have been required. Its all controlled by --enable-xsmpolicy or --disable-xsmpolicy.
But I now see where it is. Technically the OSSTest depends on FLASK_ENABLE but only sets XSM_ENABLE in the tests. It relies on the fact that FLASK_ENABLE defaults to the same value as XSM_ENABLE but I removed that in the last patch.
I will provide patches to OSSTest to set the proper variables rather than assuming they will be populated appropriately.
Signature · 1 line
Doug Goldstein
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 10 lines
Quoted 1 line
Quoted 1 line · On 14.01.16 at 15:07, <[email protected]> wrote:
Quoted 5 lines · Ian Campbell
Quoted 2 lines · Jan Beulich
In any event - Doug, you should point out such dependencies in the submission, e.g. after the first --- marker.
Really they should have been in the same series in this case.
They were all in the same thread. And were all acked. But the first one against the tools shouldn't have been necessary, it should have still built.
Indeed I now see they were, but that's visible only in a threading capable mail client (which mine isn't). The patches should have been 1/3, 2/3, and 3/3, instead of the tools one being unnumbered and the hypervisor ones being 1/2 and 2/2. And the latest at the point where we had to revert the hypervisor ones (or when we were about to re-apply them) you should have shouted to tell us (me) that these got applied too early anyway.
Jan
Quoted 19 lines · Jan Beulich
Quoted 10 lines
Quoted 1 line
Quoted 1 line · On 14.01.16 at 15:07, <[email protected]> wrote:
Quoted 5 lines · Ian Campbell
Quoted 2 lines · Jan Beulich
In any event - Doug, you should point out such dependencies in the submission, e.g. after the first --- marker.
Really they should have been in the same series in this case.
They were all in the same thread. And were all acked. But the first one against the tools shouldn't have been necessary, it should have still built.
Indeed I now see they were, but that's visible only in a threading capable mail client (which mine isn't). The patches should have been 1/3, 2/3, and 3/3, instead of the tools one being unnumbered and the hypervisor ones being 1/2 and 2/2. And the latest at the point where we had to revert the hypervisor ones (or when we were about to re-apply them) you should have shouted to tell us (me) that these got applied too early anyway.
Quoted 2 lines
Jan
I believe the issue is some underlying assumptions between OSSTest and the Xen code base and myself. I've submitted patches to OSSTest to right the ship. That first patch in the thread shouldn't really be necessary. It'd be nice to clean it up but not required.
Signature · 1 line
Doug Goldstein
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Re: [xen-unstable test] 77945: regressions - FAIL [and 2 more messages]
In reply to Ian CampbellI have to confess I'm quite confused now. Maybe there are many underlying disagreements here but mostly I seem befogged. However, here are some principles I currently believe in for how this should all work:
* It should be possible to enable, or disable, all of the following things by pulling one handle:
- XSM hypervisor support
- FLASK hypervisor support
- installation of the FLASK policy in /boot
- presence of the Xen+XSM boot entry
* FAOD it is IMO OK for some of those things to be configurable separately, but there should be one most obvious way to enable, or disable, them all together.
* This single handle should be used by osstest, so that osstest is testing the most usual build method. (Corollary: current code in osstest that conditionally copies the policy is a bodge which would ideally go away.)
* I do not have a strong opinion about whether FLASK policy-handling tools ought to be always built. I see no harm in building them always and I can see arguments in favour.
* Users should not get boot config options that are definitely not going to work (see above). (Or at least, not unless they try hard.)
* The hypervisor maintainers object to autoconf. This is fine. But it means that if we want to have a single configuration option which affects both hypervisor and tools (at least, by default), that it should be possible for tools config options to at least inherit their defaults from Kconfig.
* Perhaps this should be done by having the tools configure run some Kconfig. If so there should be an autoconf command line option to suppress this.
* Alternatively, perhaps configure should be changed so that it can set Kconfig settings which the hypervisor build will pick up.
* IMO it is fine to put the Xen Kconfig config file in /boot. Given the existing state of the rest of the universe, this seems like the best place for me.
* osstest's replacement Xen grub menu entry generator ought to be on an upstream track. This is necessary because osstest ought to be using features that users will get too.
* I don't have a clear design proposal for the above but I think Doug can probably provide one. I'm hoping this is more a matter of thinking carefully than of extensive build system programming!
* If a fix for this is hard to achieve for some reason I will be content with patches which make things no worse, overall, than they were before Christmas :-). (By which I do not mean that I demand a Pareto improvement.)
Is any of this of any use ?
Thanks,
Ian.
(no less confused after writing this than I was before)
Re: [xen-unstable test] 77945: regressions - FAIL [and 2 more messages]
Quoted 11 lines · Ian Jackson
I have to confess I'm quite confused now. Maybe there are many underlying disagreements here but mostly I seem befogged. However, here are some principles I currently believe in for how this should all work:
* It should be possible to enable, or disable, all of the following things by pulling one handle:
- XSM hypervisor support
- FLASK hypervisor support
- installation of the FLASK policy in /boot
- presence of the Xen+XSM boot entry
I think this is where the issue lies. There have always been multiple switches to pull and different assumptions where made.
- XSM in the hypervisor was enabled by XSM_ENABLE at the top level. Currently it is enabled by the CONFIG_XSM Kconfig switch in the xen/ directory.
- FLASK in the hypervisor was enabled by FLASK_ENABLE at the top level. It did not depend on XSM_ENABLE in the Makefile rules (but the code did ifdef it out since it needed XSM_ENABLE). Currently it is enabled by the CONFIG_FLASK Kconfig switch in the xen/ directory. It depends on CONFIG_XSM.
- The FLASK policy installation is controlled in the tools/ by --enable-xsmpolicy (which is the default) however the policy COULDN'T build without FLASK_ENABLE being set at the top level but you could disable XSM_ENABLE and it would still build. (which is what my patch tried to make more explicit in osstest)
- Xen+XSM boot entry doesn't exist today but with storing the state of the hypervisor in the .config we'll be able to make this smart by saying "Xen supports FLASK so load in the policy since the policy is present"
Quoted 4 lines
* FAOD it is IMO OK for some of those things to be configurable separately, but there should be one most obvious way to enable, or disable, them all together.
That's fine but we need to make the pull switch explicitly set all the knobs correctly and not rely on implicit defaults.
Quoted 5 lines
* This single handle should be used by osstest, so that osstest is testing the most usual build method. (Corollary: current code in osstest that conditionally copies the policy is a bodge which would ideally go away.)
Will it be if we document it that people need to provide a Kconfig file to enable it and then configure with --enable-xsmpolicy?
Quoted 8 lines
* I do not have a strong opinion about whether FLASK policy-handling tools ought to be always built. I see no harm in building them always and I can see arguments in favour.
* Users should not get boot config options that are definitely not going to work (see above). (Or at least, not unless they try hard.)
I agree and that's more likely to happen now with the Kconfig file being saved.
Quoted 6 lines
* The hypervisor maintainers object to autoconf. This is fine. But it means that if we want to have a single configuration option which affects both hypervisor and tools (at least, by default), that it should be possible for tools config options to at least inherit their defaults from
Kconfig.
So that was my question early on in the Kconfig bits if it the .config bits should drag up to the top level or just be contained into xen/ and I was told to keep it in xen/ hence for the split.
Quoted 7 lines
* Perhaps this should be done by having the tools configure run some
Kconfig. If so there should be an autoconf command line option to suppress this.* Alternatively, perhaps configure should be changed so that it can set
Kconfigsettings which the hypervisor build will pick up.
I'm not sure of the best approach here. It will require a little bit of tinkering.
Quoted 4 lines
* IMO it is fine to put the Xen
Kconfigconfig file in /boot. Given the existing state of the rest of the universe, this seems like the best place for me.
I agree with you. But Jan disagreed. I submitted a patch both ways because progress was better than bikeshedding and he merged the patch into /usr/lib/debug. I'd be in favor of seeing it moved to /boot.
Quoted 4 lines
* osstest's replacement Xen grub menu entry generator ought to be on an upstream track. This is necessary because osstest ought to be using features that users will get too.
I agree here as well. I've got a few patches that I'm planning on submitting to grub as well to make the options a little clearer and the defaults do the right thing in more cases.
Quoted 10 lines
* I don't have a clear design proposal for the above but I think Doug can probably provide one. I'm hoping this is more a matter of thinking carefully than of extensive build system programming!
* If a fix for this is hard to achieve for some reason I will be content with patches which make things no worse, overall, than they were before Christmas :-). (By which I do not mean that I demand a Pareto improvement.)
Quoted 6 lines
Is any of this of any use ?
Thanks,
Ian.
(no less confused after writing this than I was before)
The take away I see here is whatever path is taken we just need to be a bit more explicit with what does what or what is called what to avoid potential breakages.
Signature · 1 line
Doug Goldstein
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Re: [xen-unstable test] 77945: regressions - FAIL [and 2 more messages]
Doug Goldstein writes ("Re: [Xen-devel] [xen-unstable test] 77945: regressions - FAIL [and 2 more messages]"):
Quoted 10 lines · Ian Jackson
Quoted 5 lines
Is any of this of any use ?
Thanks,
Ian.
(no less confused after writing this than I was before)The take away I see here is whatever path is taken we just need to be a bit more explicit with what does what or what is called what to avoid potential breakages.
Heh. Does this mean that we should expect more or different patches from you ? I see your conversation with Ian Campbell about at least one of the osstest patches is ongoing...
Ian.
Re: [xen-unstable test] 77945: regressions - FAIL [and 2 more messages]
Quoted 9 lines · Ian Jackson
Doug Goldstein writes ("Re: [Xen-devel] [xen-unstable test] 77945:
regressions - FAIL [and 2 more messages]"):Quoted 7 lines · Ian Jackson
Quoted 5 lines
Is any of this of any use ?
Thanks,
Ian.
(no less confused after writing this than I was before)
Quoted 7 lines
Quoted 3 lines
The take away I see here is whatever path is taken we just need to be a bit more explicit with what does what or what is called what to avoid potential breakages.
Heh. Does this mean that we should expect more or different patches from you ? I see your conversation with Ian Campbell about at least one of the osstest patches is ongoing...
I was confused about which .config that was touching (.config vs xen/.config), so I think my feedback was largely nonsense.
Although in the light of what was written in this thread I'm not sure what the next step is WRT that patch either.
Ian.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Re: [xen-unstable test] 77945: regressions - FAIL [and 2 more messages]
In reply to Ian JacksonQuoted 12 lines · Ian Jackson
Doug Goldstein writes ("Re: [Xen-devel] [xen-unstable test] 77945: regressions - FAIL [and 2 more messages]"):
Quoted 10 lines · Ian Jackson
Quoted 5 lines
Is any of this of any use ?
Thanks,
Ian.
(no less confused after writing this than I was before)The take away I see here is whatever path is taken we just need to be a bit more explicit with what does what or what is called what to avoid potential breakages.
Quoted 6 lines
Heh. Does this mean that we should expect more or different patches from you ? I see your conversation with Ian Campbell about at least one of the osstest patches is ongoing...
Ian.
So I stand behind the two submitted patches for osstest because I feel that it makes it more explicit. However, I understand your point that you would prefer 1 knob and it be the same knob that users use so I'm willing to do the work necessarily to get the code behaving how you would prefer but I would hope we make the code more explicit is all.
So basically, if the patches are thumbs downed I'll change.
Signature · 1 line
Doug Goldstein
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Re: [xen-unstable test] 77945: regressions - FAIL [and 2 more messages]
In reply to Ian JacksonQuoted 13 lines
Quoted 1 line
Quoted 1 line · On 14.01.16 at 17:27, <[email protected]> wrote:
I have to confess I'm quite confused now. Maybe there are many underlying disagreements here but mostly I seem befogged. However, here are some principles I currently believe in for how this should all work:
* It should be possible to enable, or disable, all of the following things by pulling one handle:
- XSM hypervisor support
- FLASK hypervisor support
- installation of the FLASK policy in /boot
- presence of the Xen+XSM boot entry
Quoted 3 lines
* FAOD it is IMO OK for some of those things to be configurable separately, but there should be one most obvious way to enable, or disable, them all together.
Both of these would be nice, but I don't view this a requirement.
Quoted 3 lines
* Users should not get boot config options that are definitely not going to work (see above). (Or at least, not unless they try hard.)
Agreed.
Quoted 6 lines
* The hypervisor maintainers object to autoconf. This is fine. But it means that if we want to have a single configuration option which affects both hypervisor and tools (at least, by default), that it should be possible for tools config options to at least inherit their defaults from
Kconfig.
Quoted 6 lines
* Perhaps this should be done by having the tools configure run some
Kconfig. If so there should be an autoconf command line option to suppress this.* Alternatively, perhaps configure should be changed so that it can set
Kconfigsettings which the hypervisor build will pick up.
All of these fall into the same area as the first two above - would be nice, but not strict requirement. In particular with the various subtrees there's no requirement for both tools and hypervisor to be built at all in the same tree. (In fact on my only left 32-bit host this is what happens - the 32-bit build tree only gets tools built, and the 64-bit build tree only gets the hypervisor built.)
Quoted 3 lines
* IMO it is fine to put the Xen
Kconfigconfig file in /boot. Given the existing state of the rest of the universe, this seems like the best place for me.
I continue to disagree, but I wouldn't outright veto someone else committing a change to this effect. I won't, however, commit such a change myself (or only with an Explicitly-not-acked-by:
tag).
Jan
Re: [xen-unstable test] 77945: regressions - FAIL [and 2 more messages]
In reply to Ian JacksonQuoted 3 lines · Ian Jackson
* I don't have a clear design proposal for the above but I think Doug can probably provide one. I'm hoping this is more a matter of thinking carefully than of extensive build system programming!
I think we should:
1) Move /usr/lib/debug/xen-4.7-unstable.config to /boot. I previously didn't care about what path it was, but the usecase of having grub be able to react to the config (see below) is a strong reason to have it in /boot IMHO. Jan has said he won't veto such a change, AFAICT everyone else is happy with it.
2) Assume that grub (specifically the patch in http://savannah.gnu.org/bugs
/?43420 and as used by osstest today) will at some point be modified to look at /boot/xenconfig-$version to decide whether to create an XSM entry or not instead of the presence of /boot/xenpolicy-$version. This step belongs here logically but chronologically could come much later since osstest will do the right thing even if there is a spurious /boot/xenpolicy-$version file (which is to say it will ignore the spurious entry and boot the right thing).
3) Have tools/* always build the FLASK+XSM tools _and_ the FLASK policy and to always install both. Any related configure options can go away and we no longer need to worry about synchronising the configuration of the tools and xen trees, this is desirable because we would prefer to have one set of tools which gracefully handles differing hypervisor configurations over needing different sets of tools (FLASK+XSM was one of the few exceptions to that rule AFAICT).
I think with this plan there is no need to modify osstest.git, since it already does the right thing (which is, it sets XSM for Xen builds, which in turn enables FLASK and it does nothing for tools/* which is correct once #3 above has happened).
The only downside is a spurious /boot/xenpolicy-$version installed when the corresponding Xen binary doesn't support XSM, however given the assumption in #2 (which implies the user will never see a spurious grub entry, which is the important thing) and the fact that it avoids the complexity of having tools/* rely in some way on xen/.config I think that is a worthwhile trade-off.
Hopefully this simplifies a bunch of the arguments we have been having and provides a path forwards?
Objections?
Doug, I think you have the majority of #1 and #3 already in some form or other? #2 is not on the critical path and can come later.
Ian.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Re: [xen-unstable test] 77945: regressions - FAIL [and 2 more messages]
Ian Campbell writes ("Re: [Xen-devel] [xen-unstable test] 77945: regressions - FAIL [and 2 more messages]"):
...
Quoted 6 lines
The only downside is a spurious
/boot/xenpolicy-$versioninstalled when the corresponding Xen binary doesn't support XSM, however given the assumption in #2 (which implies the user will never see a spurious grub entry, which is the important thing) and the fact that it avoids the complexity of havingtools/*rely in some way on xen/.config I think that is a worthwhile trade-off.
I like this plan and I think this downside is quite tolerable.
Ian.
Re: [xen-unstable test] 77945: regressions - FAIL [and 2 more messages]
In reply to Ian CampbellQuoted 43 lines
Quoted 1 line
Quoted 1 line · On 15.01.16 at 18:06, <[email protected]> wrote:
Quoted 3 lines · Ian Jackson
* I don't have a clear design proposal for the above but I think Doug can probably provide one. I'm hoping this is more a matter of thinking carefully than of extensive build system programming!
I think we should:
1) Move
/usr/lib/debug/xen-4.7-unstable.configto /boot. I previously didn't care about what path it was, but the usecase of having grub be able to react to the config (see below) is a strong reason to have it in /boot IMHO. Jan has said he won't veto such a change, AFAICT everyone else is happy with it.2) Assume that grub (specifically the patch in http://savannah.gnu.org/bugs
/?43420 and as used by osstest today) will at some point be modified to look at/boot/xenconfig-$versionto decide whether to create an XSM entry or not instead of the presence of/boot/xenpolicy-$version. This step belongs here logically but chronologically could come much later since osstest will do the right thing even if there is a spurious/boot/xenpolicy-$versionfile (which is to say it will ignore the spurious entry and boot the right thing).3) Have
tools/*always build the FLASK+XSM tools _and_ the FLASK policy and to always install both. Any related configure options can go away and we no longer need to worry about synchronising the configuration of the tools and xen trees, this is desirable because we would prefer to have one set of tools which gracefully handles differing hypervisor configurations over needing different sets of tools (FLASK+XSM was one of the few exceptions to that rule AFAICT).I think with this plan there is no need to modify osstest.git, since it already does the right thing (which is, it sets XSM for Xen builds, which in turn enables FLASK and it does nothing for
tools/*which is correct once #3 above has happened).The only downside is a spurious
/boot/xenpolicy-$versioninstalled when the corresponding Xen binary doesn't support XSM, however given the assumption in #2 (which implies the user will never see a spurious grub entry, which is the important thing) and the fact that it avoids the complexity of havingtools/*rely in some way on xen/.config I think that is a worthwhile trade-off.
Quoted 4 lines
Hopefully this simplifies a bunch of the arguments we have been having and provides a path forwards?
Objections?
My opinion on 1 and 2 is known; 3 seems like a good step to me.
Jan
Re: [xen-unstable test] 77945: regressions - FAIL [and 2 more messages]
Quoted 42 lines · Jan Beulich
Quoted 42 lines
Quoted 1 line
Quoted 1 line · On 15.01.16 at 18:06, <[email protected]> wrote:
Quoted 3 lines · Ian Jackson
* I don't have a clear design proposal for the above but I think Doug can probably provide one. I'm hoping this is more a matter of thinking carefully than of extensive build system programming!
I think we should:
1) Move
/usr/lib/debug/xen-4.7-unstable.configto /boot. I previously didn't care about what path it was, but the usecase of having grub be able to react to the config (see below) is a strong reason to have it in /boot IMHO. Jan has said he won't veto such a change, AFAICT everyone else is happy with it.2) Assume that grub (specifically the patch in http://savannah.gnu.org/bugs
/?43420 and as used by osstest today) will at some point be modified to look at/boot/xenconfig-$versionto decide whether to create an XSM entry or not instead of the presence of/boot/xenpolicy-$version. This step belongs here logically but chronologically could come much later since osstest will do the right thing even if there is a spurious/boot/xenpolicy-$versionfile (which is to say it will ignore the spurious entry and boot the right thing).3) Have
tools/*always build the FLASK+XSM tools _and_ the FLASK policy and to always install both. Any related configure options can go away and we no longer need to worry about synchronising the configuration of the tools and xen trees, this is desirable because we would prefer to have one set of tools which gracefully handles differing hypervisor configurations over needing different sets of tools (FLASK+XSM was one of the few exceptions to that rule AFAICT).I think with this plan there is no need to modify osstest.git, since it already does the right thing (which is, it sets XSM for Xen builds, which in turn enables FLASK and it does nothing for
tools/*which is correct once #3 above has happened).The only downside is a spurious
/boot/xenpolicy-$versioninstalled when the corresponding Xen binary doesn't support XSM, however given the assumption in #2 (which implies the user will never see a spurious grub entry, which is the important thing) and the fact that it avoids the complexity of havingtools/*rely in some way on xen/.config I think that is a worthwhile trade-off.
Quoted 5 lines
Quoted 4 lines
Hopefully this simplifies a bunch of the arguments we have been having and provides a path forwards?
Objections?
My opinion on 1 and 2 is known; 3 seems like a good step to me.
FWIW, I also prefer option 3. It lends itself better to a toolstack which functions in the same way, irrespective of hypervisor configuration.
~Andrew
Re: [xen-unstable test] 77945: regressions - FAIL [and 2 more messages]
Quoted 43 lines · Andrew Cooper
Quoted 42 lines · Jan Beulich
Quoted 42 lines
Quoted 1 line
Quoted 1 line · On 15.01.16 at 18:06, <[email protected]> wrote:
Quoted 3 lines · Ian Jackson
* I don't have a clear design proposal for the above but I think Doug can probably provide one. I'm hoping this is more a matter of thinking carefully than of extensive build system programming!
I think we should:
1) Move
/usr/lib/debug/xen-4.7-unstable.configto /boot. I previously didn't care about what path it was, but the usecase of having grub be able to react to the config (see below) is a strong reason to have it in /boot IMHO. Jan has said he won't veto such a change, AFAICT everyone else is happy with it.2) Assume that grub (specifically the patch in http://savannah.gnu.org/bugs
/?43420 and as used by osstest today) will at some point be modified to look at/boot/xenconfig-$versionto decide whether to create an XSM entry or not instead of the presence of/boot/xenpolicy-$version. This step belongs here logically but chronologically could come much later since osstest will do the right thing even if there is a spurious/boot/xenpolicy-$versionfile (which is to say it will ignore the spurious entry and boot the right thing).3) Have
tools/*always build the FLASK+XSM tools _and_ the FLASK policy and to always install both. Any related configure options can go away and we no longer need to worry about synchronising the configuration of the tools and xen trees, this is desirable because we would prefer to have one set of tools which gracefully handles differing hypervisor configurations over needing different sets of tools (FLASK+XSM was one of the few exceptions to that rule AFAICT).I think with this plan there is no need to modify osstest.git, since it already does the right thing (which is, it sets XSM for Xen builds, which in turn enables FLASK and it does nothing for
tools/*which is correct once #3 above has happened).The only downside is a spurious
/boot/xenpolicy-$versioninstalled when the corresponding Xen binary doesn't support XSM, however given the assumption in #2 (which implies the user will never see a spurious grub entry, which is the important thing) and the fact that it avoids the complexity of havingtools/*rely in some way on xen/.config I think that is a worthwhile trade-off.
Quoted 8 lines
Quoted 5 lines
Quoted 4 lines
Hopefully this simplifies a bunch of the arguments we have been having and provides a path forwards?
Objections?
My opinion on 1 and 2 is known; 3 seems like a good step to me.
FWIW, I also prefer option 3. It lends itself better to a toolstack which functions in the same way, irrespective of hypervisor configuration.
To be clear: These are not options, they are steps in a plan, to be followed in order.
Ian.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Re: [xen-unstable test] 77945: regressions - FAIL [and 2 more messages]
Quoted 48 lines
Quoted 1 line
Quoted 1 line · On 15.01.16 at 18:42, <[email protected]> wrote:
Quoted 46 lines · Andrew Cooper
Quoted 45 lines · Jan Beulich
Quoted 45 lines
Quoted 1 line
Quoted 1 line · On 15.01.16 at 18:06, <[email protected]> wrote:
Quoted 3 lines · Ian Jackson
* I don't have a clear design proposal for the above but I think Doug can probably provide one. I'm hoping this is more a matter of thinking carefully than of extensive build system programming!
I think we should:
1) Move
/usr/lib/debug/xen-4.7-unstable.configto /boot. I previously didn't care about what path it was, but the usecase of having grub be able to react to the config (see below) is a strong reason to have it in /boot IMHO. Jan has said he won't veto such a change, AFAICT everyone else is happy with it.2) Assume that grub (specifically the patch in http://savannah.gnu.org/bugs
/?43420 and as used by osstest today) will at some point be modified to look at/boot/xenconfig-$versionto decide whether to create an XSM entry or not instead of the presence of/boot/xenpolicy-$version. This step belongs here logically but chronologically could come much later since osstest will do the right thing even if there is a spurious/boot/xenpolicy-$versionfile (which is to say it will ignore the spurious entry and boot the right thing).3) Have
tools/*always build the FLASK+XSM tools _and_ the FLASK policy and to always install both. Any related configure options can go away and we no longer need to worry about synchronising the configuration of the tools and xen trees, this is desirable because we would prefer to have one set of tools which gracefully handles differing hypervisor configurations over needing different sets of tools (FLASK+XSM was one of the few exceptions to that rule AFAICT).I think with this plan there is no need to modify osstest.git, since it already does the right thing (which is, it sets XSM for Xen builds, which in turn enables FLASK and it does nothing for
tools/*which is correct once #3 above has happened).The only downside is a spurious
/boot/xenpolicy-$versioninstalled when the corresponding Xen binary doesn't support XSM, however given the assumption in #2 (which implies the user will never see a spurious grub entry, which is the important thing) and the fact that it avoids the complexity of havingtools/*rely in some way on xen/.config I think that is a worthwhile trade-off.Hopefully this simplifies a bunch of the arguments we have been having and provides a path forwards?
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
Quoted 1 line
Objections?
My opinion on 1 and 2 is known; 3 seems like a good step to me.
FWIW, I also prefer option 3. It lends itself better to a toolstack which functions in the same way, irrespective of hypervisor configuration.
To be clear: These are not options, they are steps in a plan, to be followed in order.
"Not options" - indeed, but "in order"? At least 3 seems independent of both 1 and 2.
Jan
Re: [xen-unstable test] 77945: regressions - FAIL [and 2 more messages]
Quoted 48 lines · Jan Beulich
Quoted 48 lines
Quoted 1 line
Quoted 1 line · On 15.01.16 at 18:42, <[email protected]> wrote:
Quoted 46 lines · Andrew Cooper
Quoted 45 lines · Jan Beulich
Quoted 45 lines
Quoted 1 line
Quoted 1 line · On 15.01.16 at 18:06, <[email protected]> wrote:
Quoted 3 lines · Ian Jackson
* I don't have a clear design proposal for the above but I think Doug can probably provide one. I'm hoping this is more a matter of thinking carefully than of extensive build system programming!
I think we should:
1) Move
/usr/lib/debug/xen-4.7-unstable.configto /boot. I previously didn't care about what path it was, but the usecase of having grub be able to react to the config (see below) is a strong reason to have it in /boot IMHO. Jan has said he won't veto such a change, AFAICT everyone else is happy with it.2) Assume that grub (specifically the patch in http://savannah.gnu.org/bugs
/?43420 and as used by osstest today) will at some point be modified to look at/boot/xenconfig-$versionto decide whether to create an XSM entry or not instead of the presence of/boot/xenpolicy-$version. This step belongs here logically but chronologically could come much later since osstest will do the right thing even if there is a spurious/boot/xenpolicy-$versionfile (which is to say it will ignore the spurious entry and boot the right thing).3) Have
tools/*always build the FLASK+XSM tools _and_ the FLASK policy and to always install both. Any related configure options can go away and we no longer need to worry about synchronising the configuration of the tools and xen trees, this is desirable because we would prefer to have one set of tools which gracefully handles differing hypervisor configurations over needing different sets of tools (FLASK+XSM was one of the few exceptions to that rule AFAICT).I think with this plan there is no need to modify osstest.git, since it already does the right thing (which is, it sets XSM for Xen builds, which in turn enables FLASK and it does nothing for
tools/*which is correct once #3 above has happened).The only downside is a spurious
/boot/xenpolicy-$versioninstalled when the corresponding Xen binary doesn't support XSM, however given the assumption in #2 (which implies the user will never see a spurious grub entry, which is the important thing) and the fact that it avoids the complexity of havingtools/*rely in some way on xen/.config I think that is a worthwhile trade-off.Hopefully this simplifies a bunch of the arguments we have been having and provides a path forwards?
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
Quoted 1 line
Objections?
My opinion on 1 and 2 is known; 3 seems like a good step to me.
FWIW, I also prefer option 3. It lends itself better to a toolstack which functions in the same way, irrespective of hypervisor configuration.
To be clear: These are not options, they are steps in a plan, to be followed in order.
"Not options" - indeed, but "in order"? At least 3 seems independent of both 1 and 2.
3 is required to unblock OSSTest and needs to happen ASAP.
That is the absolute priority at this point.
~Andrew
Re: [xen-unstable test] 77945: regressions - FAIL [and 2 more messages]
In reply to Jan BeulichQuoted 83 lines · Jan Beulich
Quoted 83 lines
Quoted 1 line
Quoted 1 line · On 15.01.16 at 18:42, <[email protected]> wrote:
Quoted 80 lines · Andrew Cooper
Quoted 69 lines · Jan Beulich
Quoted 69 lines
Quoted 1 line
Quoted 1 line · On 15.01.16 at 18:06, <[email protected]> wrote:
Quoted 6 lines · Ian Jackson
* I don't have a clear design proposal for the above but I think Doug
can probably provide one. I'm hoping this is more a matter of
thinking carefully than of extensive build system programming!I think we should:
1) Move
/usr/lib/debug/xen-4.7-unstable.configto /boot. I previously
didn't care about what path it was, but the usecase of having grub be able
to react to the config (see below) is a strong reason to have it in /boot
IMHO. Jan has said he won't veto such a change, AFAICT everyone else is
happy with it.2) Assume that grub (specifically the patch in http://savannah.gn
u.org/bugs
/?43420 and as used by osstest today) will at some point be modified to
look at/boot/xenconfig-$versionto decide whether to create an XSM entry
or not instead of the presence of/boot/xenpolicy-$version. This step
belongs here logically but chronologically could come much later since
osstest will do the right thing even if there is a spurious/boot/xenpolicy-$versionfile (which is to say it will ignore the spurious
entry and boot the right thing).3) Have
tools/*always build the FLASK+XSM tools _and_ the FLASK policy and
to always install both. Any related configure options can go away and we no
longer need to worry about synchronising the configuration of the tools and
xen trees, this is desirable because we would prefer to have one set of
tools which gracefully handles differing hypervisor configurations over
needing different sets of tools (FLASK+XSM was one of the few exceptions to
that rule AFAICT).I think with this plan there is no need to modify osstest.git, since it
already does the right thing (which is, it sets XSM for Xen builds, which
in turn enables FLASK and it does nothing fortools/*which is correct once
#3 above has happened).The only downside is a spurious
/boot/xenpolicy-$versioninstalled when the
corresponding Xen binary doesn't support XSM, however given the assumption
in #2 (which implies the user will never see a spurious grub entry, which
is the important thing) and the fact that it avoids the complexity of
havingtools/*rely in some way on xen/.config I think that is a worthwhile
trade-off.Quoted 6 lines
Quoted 5 lines
Hopefully this simplifies a bunch of the arguments we have been having and
provides a path forwards?Objections?
My opinion on 1 and 2 is known; 3 seems like a good step to me.
FWIW, I also prefer option 3. It lends itself better to a toolstack which functions in the same way, irrespective of hypervisor configuration.
Quoted 5 lines
Quoted 2 lines
To be clear: These are not options, they are steps in a plan, to be followed in order.
"Not options" - indeed, but "in order"? At least 3 seems independent of both 1 and 2.
Without #1 we cannot make the assumption in #2.
Without (the assumption of eventually doing) #2 we cannot do #3 because that would result in spurious boot menu entries for users (i.e. ones which claim to enable XSM but boot an XSM incapable Xen) which several of us feel we should avoid.
Ian.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Re: [xen-unstable test] 77945: regressions - FAIL [and 2 more messages]
Quoted 91 lines
Quoted 1 line
Quoted 1 line · On 18.01.16 at 10:41, <[email protected]> wrote:
Quoted 83 lines · Jan Beulich
Quoted 83 lines
Quoted 1 line
Quoted 1 line · On 15.01.16 at 18:42, <[email protected]> wrote:
Quoted 80 lines · Andrew Cooper
Quoted 69 lines · Jan Beulich
Quoted 69 lines
Quoted 1 line
Quoted 1 line · On 15.01.16 at 18:06, <[email protected]> wrote:
Quoted 6 lines · Ian Jackson
* I don't have a clear design proposal for the above but I
think Doug
can probably provide one. I'm hoping this is more a matter
of
thinking carefully than of extensive build system
programming!I think we should:
1) Move
/usr/lib/debug/xen-4.7-unstable.configto /boot. I previously
didn't care about what path it was, but the usecase of having grub be able
to react to the config (see below) is a strong reason to have it in /boot
IMHO. Jan has said he won't veto such a change, AFAICT everyone else is
happy with it.2) Assume that grub (specifically the patch in http://savannah.gn
u.org/bugs
/?43420 and as used by osstest today) will at some point be modified to
look at/boot/xenconfig-$versionto decide whether to create an XSM entry
or not instead of the presence of/boot/xenpolicy-$version. This step
belongs here logically but chronologically could come much later since
osstest will do the right thing even if there is a spurious/boot/xenpolicy-$versionfile (which is to say it will ignore the spurious
entry and boot the right thing).3) Have
tools/*always build the FLASK+XSM tools _and_ the FLASK policy and
to always install both. Any related configure options can go away and we no
longer need to worry about synchronising the configuration of the tools and
xen trees, this is desirable because we would prefer to have one set of
tools which gracefully handles differing hypervisor configurations over
needing different sets of tools (FLASK+XSM was one of the few exceptions to
that rule AFAICT).I think with this plan there is no need to modify osstest.git, since it
already does the right thing (which is, it sets XSM for Xen builds, which
in turn enables FLASK and it does nothing fortools/*which is correct once
#3 above has happened).The only downside is a spurious
/boot/xenpolicy-$versioninstalled when the
corresponding Xen binary doesn't support XSM, however given the assumption
in #2 (which implies the user will never see a spurious grub entry, which
is the important thing) and the fact that it avoids the complexity of
havingtools/*rely in some way on xen/.config I think that is a worthwhile
trade-off.Quoted 6 lines
Quoted 5 lines
Hopefully this simplifies a bunch of the arguments we have been having and
provides a path forwards?Objections?
My opinion on 1 and 2 is known; 3 seems like a good step to me.
FWIW, I also prefer option 3. It lends itself better to a toolstack which functions in the same way, irrespective of hypervisor configuration.
Quoted 5 lines
Quoted 2 lines
To be clear: These are not options, they are steps in a plan, to be followed in order.
"Not options" - indeed, but "in order"? At least 3 seems independent of both 1 and 2.
Quoted 6 lines
Without #1 we cannot make the assumption in #2.
Without (the assumption of eventually doing) #2 we cannot do #3 because that would result in spurious boot menu entries for users (i.e. ones which claim to enable XSM but boot an XSM incapable Xen) which several of us feel we should avoid.
Ugly. Could we live with that until #1 and #2 get put in place? Otherwise it looks very much like reverting the two Kconfig conversion patches is the only possible solution at this point...
Jan
Re: [xen-unstable test] 77945: regressions - FAIL [and 2 more messages]
Quoted 1 line · Jan Beulich
Ugly. Could we live with that until #1 and #2 get put in place?
#1 is trivial (see below).
#2 is, as noted in my original mail, something which while it logically belongs between #1 and #3 could be deferred.
Quoted 2 lines
Otherwise it looks very much like reverting the two
Kconfigconversion patches is the only possible solution at this point...
IMHO we should apply the patch below + Doug's patch from <1452879580-1770-1 [email protected]> today at the latest.
Ian.
8<-------------------------------
From 011f218e11972c6cea7d4c5f11f0559bef337085 Mon Sep 17 00:00:00 2001
From: Ian Campbell <[email protected]>
Date: Mon, 18 Jan 2016 11:19:27 +0000
Subject: [PATCH] xen: move installed copy of xen/.config file to /boot
---
xen/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
xen/Makefile +0 -0
@@ -58,7 +58,7 @@ _install: $(TARGET)$(CONFIG_XEN_INSTALL_SUFFIX)
ln -f -s $(T)-$(XEN_FULLVERSION)$(Z) $(D)$(BOOT_DIR)/$(T)$(Z)
[ -d "$(D)$(DEBUG_DIR)" ] || $(INSTALL_DIR) $(D)$(DEBUG_DIR) $(INSTALL_DATA) $(TARGET)-syms $(D)$(DEBUG_DIR)/$(T)-syms-$(XEN_FULLVERSION)
- $(INSTALL_DATA) $(KCONFIG_CONFIG) $(D)$(DEBUG_DIR)/$(T)-$(XEN_FULLVERSION).config
+ $(INSTALL_DATA) $(KCONFIG_CONFIG) $(D)$(BOOT_DIR)/$(T)-$(XEN_FULLVERSION).config
if [ -r $(TARGET).efi -a -n '$(EFI_DIR)' ]; then \
[ -d $(D)$(EFI_DIR) ] || $(INSTALL_DIR) $(D)$(EFI_DIR); \
$(INSTALL_DATA) $(TARGET).efi $(D)$(EFI_DIR)/$(T)-$(XEN_FULLVERSION).efi; \
Signature · 7 lines
2.1.4 _______________________________________________ Xen-devel mailing list [email protected] http://lists.xen.org/xen-devel
Ian Jackson
Acked-byRe: [xen-unstable test] 77945: regressions - FAIL [and 2 more messages]
Ian Campbell writes ("Re: [Xen-devel] [xen-unstable test] 77945: regressions - FAIL [and 2 more messages]"):
Quoted 4 lines · Jan Beulich
Quoted 1 line
Ugly. Could we live with that until #1 and #2 get put in place?
#1 is trivial (see below).
Quoted 7 lines
#2 is, as noted in my original mail, something which while it logically belongs between #1 and #3 could be deferred.
Quoted 2 lines
Otherwise it looks very much like reverting the two
Kconfigconversion patches is the only possible solution at this point...IMHO we should apply the patch below + Doug's patch from <1452879580-1770-1 [email protected]> today at the latest.
FR, this latter message is "tools: make FLASK utils build unconditional".
With these, is osstest going to DTRT ?
My fear is that the appearance of the policy will cause non-XSM builds to generate an XSM boot entry which will osstest might select. But I haven't peered at the interlocking bits of code to see what will happen.
Ian.
Re: [xen-unstable test] 77945: regressions - FAIL [and 2 more messages]
Quoted 8 lines · Ian Jackson
Ian Campbell writes ("Re: [Xen-devel] [xen-unstable test] 77945:
regressions - FAIL [and 2 more messages]"):Quoted 4 lines · Jan Beulich
Quoted 1 line
Ugly. Could we live with that until #1 and #2 get put in place?
#1 is trivial (see below).
Acked-by Ian Jackson <[email protected]>
Thanks.
Quoted 6 lines
Quoted 6 lines
#2 is, as noted in my original mail, something which while it logically belongs between #1 and #3 could be deferred.
Quoted 2 lines
Otherwise it looks very much like reverting the two
Kconfigconversion patches is the only possible solution at this point...
Quoted 8 lines
Quoted 3 lines
IMHO we should apply the patch below + Doug's patch from <1452879580- 1770-1
[email protected]> today at the latest.FR, this latter message is "tools: make FLASK utils build unconditional".
With these, is osstest going to DTRT ?
I think so.
Quoted 4 lines
My fear is that the appearance of the policy will cause non-XSM builds to generate an XSM boot entry which will osstest might select. But I haven't peered at the interlocking bits of code to see what will happen.
Osstest::Debian::setupboot_grub2 takes a "$want_xsm" parameter and has code:
} elsif ($want_xsm && !defined $entry->{Xenpolicy}) { logm("(skipping entry at $entry->{StartLine}..$.;". " XSM policy file not present)");
which isn't quite what I expected, as it solves half the problem (booting a non-XSM Xen when Xsm is desired) I think.
I think we'd want to add another case like:
} elsif (!$want_xsm && defined $entry->{Xenpolicy}) {
logm("(skipping entry at $entry->{StartLine}..$.;".
" XSM policy file present)");
?
However I don't think this is urgent (i.e. blocking) since, as it happens (and due to the way 20_linux_xen is patched), the non-XSM entry always precedes the XSM one, so a non-XSM test would find that first and stop looking.
So I think we can go ahead and I will turn the above into an osstest patch in parallel.
Ian.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Re: [xen-unstable test] 77945: regressions - FAIL [and 2 more messages]
Quoted 35 lines · Ian Campbell
Quoted 8 lines · Ian Jackson
Ian Campbell writes ("Re: [Xen-devel] [xen-unstable test] 77945:
regressions - FAIL [and 2 more messages]"):Quoted 4 lines · Jan Beulich
Quoted 1 line
Ugly. Could we live with that until #1 and #2 get put in place?
#1 is trivial (see below).
Acked-by Ian Jackson <[email protected]>Thanks.
Quoted 7 lines
Quoted 7 lines
#2 is, as noted in my original mail, something which while it logically
belongs between #1 and #3 could be deferred.Quoted 2 lines
Otherwise it looks very much like reverting the two
Kconfigconversion patches is the only possible solution at this point...Quoted 8 lines
Quoted 3 lines
IMHO we should apply the patch below + Doug's patch from <1452879580- 1770-1
[email protected]> today at the latest.FR, this latter message is "tools: make FLASK utils build unconditional".
With these, is osstest going to DTRT ?
I think so.
Quoted 4 lines
My fear is that the appearance of the policy will cause non-XSM builds to generate an XSM boot entry which will osstest might select. But I haven't peered at the interlocking bits of code to see what will happen.
[...]
Quoted 2 lines
So I think we can go ahead and I will turn the above into an osstest patch in parallel.
Ian was convinced by my argumentation here (and told me so on IRC) so I have gone ahead and pushed this and acked + applied Doug's patch too.
Ian.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Re: [xen-unstable test] 77945: regressions - FAIL [and 2 more messages]
In reply to Ian CampbellQuoted 45 lines · Ian Campbell
Quoted 3 lines · Ian Jackson
* I don't have a clear design proposal for the above but I think Doug can probably provide one. I'm hoping this is more a matter of thinking carefully than of extensive build system programming!
I think we should:
1) Move
/usr/lib/debug/xen-4.7-unstable.configto /boot. I previously didn't care about what path it was, but the usecase of having grub be able to react to the config (see below) is a strong reason to have it in /boot IMHO. Jan has said he won't veto such a change, AFAICT everyone else is happy with it.2) Assume that grub (specifically the patch in http://savannah.gnu.org/bugs
/?43420 and as used by osstest today) will at some point be modified to look at/boot/xenconfig-$versionto decide whether to create an XSM entry or not instead of the presence of/boot/xenpolicy-$version. This step belongs here logically but chronologically could come much later since osstest will do the right thing even if there is a spurious/boot/xenpolicy-$versionfile (which is to say it will ignore the spurious entry and boot the right thing).3) Have
tools/*always build the FLASK+XSM tools _and_ the FLASK policy and to always install both. Any related configure options can go away and we no longer need to worry about synchronising the configuration of the tools and xen trees, this is desirable because we would prefer to have one set of tools which gracefully handles differing hypervisor configurations over needing different sets of tools (FLASK+XSM was one of the few exceptions to that rule AFAICT).I think with this plan there is no need to modify osstest.git, since it already does the right thing (which is, it sets XSM for Xen builds, which in turn enables FLASK and it does nothing for
tools/*which is correct once #3 above has happened).The only downside is a spurious
/boot/xenpolicy-$versioninstalled when the corresponding Xen binary doesn't support XSM, however given the assumption in #2 (which implies the user will never see a spurious grub entry, which is the important thing) and the fact that it avoids the complexity of havingtools/*rely in some way on xen/.config I think that is a worthwhile trade-off.Hopefully this simplifies a bunch of the arguments we have been having and provides a path forwards?
Quoted 7 lines
Objections?
Doug, I think you have the majority of #1 and #3 already in some form or other? #2 is not on the critical path and can come later.
Ian.
Yes. No objections here. Yes I've submitted a patch for #1 and #3 earlier. They'll need to be rebased but that's easy.
Signature · 1 line
Doug Goldstein
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
PATCH 1/1 pass --{enable, disable}-xsmpolicy based on XSM state
If the test should build with XSM then supply --enable-xsmpolicy to the tools/configure script otherwise provide --disable-xsmpolicy. This will allow the default to change from --enable-xsmpolicy to --disable-xsmpolicy in the Xen tree without breaking OSSTest.
--- ts-xen-build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
ts-xen-build +5 -1
@@ -111,6 +111,7 @@ END sub build () { my $xend_opt= $r{enable_xend} =~ m/true/ ? "--enable-xend" : "--disable-xend"; my $ovmf_opt= $r{enable_ovmf} =~ m/true/ ? "--enable-ovmf" : "--disable-ovmf"; + my $xsm_opt= $r{enable_xsm} =~ m/true/ ? "--enable-xsmpolicy" : "--disable-xsmpolicy"; my $configure_prefix = $r{cmdprefix_configure} // ''; my $make_prefix = $r{cmdprefix_make} // '';
@@ -123,8 +124,11 @@ sub build () { if grep -q -- $ovmf_opt tools/configure ; then ovmf=$ovmf_opt fi + if grep -q -- $xsm_opt tools/configure ; then + xsm=$xsm_opt + fi END - $configure_prefix ./configure --sysconfdir=/etc \$xend \$ovmf + $configure_prefix ./configure --sysconfdir=/etc \$xend \$ovmf \$xsm END fi END
Signature · 1 line
2.4.10
Re: [OSSTEST PATCH] pass --{enable, disable}-xsmpolicy based on XSM state
Quoted 26 lines · Doug Goldstein
If the test should build with XSM then supply --enable-xsmpolicy to the
tools/configurescript otherwise provide --disable-xsmpolicy. This will allow the default to change from --enable-xsmpolicy to --disable-xsmpolicy in the Xen tree without breaking OSSTest.Signed-off-by Doug Goldstein <[email protected]>--- ts-xen-build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)ts-xen-build +1
-0@@ -111,6 +111,7 @@ END sub build () { my $xend_opt= $r{enable_xend} =~ m/true/ ? "--enable-xend" : "--disable-xend"; my $ovmf_opt= $r{enable_ovmf} =~ m/true/ ? "--enable-ovmf" : "--disable-ovmf"; + my $xsm_opt= $r{enable_xsm} =~ m/true/ ? "--enable-xsmpolicy" : "--disable-xsmpolicy"; my $configure_prefix = $r{cmdprefix_configure} // ''; my $make_prefix = $r{cmdprefix_make} // '';@@ -123,8 +124,11 @@ sub build () { if grep -q -- $ovmf_opt tools/configure ; then ovmf=$ovmf_opt
ts-xen-build sub build () { · line 134
Quoted 10 lines
ts-xen-build +4
-1fi + if grep -q -- $xsm_opt tools/configure ; then + xsm=$xsm_opt + fi END - $configure_prefix ./configure --sysconfdir=/etc \$xend \$ovmf + $configure_prefix ./configure --sysconfdir=/etc \$xend \$ovmf \$xsm END fi END
So this patch should definitely wait until a direction is selected on the other submitted XSM/FLASK patches for the tools.
Signature · 1 line
Doug Goldstein
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Re: [OSSTEST PATCH] pass --{enable, disable}-xsmpolicy based on XSM state
In reply to Doug GoldsteinQuoted 26 lines · Doug Goldstein
If the test should build with XSM then supply --enable-xsmpolicy to the
tools/configurescript otherwise provide --disable-xsmpolicy. This will allow the default to change from --enable-xsmpolicy to --disable-xsmpolicy in the Xen tree without breaking OSSTest.Signed-off-by Doug Goldstein <[email protected]>--- ts-xen-build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)ts-xen-build +1
-0@@ -111,6 +111,7 @@ END sub build () { my $xend_opt= $r{enable_xend} =~ m/true/ ? "--enable-xend" : "--disable-xend"; my $ovmf_opt= $r{enable_ovmf} =~ m/true/ ? "--enable-ovmf" : "--disable-ovmf"; + my $xsm_opt= $r{enable_xsm} =~ m/true/ ? "--enable-xsmpolicy" : "--disable-xsmpolicy"; my $configure_prefix = $r{cmdprefix_configure} // ''; my $make_prefix = $r{cmdprefix_make} // '';@@ -123,8 +124,11 @@ sub build () { if grep -q -- $ovmf_opt tools/configure ; then ovmf=$ovmf_opt
ts-xen-build sub build () { · line 134
Quoted 10 lines
ts-xen-build +4
-1fi + if grep -q -- $xsm_opt tools/configure ; then + xsm=$xsm_opt + fi END - $configure_prefix ./configure --sysconfdir=/etc \$xend \$ovmf + $configure_prefix ./configure --sysconfdir=/etc \$xend \$ovmf \$xsm END fi END
Given the support of the maintainers and committers for the proposal [1], this patch should NOT be applied.
[1]
http://lists.xenproject.org/archives/html/xen-devel/2016-01/msg01796.html
Signature · 1 line
Doug Goldstein
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
PATCH 1/1 enable FLASK_ENABLE when using it for testing
Currently OSSTest has 'XSM' tests but XSM and FLASK are two different options and OSSTests's 'XSM' test depends on FLASK so ensure that FLASK is enabled so that tests pass.
--- ts-xen-build | 1 + 1 file changed, 1 insertion(+)
ts-xen-build +1 -0
@@ -60,6 +60,7 @@ END echo >>xen/.config CONFIG_FLASK='${build_xsm}' fi echo >>.config XSM_ENABLE='${build_xsm}' + echo >>.config FLASK_ENABLE='${build_xsm}' END (nonempty($r{tree_qemu}) ? <<END : ''). echo >>.config QEMU_REMOTE='$r{tree_qemu}'
Signature · 1 line
2.4.10
Re: [OSSTEST PATCH] enable FLASK_ENABLE when using it for testing
Quoted 3 lines · Doug Goldstein
Currently OSSTest has 'XSM' tests but XSM and FLASK are two different options and OSSTests's 'XSM' test depends on FLASK so ensure that FLASK is enabled so that tests pass.
IMHO the xen/Kconfig should be arranged such that if XSM is enabled then FLASK is on by default. Having XSM but not Flask as what happens if you enable XSM isn't helpful.
However, xen/common/Kconfig already has "default y" and "depends XSM" for the FLASK entry, which I would have said was what was required to behave as I suggest.
So why isn't it I wonder?
After a plain "make -C xen defconfig" I end up with a xen/.config containing "CONFIG_XSM is not set" and no mention of CONFIG_FLASK (as expected, due to the depends).
Adding CONFIG_XSM=y to the end of xen/.config and running "make -C xen oldconfig" I then get asked:
FLux Advanced Security Kernel support (FLASK) [Y/n/?] (NEW)
IOW it does appear to be defaulting to on (I also get asked about LATE_HWDOM).
osstest uses "olddefconfig", and with:
$ make -C xen olddefconfig $ echo 'CONFIG_XSM=y' >> xen/.config $ make -C xen olddefconfig
I end up with both XSM and FLASK enabled:
$ grep -E XSM\|FLASK xen/.config CONFIG_FLASK=y CONFIG_XSM=y
which is what we want and is expected etc. Looking at the results of the latest xen-unstable http://logs.test-lab.xenproject.org/osstest/logs/77945/
and specifically at
http://logs.test-lab.xenproject.org/osstest/logs/77945/build-amd64-xsm/build/xen-hv-config
it seems that the automated version is doing what is expected too. IOW this patch is both unnecessary (since it already works) and wrong (since it is working how we want it to) and the issue exhibited by the test cases in 77945 is something different.
Ian.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Re: [OSSTEST PATCH] enable FLASK_ENABLE when using it for testing
Quoted 8 lines · Ian Campbell
Quoted 3 lines · Doug Goldstein
Currently OSSTest has 'XSM' tests but XSM and FLASK are two different options and OSSTests's 'XSM' test depends on FLASK so ensure that FLASK is enabled so that tests pass.
IMHO the xen/Kconfig should be arranged such that if XSM is enabled then FLASK is on by default. Having XSM but not Flask as what happens if you enable XSM isn't helpful.
That is how its setup. But a test framework should be explicit over implicit over behaviors.
Quoted 6 lines
However, xen/common/Kconfig already has "default y" and "depends XSM" for the FLASK entry, which I would have said was what was required to behave as I suggest.
So why isn't it I wonder?
It is. If the test framework enabled FLASK since its testing FLASK then I would agree with you. I'd actually argue that my patch didn't go far enough and change all the places to FLASK instead of XSM.
Quoted 34 lines
After a plain "make -C xen defconfig" I end up with a xen/.config containing "
CONFIG_XSMis not set" and no mention ofCONFIG_FLASK(as expected, due to the depends).Adding
CONFIG_XSM=yto the end of xen/.config and running "make -C xen oldconfig" I then get asked:FLux Advanced Security Kernel support (FLASK) [Y/n/?] (NEW)
IOW it does appear to be defaulting to on (I also get asked about
LATE_HWDOM).osstest uses "olddefconfig", and with:
$ make -C xen olddefconfig $ echo 'CONFIG_XSM=y' >> xen/.config $ make -C xen olddefconfigI end up with both XSM and FLASK enabled:
$ grep -E XSM\|FLASK xen/.config CONFIG_FLASK=y CONFIG_XSM=ywhich is what we want and is expected etc. Looking at the results of the latest xen-unstable http://logs.test-lab.xenproject.org/osstest/logs/77945/
and specifically at
http://logs.test-lab.xenproject.org/osstest/logs/77945/build-amd64-xsm/build/xen-hv-config
it seems that the automated version is doing what is expected too. IOW this patch is both unnecessary (since it already works) and wrong (since it is working how we want it to) and the issue exhibited by the test cases in 77945 is something different.
Quoted 2 lines
Ian.
This patch is for the tooling. The point of the patch is to be explicit over implicit defaults. FLASK depends on XSM. The test framework tests FLASK. It was relying on the behavior that FLASK is defaulted to enabled when XSM is enabled but if it wants to test FLASK it should turn on FLASK.
Signature · 1 line
Doug Goldstein
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Re: [OSSTEST PATCH] enable FLASK_ENABLE when using it for testing
In reply to Doug GoldsteinQuoted 15 lines · Doug Goldstein
Currently OSSTest has 'XSM' tests but XSM and FLASK are two different options and OSSTests's 'XSM' test depends on FLASK so ensure that FLASK is enabled so that tests pass.
Signed-off-by Doug Goldstein <[email protected]>--- ts-xen-build | 1 + 1 file changed, 1 insertion(+)ts-xen-build +0
-0
ts-xen-build END · line 66
Quoted 7 lines
ts-xen-build +1
-0@@ -60,6 +60,7 @@ END echo >>xen/.config CONFIG_FLASK='${build_xsm}' fi echo >>.config XSM_ENABLE='${build_xsm}' + echo >>.config FLASK_ENABLE='${build_xsm}' END (nonempty($r{tree_qemu}) ? <<END : ''). echo >>.config QEMU_REMOTE='$r{tree_qemu}'
Given the support of the maintainers and committers for the proposal [1], this patch should NOT be applied.
[1]
http://lists.xenproject.org/archives/html/xen-devel/2016-01/msg01796.html
Signature · 1 line
Doug Goldstein
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel