qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-ppc] spapr DRC and awaiting_allocation


From: David Gibson
Subject: [Qemu-ppc] spapr DRC and awaiting_allocation
Date: Fri, 9 Jun 2017 00:32:46 +1000
User-agent: Mutt/1.8.0 (2017-02-23)

Hi Bharata,

I'm trying to understand the awaiting_allocation flag in the DRC code,
and it's not making much sense to me.  It was introduced in aab9913
"spapr_drc: Prevent detach racing against attach for CPU DR", which
claims that a hot unplug racing with a not-completed hot plug of a CPU
can crash the guest.

The change made only appears to affect the case where this happens:
   host                         guest
   attach() CPU
   notify guest
   detach() CPU
                                RTAS set_allocation_state USABLE

But in that case, I'd expect the set_allocation_state to simply fail
(becuase the DRC is now awaiting_release) and for the guest to cope
with that failure.

Can you remember the mechanism by which the guest was crashed?

-- 
David Gibson                    | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au  | minimalist, thank you.  NOT _the_ _other_
                                | _way_ _around_!
http://www.ozlabs.org/~dgibson

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]