* Re: [PATCH V2] PPC: Fix race in mtmsr paravirt implementation
[not found] <1318499228-14372-1-git-send-email-bharat.bhushan@freescale.com>
@ 2011-10-13 10:11 ` Alexander Graf
0 siblings, 0 replies; only message in thread
From: Alexander Graf @ 2011-10-13 10:11 UTC (permalink / raw)
To: Bharat Bhushan
Cc: kvm-ppc, bharatb.yadav, Bharat Bhushan, kvm@vger.kernel.org
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 written.
>
> Signed-off-by: Bharat Bhushan<bharat.bhushan@freescale.com>
Thanks, applied to kvm-ppc-next.
Alex
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-10-13 10:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1318499228-14372-1-git-send-email-bharat.bhushan@freescale.com>
2011-10-13 10:11 ` [PATCH V2] PPC: Fix race in mtmsr paravirt implementation Alexander Graf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).