|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] setup vwfi correctly on cpu0
Hi Stefano, On 03/30/2017 11:35 PM, Stefano Stabellini wrote:
Coding style:
if ( ... )
{
+ register_t hcr; + hcr = READ_SYSREG(HCR_EL2); + WRITE_SYSREG(hcr & ~(HCR_TWI|HCR_TWE), HCR_EL2); You are assuming the default value of vwfi and it makes very complicate for someone to follow the code and modify it. IHMO, a parsing function should only parse the command line and setup variable. Hardware configuration or initialization should be done separately (such as in an init call). Cheers, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |