On Thu, Aug 05, 2021 at 09:48:04AM +0200, Laurent Vivier wrote: > On 05/08/2021 09:32, Bharata B Rao wrote: > > Handle KVM_EXIT_ESN exit by issuing subvention notification > > interrupt to the guest. Guests supporting async-pf feature > > will need this interrupt to wake up tasks that are waiting > > for the expropriated pages to be available. > > > > Note: Updates to linux-headers/linux/kvm.h are temporary > > pending headers update. > > > > Signed-off-by: Bharata B Rao <bhar...@linux.ibm.com> > > --- > > linux-headers/linux/kvm.h | 1 + > > target/ppc/kvm.c | 16 ++++++++++++++++ > > 2 files changed, 17 insertions(+) > ... > > diff --git a/target/ppc/kvm.c b/target/ppc/kvm.c > > index 330985c8a0..6bf3f06b88 100644 > > --- a/target/ppc/kvm.c > > +++ b/target/ppc/kvm.c > ... > > @@ -1657,6 +1658,16 @@ static int kvm_handle_debug(PowerPCCPU *cpu, struct > > kvm_run *run) > > return DEBUG_RETURN_GUEST; > > } > > > > +#if defined(TARGET_PPC64) > > +static void kvmppc_handle_esn(PowerPCCPU *cpu) > > +{ > > + SpaprMachineState *spapr = SPAPR_MACHINE(qdev_get_machine()); > > + > > + fprintf(stderr, "%s: ESN exit\n", __func__); > > Do you keep this fprintf() on purpose?
Not really, just that it survived the pre-post cleanup :-( Regards, Bharata.