From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54240) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gPbzj-0000as-PU for qemu-devel@nongnu.org; Wed, 21 Nov 2018 18:33:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gPbzg-00055e-Le for qemu-devel@nongnu.org; Wed, 21 Nov 2018 18:33:19 -0500 Date: Thu, 22 Nov 2018 00:27:33 +0100 From: Samuel Ortiz Message-ID: <20181121232733.GC4450@caravaggio> References: <20181105014047.26447-1-sameo@linux.intel.com> <20181105014047.26447-16-sameo@linux.intel.com> <20181115142854.1c62f32f@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181115142854.1c62f32f@redhat.com> Subject: Re: [Qemu-devel] [PATCH v5 15/24] hw: i386: Export the i386 ACPI SRAT build method List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Igor Mammedov Cc: qemu-devel@nongnu.org, Peter Maydell , Stefano Stabellini , Eduardo Habkost , "Michael S. Tsirkin" , Shannon Zhao , qemu-arm@nongnu.org, Paolo Bonzini , Anthony Perard , xen-devel@lists.xenproject.org, Richard Henderson On Thu, Nov 15, 2018 at 02:28:54PM +0100, Igor Mammedov wrote: > On Mon, 5 Nov 2018 02:40:38 +0100 > Samuel Ortiz wrote: > > > This is the standard way of building SRAT on x86 platfoms. But future > > machine types could decide to define their own custom SRAT build method > > through the ACPI builder methods. > > Moreover, we will also need to reach build_srat() from outside of > > acpi-build in order to use it as the ACPI builder SRAT build method. > SRAT is usually highly machine specific (memory holes, layout, guest OS > specific quirks) so it's hard to generalize it. Hence the need for an SRAT builder interface. > I'd drop SRAT related patches from this series and introduce > i386/virt specific SRAT when you post patches for it. virt uses the existing i386 build_srat() routine, there's nothing special about it. So this would be purely duplicated code. Cheers, Samuel.