>>> On 04.01.18 at 14:05, <[email protected]> wrote:
> From: Roger Pau Monne <[email protected]>
>
> Instead of forcing no pending event on the vCPU, just mask all event
> channels when setting up the BSP and further patches will unmask them
> as event channels are being setup.
>
> Signed-off-by: Roger Pau Monné <[email protected]>
> ---
> To be squashed with "x86/guest: enable event channels upcalls"
Yes please.
> @@ -95,6 +95,10 @@ static void map_shared_info(void)
> panic("Failed to map shared_info page");
>
> set_fixmap(FIX_XEN_SHARED_INFO, mfn_x(mfn) << PAGE_SHIFT);
> +
> + /* Mask all upcalls */
> + for ( i = 0; i < ARRAY_SIZE(XEN_shared_info->evtchn_mask); i++ )
> + xchg(&XEN_shared_info->evtchn_mask[i], ~0ul);
Just like there, write_atomic() would likely be better than xchg().
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel