|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 4/6] xen: Allow hardare domain != dom0
On 03/05/2014 05:04 AM, Jan Beulich wrote: On 04.03.14 at 23:51, Daniel De Graaf <dgdegra@xxxxxxxxxxxxx> wrote:This adds a hypervisor command line option "hardware_dom=" which takes a domain ID. When the domain with this ID is created, it will be used as the hardware domain. This is intended to be used when dom0 is a dedicated stub domain for domain building, allowing the hardware domain to be de-privileged and act only as a driver domain.Apart from the abstract question regarding the purpose of this, a couple of comments on the patch a such: I/O ports and MMIO are currently set up by the domain builder to mirror those of dom0 with some exceptions. I could swap all of the ranges and then de-privilege the newly created domain if that seems more symmetric (it may also simplify the creation of the domain builder's specifications); I'll try testing that to ensure it works as expected. + + dom0 = d;This, I think, is the point where the variable name becomes intolerable: ASSERT(!dom0 || !dom0->domain_id) should be valid at all times as long as the variable name is dom0. I will prepare a pure rename patch prior to this one which renames the dom0 variable (and perhaps some functions with dom0 in their name) to another name: hwdom or hardware_domain would be my preference, with the hardware_dom global renamed to hardware_domid to avoid confusion.
Will clean up this patch for style when I resubmit. -- Daniel De Graaf National Security Agency _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |