diff options
author | Juergen Gross <jgross@suse.com> | 2021-03-06 17:18:31 +0100 |
---|---|---|
committer | Boris Ostrovsky <boris.ostrovsky@oracle.com> | 2021-03-10 14:25:18 +0100 |
commit | 9e77d96b8e2724ed00380189f7b0ded61113b39f (patch) | |
tree | 1d305c89d12cdaf042bc381fb18f1c6217867e0e /drivers/xen/events/events_fifo.c | |
parent | xen: fix p2m size in dom0 for disabled memory hotplug case (diff) | |
download | linux-9e77d96b8e2724ed00380189f7b0ded61113b39f.tar.xz linux-9e77d96b8e2724ed00380189f7b0ded61113b39f.zip |
xen/events: reset affinity of 2-level event when tearing it down
When creating a new event channel with 2-level events the affinity
needs to be reset initially in order to avoid using an old affinity
from earlier usage of the event channel port. So when tearing an event
channel down reset all affinity bits.
The same applies to the affinity when onlining a vcpu: all old
affinity settings for this vcpu must be reset. As percpu events get
initialized before the percpu event channel hook is called,
resetting of the affinities happens after offlining a vcpu (this is
working, as initial percpu memory is zeroed out).
Cc: stable@vger.kernel.org
Reported-by: Julien Grall <julien@xen.org>
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Julien Grall <jgrall@amazon.com>
Link: https://lore.kernel.org/r/20210306161833.4552-2-jgross@suse.com
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Diffstat (limited to 'drivers/xen/events/events_fifo.c')
0 files changed, 0 insertions, 0 deletions