[PATCH V2] PPC: Fix race in mtmsr paravirt implementation

2011-10-13 Thread Bharat Bhushan
The current implementation of mtmsr and mtmsrd are racy in that it does: * check (int_pending == 0) --- host sets int_pending = 1 --- * write shared page * done while instead we should check for int_pending after the shared page is written. Signed-off-by: Bharat Bhushan

Re: [PATCH V2] PPC: Fix race in mtmsr paravirt implementation

2011-10-13 Thread Alexander Graf
On 10/13/2011 11:47 AM, Bharat Bhushan wrote: The current implementation of mtmsr and mtmsrd are racy in that it does: * check (int_pending == 0) --- host sets int_pending = 1--- * write shared page * done while instead we should check for int_pending after the shared page is