[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] xen: Plumb an is_priv boolean into domain_create()
Hi, On 07/02/2018 10:44 AM, Andrew Cooper wrote: The current mechanism of setting dom0->is_privileged after construction means that the is_control_domain() predicate returns false during construction. In particular, this means that the CPUID Faulting special case in init_domain_msr_policy() fails to take effect. (In actual fact, faulting support is advertised to dom0, but attempting to configure it is silently ignored because of the dom0 special case in ctxt_switch_levelling().) This could be implemented using a flag in xen_domctl_createdomain, but using an extra boolean parameter like this means that we can't accidentally allow domain_create() to create a second dom0 due to parameter mis-auditing. While adjusting the setting of dom0->is_privileged, drop the redundant zeroing of dom0->target. Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> --- CC: Jan Beulich <JBeulich@xxxxxxxx> CC: Stefano Stabellini <sstabellini@xxxxxxxxxx> CC: Julien Grall <julien.grall@xxxxxxx> CC: Wei Liu <wei.liu2@xxxxxxxxxx> CC: Roger Pau Monné <roger.pau@xxxxxxxxxx> CC: Sergey Dyasli <sergey.dyasli@xxxxxxxxxx> Compile tested on ARM. Functionally tested on x86. The changes in on Arm looks fine: Acked-by: Julien Grall <julien.grall@xxxxxxx> Cheers, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |