From: Rich Persaud Subject: Re: Xen and safety certification, Minutes of the meeting on Apr 4th Date: Sat, 12 May 2018 13:38:36 -0400 Message-ID: <49358881-974F-4949-8FF7-9B0F804A9632@gmail.com> References: <5D69D457-6EAB-4FF9-AF94-3D818F9035EC@citrix.com> <4d359a64b6bc43b9a489a0754c4b4ae8@dornerworks.com> <999c02cc-31b1-c404-7f88-84789c0d84b0@epam.com> <78c07b55-c301-598e-3894-009f2bdda1ac@arm.com> Mime-Version: 1.0 (1.0) Content-Type: multipart/mixed; boundary="===============2568748233628509131==" Return-path: Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1fHYTf-0008KE-Ln for xen-devel@lists.xenproject.org; Sat, 12 May 2018 17:38:39 +0000 Received: by mail-qk0-x235.google.com with SMTP id d125-v6so6917271qkb.8 for ; Sat, 12 May 2018 10:38:38 -0700 (PDT) In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" To: Stefano Stabellini Cc: Artem Mygaiev , Lars Kurth , Davorin Mista , "Edgar E. Iglesias" , dgdegra@tycho.nsa.gov, paul_luperto@prqa.com, Denys Balatsko , julien.grall@arm.com, Rich Persaud , vfachin@de.adit-jv.com, anastassios.nanos@onapp.com, Praveen Kumar , robin.randhawa@arm.com, committers@xenproject.org, Stewart Hildebrand , xen-devel , Jonathan Daugherty , Volodymyr Babchuk , =?utf-8?Q?Mirela_Simonovi=C4=87?= , Jarvis Roach List-Id: xen-devel@lists.xenproject.org --===============2568748233628509131== Content-Type: multipart/alternative; boundary=Apple-Mail-8B4FD762-74AA-404D-A66D-5721AD6831A8 Content-Transfer-Encoding: 7bit --Apple-Mail-8B4FD762-74AA-404D-A66D-5721AD6831A8 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable > On May 10, 2018, at 15:51, Stefano Stabellini wro= te: >=20 > On Thu, 10 May 2018, Praveen Kumar wrote: >>> Yeah, you are right. It looks like turning Dom0 into a DomU is not good >>> enough. Maybe for this option to be viable we would actually have to >>> terminate (or pause and never unpause?) dom0 after boot. >>=20 >> Just a thought ! >> How about keeping Dom0 still be there, but DomUs given Dom0 privilege, wi= th >> restricted permission on mission critical resources ? And if anyhow Dom0 >> crashes, >> the best contended among the existing DomUs take the ownership of Dom0 ? >=20 > I don't think this is easily doable, also it wouldn't solve the issue of > removing dom0 from the system. But see below. >=20 >=20 >>>> However, you surely need an entity to handle domain crash. You don't >> want to >>>> reboot your platform (and therefore you safety critical domain) for a >> crashed >>>> UI, right? So how this is going to be handled in your option? >>=20 >>> We need to understand the certification requirements better to know the >>> answer to this. I am guessing that UI crashes are not handled from the >>> certification point of view -- maybe we only need to demonstrate that >>> the system is not affected by them? >>=20 >> Where can we find the certification requirements details ? >=20 > Yes, I think we need to understand the requirements better to figure out > the right way forward for Dom0. >=20 > For instance, here is another idea: we could have Xen boot multiple > domains at boot time from device tree, as suggested in the dom0-less > approach. All of the domains booted from Xen are "mission-critical". The > first domain could still be dom0. Once booted, Dom0 can start other VMs, > however, Xen would restrict Dom0 from doing any operations affecting the > first set of mission-critical domains. >=20 > This way, we would get the flexibility of being able to start/stop > domains at run time, but at the same time we might still be able to > avoid certifications for Dom0, because Dom0 cannot affect the mission > critical applications. >=20 > Is this approach actually feasible? We need to read the requirements to > know. I am hoping Artem will chime in on this :-) Is any of the x86 hardware domain (non dom0) work applicable to Arm? https://lists.xenproject.org/archives/html/xen-devel/2014-03/msg00314.html Daniel is giving a talk on TCB reduction with a Xen hardware domain: http://platformsecuritysummit.com/#degraaf Rich= --Apple-Mail-8B4FD762-74AA-404D-A66D-5721AD6831A8 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
On May 10, 2018, at 15:51, Stefano Stabellini <sstabellini@kernel.org> wrote:

=
On Thu, 10 May 2018, Praveen Kumar wrote:
Yeah, you a= re right. It looks like turning Dom0 into a DomU is not good
enough. Maybe for this option to be viable we would actually have to
terminate (or pause and never unpause?) dom0 after boot.=

Just a thought !
How about keeping Dom0 still be there,= but DomUs given Dom0 privilege, with
restricted permission on mission critical resources ? And i= f anyhow Dom0
crashes= ,
the best contended a= mong the existing DomUs take the ownership of Dom0 ?
=
I don't think this is easily doable, also it wouldn't= solve the issue of
removing dom0 from the system. But see b= elow.


=
However, you surel= y need an entity to handle domain crash. You don't
want to
reboot your platform (and therefore you safety critical d= omain) for a
crashed
<= blockquote type=3D"cite">
UI, right? So how t= his is going to be handled in your option?

We need to understand t= he certification requirements better to know the
answer to= this. I am guessing that UI crashes are not handled from the
certification point of view -- maybe we only need to demonstrate that
the system is not affected by them?
<= /blockquote>

Where can we find the certification requirements det= ails ?

Yes, I think we need to= understand the requirements better to figure out
the right w= ay forward for Dom0.

For instance, here is a= nother idea: we could have Xen boot multiple
domains at boot= time from device tree, as suggested in the dom0-less
approa= ch. All of the domains booted from Xen are "mission-critical". Thefirst domain could still be dom0. Once booted, Dom0 can start other V= Ms,
however, Xen would restrict Dom0 from doing any operatio= ns affecting the
first set of mission-critical domains.

This way, we would get the flexibility of being= able to start/stop
domains at run time, but at the same tim= e we might still be able to
avoid certifications for Dom0, b= ecause Dom0 cannot affect the mission
critical applications.=

Is this approach actually feasible? We nee= d to read the requirements to
know. I am hoping Artem will c= hime in on this :-)

Is any of the x86 hardwa= re domain (non dom0) work applicable to Arm?

Daniel is giving a talk on TCB reduction with a Xen hardwa= re domain:

Rich=
= --Apple-Mail-8B4FD762-74AA-404D-A66D-5721AD6831A8-- --===============2568748233628509131== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWRldmVs IG1haWxpbmcgbGlzdApYZW4tZGV2ZWxAbGlzdHMueGVucHJvamVjdC5vcmcKaHR0cHM6Ly9saXN0 cy54ZW5wcm9qZWN0Lm9yZy9tYWlsbWFuL2xpc3RpbmZvL3hlbi1kZXZlbA== --===============2568748233628509131==--