Received: from eggs.gnu.org ([2001:4830:134:3::10]:52008) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXtRy-0002JU-8N for qemu-devel@nongnu.org; Tue, 17 Mar 2015 11:30:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YXtRr-0003iZ-Bm for qemu-devel@nongnu.org; Tue, 17 Mar 2015 11:30:34 -0400 Received: from cantor2.suse.de ([195.135.220.15]:49767 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXtRr-0003iD-6G for qemu-devel@nongnu.org; Tue, 17 Mar 2015 11:30:27 -0400 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Tue, 17 Mar 2015 16:30:21 +0100 Message-Id: <1426606224-25380-2-git-send-email-afaerber@suse.de> In-Reply-To: <1426606224-25380-1-git-send-email-afaerber@suse.de> References: <1426606224-25380-1-git-send-email-afaerber@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PULL 1/3] pc: Suppress APIC ID compatibility warning for QTest List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Richard Henderson , "Michael S. Tsirkin" , =?UTF-8?q?Andreas=20F=C3=A4rber?= , Eduardo Habkost This avoids cluttering GTester output with irrelevant warnings. Cc: Eduardo Habkost Signed-off-by: Andreas F=C3=A4rber --- hw/i386/pc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/i386/pc.c b/hw/i386/pc.c index b5b2aad..642105f 100644 --- a/hw/i386/pc.c +++ b/hw/i386/pc.c @@ -45,6 +45,7 @@ #include "sysemu/sysemu.h" #include "sysemu/numa.h" #include "sysemu/kvm.h" +#include "sysemu/qtest.h" #include "kvm_i386.h" #include "hw/xen/xen.h" #include "sysemu/block-backend.h" @@ -653,7 +654,7 @@ static uint32_t x86_cpu_apic_id_from_index(unsigned i= nt cpu_index) =20 correct_id =3D x86_apicid_from_cpu_idx(smp_cores, smp_threads, cpu_i= ndex); if (compat_apic_id_mode) { - if (cpu_index !=3D correct_id && !warned) { + if (cpu_index !=3D correct_id && !warned && !qtest_enabled()) { error_report("APIC IDs set in compatibility mode, " "CPU topology won't match the configuration"); warned =3D true; --=20 2.1.4