|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH RFC for-4.13 04/10] xen/arm: Ensure the SSBD workaround is re-enabled right after exiting a guest
Hi, On 27/09/2019 13:39, Volodymyr Babchuk wrote: Julien Grall writes:On 27/09/2019 12:56, Volodymyr Babchuk wrote:Julien Grall writes: Me too ;). I can't find any function suffixed with _noirq in Xen. So I don't think this would be a major issue here. maybe something like enter_hypervisor_from_guest_pt1() and enter_hypervisor_from_guest_pt2()? Hmmm, it reminds me uni when we had to limit function size to 20 lines :).I chose _noirq because the other name I had in mind was quite verbose. I was thinking: enter_hypervisor_from_guest_before_interrupts(). Or maybe, we should not split the function at all? Instead, we enable interrupts right in the middle of it. I thought about this but I didn't much like the resulting code.The instruction to unmask interrupts requires to take an immediate (indicates which interrupts to unmask). As not all the traps require to unmask the same interrupts, we would end up to have to a bunch of if in the code to select the right unmasking. So the split solution was the best I had in mind. I am open to better suggestion here. 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 |