xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [OSSTEST PATCH RFC v1 00/12] XSM test cases for OSSTest
@ 2014-09-22 14:11 Wei Liu
  2014-09-22 14:11 ` [OSSTEST PATCH RFC v1 01/12] README: list chiark-utils-bin as requirement Wei Liu
                   ` (12 more replies)
  0 siblings, 13 replies; 27+ messages in thread
From: Wei Liu @ 2014-09-22 14:11 UTC (permalink / raw)
  To: xen-devel; +Cc: Wei Liu, dgdegra, ian.jackson, ian.campbell

Hi all

This patch series attempts to duplicate some Debian smoke test for XSM in Xen.

Tests duplicated:
  build-{i386,amd64,armhf}-xsm
  test-amd64-{i386,amd64}-xl-xsm
  test-armhf-armhf-xl-xsm
  test-amd64-{i386,amd64}-xl-qemuu-debianhvm-amd64-xsm
  test-amd64-(i386,amd64}-xl-qemut-debianhvm-amd64-xsm

There are several loose ends, hence the RFC tag. I will list them one by one.

1. XSM policy naming convention

There's not yet an official naming convention for XSM policy. We need this to
propose changes to upstream GRUB. Daniel suggested one naming convention and it 
can be found at <1410809355-24471-1-git-send-email-wei.liu2@citrix.com>.

2. GRUB doesn't support adding in XSM policy module

This is currently being addressed by our customized patch. I will file a bug
report, with my patch attached to upstream GRUB. Ideally Debian will pick up
the change in some future release, then we can remove that patch from OSSTest
when OSSTest migrates to that release.

3. Uboot changes have not been tested, ARM related tests have not been run

I don't have ARM test infrastructure at hand.

4. In-tree default policy is too strict

For PV guest test case, it can successfully create a guest, but fails at
saving. Xen log says "permission denied".

For QEMU upstream HVM guest, QEMU segfaults with NULL pointer dereference. 

For QEMU traditional HVM guest, guest crashes with triple fault.

I have yet tried to debug HVM test cases. Presumably the failures are combined
effect of the enforced XSM policy and some QEMU bugs. It's likely to take some
time to figure out what went wrong. The bug fix and policy tuning is orthogonal
to the test case itself though.

Wei.

Wei Liu (12):
  README: list chiark-utils-bin as requirement
  gitignore: ignore images directory
  ts-xen-build-prep: install checkpolicy
  ts-xen-build: build with XSM support if requested
  mfi-common: create build-$arch-xsm job
  Debian.pm: pass in XSM configuration to bootloader setup routines
  Debian.pm: load flask policy in uboot
  ts-xen-install: install Xen with XSM support if requested
  mfi-common: use XSM build if job name contains -xsm suffix
  make-flight: create XSM test jobs
  ts-debian-install: add in seclabel if XSM is enabled
  ts-debian-hvm-install: add in seclabel if XSM is enabled

 .gitignore            |    1 +
 Osstest/Debian.pm     |   50 ++++++++++++++++++-----
 README                |    1 +
 make-flight           |   35 ++++++++++++++--
 mfi-common            |   38 ++++++++++++++++++
 ts-debian-hvm-install |   14 +++++--
 ts-debian-install     |   11 ++++-
 ts-xen-build          |    2 +
 ts-xen-build-prep     |    2 +-
 ts-xen-install        |  106 ++++++++++++++++++++++++++++++++++++++++++++++++-
 10 files changed, 238 insertions(+), 22 deletions(-)

-- 
1.7.10.4

^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2014-09-24 13:55 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-22 14:11 [OSSTEST PATCH RFC v1 00/12] XSM test cases for OSSTest Wei Liu
2014-09-22 14:11 ` [OSSTEST PATCH RFC v1 01/12] README: list chiark-utils-bin as requirement Wei Liu
2014-09-22 14:11 ` [OSSTEST PATCH RFC v1 02/12] gitignore: ignore images directory Wei Liu
2014-09-22 14:11 ` [OSSTEST PATCH RFC v1 03/12] ts-xen-build-prep: install checkpolicy Wei Liu
2014-09-22 14:11 ` [OSSTEST PATCH RFC v1 04/12] ts-xen-build: build with XSM support if requested Wei Liu
2014-09-22 14:11 ` [OSSTEST PATCH RFC v1 05/12] mfi-common: create build-$arch-xsm job Wei Liu
2014-09-24 10:38   ` Ian Campbell
2014-09-24 13:24     ` Wei Liu
2014-09-22 14:11 ` [OSSTEST PATCH RFC v1 06/12] Debian.pm: pass in XSM configuration to bootloader setup routines Wei Liu
2014-09-22 14:11 ` [OSSTEST PATCH RFC v1 07/12] Debian.pm: load flask policy in uboot Wei Liu
2014-09-24 10:39   ` Ian Campbell
2014-09-22 14:11 ` [OSSTEST PATCH RFC v1 08/12] ts-xen-install: install Xen with XSM support if requested Wei Liu
2014-09-24 10:41   ` Ian Campbell
2014-09-24 13:16     ` Wei Liu
2014-09-24 13:21       ` Wei Liu
2014-09-24 13:47         ` Ian Campbell
2014-09-24 13:55           ` Wei Liu
2014-09-22 14:11 ` [OSSTEST PATCH RFC v1 09/12] mfi-common: use XSM build if job name contains -xsm suffix Wei Liu
2014-09-22 14:11 ` [OSSTEST PATCH RFC v1 10/12] make-flight: create XSM test jobs Wei Liu
2014-09-24 11:00   ` Ian Campbell
2014-09-24 13:24     ` Wei Liu
2014-09-22 14:12 ` [OSSTEST PATCH RFC v1 11/12] ts-debian-install: add in seclabel if XSM is enabled Wei Liu
2014-09-24 11:01   ` Ian Campbell
2014-09-24 13:14     ` Wei Liu
2014-09-24 13:45       ` Ian Campbell
2014-09-22 14:12 ` [OSSTEST PATCH RFC v1 12/12] ts-debian-hvm-install: " Wei Liu
2014-09-22 20:23 ` [OSSTEST PATCH RFC v1 00/12] XSM test cases for OSSTest Daniel De Graaf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).