Re: [RFC PATCH v2 4/6] KVM: PPC: Add helper library for Guest State Buffers

2023-06-09 Thread Jordan Niethe
On Wed, Jun 7, 2023 at 6:27 PM Nicholas Piggin wrote: [snip] > > This is a tour de force in one of these things, so I hate to be > the "me smash with club" guy, but what if you allocated buffers > with enough room for all the state (or 99% of cases, in which > case an overflow would make an

Re: [RFC PATCH v2 4/6] KVM: PPC: Add helper library for Guest State Buffers

2023-06-07 Thread Nicholas Piggin
On Mon Jun 5, 2023 at 4:48 PM AEST, Jordan Niethe wrote: > The new PAPR nested guest API introduces the concept of a Guest State > Buffer for communication about L2 guests between L1 and L0 hosts. > > In the new API, the L0 manages the L2 on behalf of the L1. This means > that if the L1 needs to

[RFC PATCH v2 4/6] KVM: PPC: Add helper library for Guest State Buffers

2023-06-05 Thread Jordan Niethe
The new PAPR nested guest API introduces the concept of a Guest State Buffer for communication about L2 guests between L1 and L0 hosts. In the new API, the L0 manages the L2 on behalf of the L1. This means that if the L1 needs to change L2 state (e.g. GPRs, SPRs, partition table...), it must