From: Wei Liu Subject: Re: [PATCH 12/19] hvmloader: construct SRAT Date: Mon, 24 Nov 2014 10:46:12 +0000 Message-ID: <20141124104612.GG30053@zion.uk.xensource.com> References: <1416582421-10789-1-git-send-email-wei.liu2@citrix.com> <1416582421-10789-13-git-send-email-wei.liu2@citrix.com> <547311BA020000780004A39E@mail.emea.novell.com> <20141124101340.GE30053@zion.uk.xensource.com> <547315F4020000780004A3E7@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <547315F4020000780004A3E7@mail.emea.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: Wei Liu , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Mon, Nov 24, 2014 at 10:26:44AM +0000, Jan Beulich wrote: > >>> On 24.11.14 at 11:13, wrote: > > On Mon, Nov 24, 2014 at 10:08:42AM +0000, Jan Beulich wrote: > >> >>> On 21.11.14 at 16:06, wrote: > >> > @@ -270,6 +331,13 @@ static int construct_secondary_tables(unsigned long *table_ptrs, > >> > table_ptrs[nr_tables++] = (unsigned long)madt; > >> > } > >> > > >> > + if ( hvm_info->nr_nodes > 0 ) > >> > + { > >> > + srat = construct_srat(); > >> > + if (!srat) return -1; > >> > >> I don't think failure to set up secondary information (especially when > >> it requires a variable size table and hence has [slightly] higher > >> likelihood of table space allocation failing) should result in skipping > >> other table setup. > > > > But MADT, HPET and WAET are treated like that. I want to be > > consistent. > > I kind of expected you to say that, and specifically added the > reference to SRAT and SLIT being variable size (and perhaps > relatively big). While MADT is variable size too, it (other than the > tables you add here) is kind of essential for the guest to come up > in ACPI mode. Which btw also tells us that these two tables > should be added as late as possible, to avoid them exhausting > memory before other, essential allocations got done. > So the plan is: 1. Move SRAT and SLIT down. 2. Don't return -1 on failure (and print warning). Wei. > Jan