|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] xen: Always ask the scheduler to re-place the vcpu when the affinity changes
On 04/03/13 12:35, Jan Beulich wrote: On 04.03.13 at 13:19, George Dunlap <george.dunlap@xxxxxxxxxxxxx> wrote: Yeah, I wasn't sure what to make of that one -- it looked as though it was coded such that someone else might be able to clear _VPF_migrating between releasing the lock and this test. But if that can happen, it's racy anyway. vcpu_force_reschedule() has this "set, unlock, re-check" pattern. It looks like there actually is a way that it could conceivably be cleared: if the vcpu is running on another pcpu, if after we release the lock the vcpu is de-scheduled and context_saved() is called, it will check for _VPF_migrating and call vcpu_migrate(), which can clear the flag. But that's probably a rare enough occurrence that it's better overall to take the occasional double-migrate. -George _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |