Re: [PATCH for-6.0 8/9] spapr: Do TPM proxy hotplug sanity checks at pre-plug

2020-11-22 Thread David Gibson
On Sat, Nov 21, 2020 at 12:42:07AM +0100, Greg Kurz wrote: > There can be only one TPM proxy at a time. This is currently > checked at plug time. But this can be detected at pre-plug in > order to error out earlier. > > This allows to get rid of error handling in the plug handler. > >

[PATCH for-6.0 8/9] spapr: Do TPM proxy hotplug sanity checks at pre-plug

2020-11-20 Thread Greg Kurz
There can be only one TPM proxy at a time. This is currently checked at plug time. But this can be detected at pre-plug in order to error out earlier. This allows to get rid of error handling in the plug handler. Signed-off-by: Greg Kurz --- hw/ppc/spapr.c | 23 ++- 1 file