Received: from eggs.gnu.org ([2001:4830:134:3::10]:40180) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1euHbe-0006gA-Gh for qemu-devel@nongnu.org; Fri, 09 Mar 2018 07:58:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1euHbb-00025K-Ao for qemu-devel@nongnu.org; Fri, 09 Mar 2018 07:58:42 -0500 Received: from mx1.redhat.com ([209.132.183.28]:53442) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1euHbb-00024A-4G for qemu-devel@nongnu.org; Fri, 09 Mar 2018 07:58:39 -0500 Date: Fri, 9 Mar 2018 09:58:33 -0300 From: Eduardo Habkost Message-ID: <20180309125833.GI3417@localhost.localdomain> References: <1520530757-4477-1-git-send-email-ian.jackson@eu.citrix.com> <1520530757-4477-4-git-send-email-ian.jackson@eu.citrix.com> <20180308200345.GD3417@localhost.localdomain> <23202.28943.344150.512881@mariner.uk.xensource.com> <23202.30969.590920.764930@mariner.uk.xensource.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <23202.30969.590920.764930@mariner.uk.xensource.com> Subject: Re: [Qemu-devel] [PATCH 03/11] xen: defer call to xen_restrict until just before os_setup_post List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Ian Jackson Cc: qemu-devel@nongnu.org, xen-devel@lists.xenproject.org, Ross Lagerwall , Anthony PERARD , Juergen Gross , Stefano Stabellini , Paolo Bonzini , Richard Henderson , "Michael S. Tsirkin" On Fri, Mar 09, 2018 at 12:07:21PM +0000, Ian Jackson wrote: > Ian Jackson writes ("Re: [PATCH 03/11] xen: defer call to xen_restrict until just before os_setup_post"): > > Eduardo Habkost writes ("Re: [PATCH 03/11] xen: defer call to xen_restrict until just before os_setup_post"): > > > I don't think we should have accelerator-specific code in main(), > > > if we already have accelerator classes that can abstract that > > > out. I suggest adding a AccelClass;:setup_post() method that can > > > be called here. > > > > I think I can do that. > > How about this ? > > From 61f11221afaa29e10021599420238e03836ba413 Mon Sep 17 00:00:00 2001 > From: Ian Jackson > Date: Fri, 9 Mar 2018 12:02:50 +0000 > Subject: [PATCH v6.2 12/11] AccelClass: Introduce accel_setup_post > > This is called just before os_setup_post. Currently none of the > accelerators provide this hook, but the Xen one is going to provide > one in a moment. > > Signed-off-by: Ian Jackson Looks good to me. Reviewed-by: Eduardo Habkost That said, I don't think this should block the inclusion of the previous patch in 2.12, if the Xen maintainers were already going to merge it. -- Eduardo