Re: [Qemu-devel] [PATCH] spapr_pci: factorize the use of SPAPR_MACHINE_GET_CLASS()

2018-08-12 Thread David Gibson
On Fri, Aug 10, 2018 at 10:00:26AM +0200, Cédric Le Goater wrote: > It should save us some CPU cycles as these routines perform a lot of > checks. I don't think any of these is particularly fastpath, but sure, applied to ppc-for-3.1. > > Signed-off-by: Cédric Le Goater > --- > hw/ppc/spapr_pci

[Qemu-devel] [PATCH] spapr_pci: factorize the use of SPAPR_MACHINE_GET_CLASS()

2018-08-10 Thread Cédric Le Goater
It should save us some CPU cycles as these routines perform a lot of checks. Signed-off-by: Cédric Le Goater --- hw/ppc/spapr_pci.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/hw/ppc/spapr_pci.c b/hw/ppc/spapr_pci.c index 3791ced6c536..5cd676e4430d 100644 ---