Re: [RFC PATCH 1/2] spapr: drc: Add support for async hcalls at the drc level

2020-11-26 Thread Shivaprasad bhat
Thanks for the comments Bharata. On Fri, Nov 27, 2020 at 11:12 AM Bharata B Rao wrote: > ... > > +qemu_mutex_lock(&drc->async_hcall_states_lock); > > +retry: > > +if (qemu_guest_getrandom(&token, sizeof(token), &err) < 0) { > > +error_report_err(err); > > +g_free(state); >

Re: [RFC PATCH 1/2] spapr: drc: Add support for async hcalls at the drc level

2020-11-26 Thread Bharata B Rao
On Thu, Nov 26, 2020 at 01:54:55AM -0600, Shivaprasad G Bhat wrote: > The patch adds support for async hcalls at the DRC level for the > spapr devices. To be used by spapr-scm devices in the patch/es to follow. > > Signed-off-by: Shivaprasad G Bhat > --- > hw/ppc/spapr_drc.c | 146 > ++

[RFC PATCH 1/2] spapr: drc: Add support for async hcalls at the drc level

2020-11-25 Thread Shivaprasad G Bhat
The patch adds support for async hcalls at the DRC level for the spapr devices. To be used by spapr-scm devices in the patch/es to follow. Signed-off-by: Shivaprasad G Bhat --- hw/ppc/spapr_drc.c | 146 include/hw/ppc/spapr_drc.h | 25 +