From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47327) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZqyrV-0004pQ-Sq for qemu-devel@nongnu.org; Tue, 27 Oct 2015 03:40:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZqyrS-0003nf-Lf for qemu-devel@nongnu.org; Tue, 27 Oct 2015 03:40:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55249) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZqyrS-0003nI-Gi for qemu-devel@nongnu.org; Tue, 27 Oct 2015 03:40:02 -0400 Date: Tue, 27 Oct 2015 08:39:57 +0100 From: Igor Mammedov Message-ID: <20151027083957.0b21e318@nial.brq.redhat.com> In-Reply-To: References: <1445852815-85168-1-git-send-email-imammedo@redhat.com> <20151026120943-mutt-send-email-mst@redhat.com> <20151026142432.4a8ca282@nial.brq.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2] pc: memhp: enforce minimal 128Mb alignment for pc-dimm List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andrey Korolyov Cc: Paolo Bonzini , "qemu-devel@nongnu.org" , ehabkost@redhat.com, "Michael S. Tsirkin" On Mon, 26 Oct 2015 21:42:05 +0300 Andrey Korolyov wrote: > > How about following comment: > > /* Linux guests expect 512/64/128Mb alignment for PAE/x32/x64 arch > > * respectively. Windows works fine with 2Mb. To make sure that > > * memory hotplug would work with above flavors of Linux set > > * minimal alignment to 512Mb (i.e. PAE arch). > > * Enforcing minimal alignment bigger than that of a backend > > * (2Mb for memory-backend-ram) changes GPAs of the 2nd and > > * following DIMMs which breaks migration for older machine types, > > * so force minimal alignment only since 2.5 machine type and do not > > * apply it to older machine types (prior 2.5) > > */ > > > > > PAE guests are working with 128Mb alignment just fine, at least > 3.8...3.16 I`ve tried previously, have you seen a counter-example? Issue is seen only during unplug when DIMM is not aligned to SECTION_SIZE_BITS.