|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v2 40/45] ARM: new VGIC: vgic-init: register VGIC
On 03/20/2018 05:11 PM, Andre Przywara wrote: Hi, On 20/03/18 01:17, Julien Grall wrote:Hi Andre, On 03/15/2018 08:30 PM, Andre Przywara wrote: Well, the compiler will usually tell you if you miss one case. In that circumstance you put a value that may not make sense for that new item in the enum and you will have some trouble to catch it. So the default should really be a BUG() or ASSERT_UNREACHABLE(). Plus we have this already in arch_domain_create() (in switch get_hw_version()). See my point above. Lastly, I can't see how you handle the corner case mentioned in the current vGIC: /* * Since evtchn_init would call domain_max_vcpus for poll_mask * allocation when the vgic_ops haven't been initialised yet, * we return MAX_VIRT_CPUS if d->arch.vgic.handler is null. */Do we need this still with Andrew's latest patch? Well depends which series is going first. If it is yours, then you still need it and Andrew has to fix it. The comment in the code would also be very useful as the reason to call vgic_max_vcpus before the full initialization is not that straightforward. I think so. But see above. 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 |