From: "Jan Beulich" Subject: Re: [PATCH, v2] add privileged/unprivileged kernel feature indication Date: Thu, 21 Jul 2011 10:03:49 +0100 Message-ID: <4E280795020000780004EC51@nat28.tlf.novell.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Campbell , Keir Fraser Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org >>> On 21.07.11 at 10:55, Keir Fraser wrote: > On 21/07/2011 09:50, "Keir Fraser" wrote: >=20 >> On 21/07/2011 09:16, "Jan Beulich" wrote: >>=20 >>>> You say it is a Linux notion that dom0 implies domU but I am not = aware >>>> of any PV OS which supports dom0 that doesn't also support domU, do = you >>>> have specific examples of OSes which are dom0-only? >>>=20 >>> No, I'm not aware of any existing ones, but I also wasn't in favor of >>> the move to imply unprivileged capabilities when Linux is configured >>> as privileged guest (iirc this wasn't the case from the very beginning)= . >>>=20 >>> And again, imo an interface like the hypervisor's shouldn't dictate = any >>> kind of policy on the guest OSes. >>=20 >> My own issue with the unprivileged flag is that I'm not clear what it >> actually means. When would you *not* set it? I mean it looks in the = Linux >> side you set it unconditionally right now. What's the point? Why not = remove >> the flag and introduce it when we have good reason and can attach = meaningful >> semantics to it? >=20 > A further killing blow: the hypervisor patch defined unprivileged as = !dom0. > Well, there are many different capabilities and devices that a domU may = be > granted. You might be passing through a VGA adaptor and SRIOV NIC and = run > out of ramdisk for example, in which case the domU might quite validly = have > no PV frontend devices. >=20 > Another thing, given that privileged is quite a broad term, I wonder = whether > the 'privileged' feature should be called something else? Like > 'dom0_interface'? It would be a more precise definition maybe? Passing > through devices to a domU could be termed a privilege after all, for > example. I agree that if we're going to go with just a single flag, then renaming = it the way you suggest certainly makes sense. Jan