Received: from eggs.gnu.org ([2001:4830:134:3::10]:57691) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bwUXo-0001B4-3Z for qemu-devel@nongnu.org; Tue, 18 Oct 2016 09:35:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bwUXj-0005oX-8A for qemu-devel@nongnu.org; Tue, 18 Oct 2016 09:35:04 -0400 Received: from mx1.redhat.com ([209.132.183.28]:38678) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1bwUXj-0005oA-39 for qemu-devel@nongnu.org; Tue, 18 Oct 2016 09:34:59 -0400 Date: Tue, 18 Oct 2016 11:34:55 -0200 From: Eduardo Habkost Message-ID: <20161018133455.GR3275@thinpad.lan.raisama.net> References: <1476352367-69400-1-git-send-email-imammedo@redhat.com> <1476352367-69400-4-git-send-email-imammedo@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1476352367-69400-4-git-send-email-imammedo@redhat.com> Subject: Re: [Qemu-devel] [PATCH v3 03/13] acpi: cphp: support x2APIC entry in cpu._MAT List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Igor Mammedov Cc: qemu-devel@nongnu.org, kraxel@redhat.com, liuxiaojian6@huawei.com, mst@redhat.com, rkrcmar@redhat.com, peterx@redhat.com, kevin@koconnor.net, pbonzini@redhat.com, lersek@redhat.com, chao.gao@intel.com On Thu, Oct 13, 2016 at 11:52:37AM +0200, Igor Mammedov wrote: > Signed-off-by: Igor Mammedov > --- > hw/acpi/cpu.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/hw/acpi/cpu.c b/hw/acpi/cpu.c > index 902f5c9..5ac89fe 100644 > --- a/hw/acpi/cpu.c > +++ b/hw/acpi/cpu.c > @@ -531,6 +531,11 @@ void build_cpus_aml(Aml *table, MachineState *machine, CPUHotplugFeatures opts, > apic->flags = cpu_to_le32(1); > break; > } > + case ACPI_APIC_LOCAL_X2APIC: { > + AcpiMadtProcessorX2Apic *apic = (void *)madt_buf->data; > + apic->flags = cpu_to_le32(1); > + break; > + } Shouldn't this patch be applied before 01/13 to avoid triggering the assert() below? > default: > assert(0); > } > -- > 2.7.4 > -- Eduardo