From: "Jan Beulich" Subject: Re: [PATCH 12/19] hvmloader: construct SRAT Date: Mon, 24 Nov 2014 10:26:44 +0000 Message-ID: <547315F4020000780004A3E7@mail.emea.novell.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> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20141124101340.GE30053@zion.uk.xensource.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Wei Liu Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org >>> 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. Jan