From patchwork Mon Dec 18 11:40:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Huth X-Patchwork-Id: 849998 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3z0fJY1FPyz9s83 for ; Mon, 18 Dec 2017 22:41:49 +1100 (AEDT) Received: from localhost ([::1]:58057 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eQtnn-0006ls-68 for incoming@patchwork.ozlabs.org; Mon, 18 Dec 2017 06:41:47 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40012) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eQtn4-0006k7-Em for qemu-devel@nongnu.org; Mon, 18 Dec 2017 06:41:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eQtn1-0001Ti-Cj for qemu-devel@nongnu.org; Mon, 18 Dec 2017 06:41:02 -0500 Received: from mx1.redhat.com ([209.132.183.28]:37966) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eQtn1-0001TV-6L; Mon, 18 Dec 2017 06:40:59 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 43D3D356DF; Mon, 18 Dec 2017 11:40:58 +0000 (UTC) Received: from thh440s.redhat.com (ovpn-116-92.ams2.redhat.com [10.36.116.92]) by smtp.corp.redhat.com (Postfix) with ESMTP id E60AE6EE47; Mon, 18 Dec 2017 11:40:52 +0000 (UTC) From: Thomas Huth To: qemu-devel@nongnu.org, Eduardo Habkost , Paolo Bonzini Date: Mon, 18 Dec 2017 12:40:47 +0100 Message-Id: <1513597251-21942-1-git-send-email-thuth@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Mon, 18 Dec 2017 11:40:58 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH v2 0/4] tests: Rename pc-cpu-test.c to cpu-plug-test.c X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Daniel Barboza , qemu-s390x@nongnu.org, david@redhat.com, qemu-ppc@nongnu.org, Bharata B Rao Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" So far the CPU hot-plug qtest was only checking "cpu-add" on x86. With these patches, we now test "device_add" for hot-plugging CPUs on x86, and enable the test on ppc64 and s390x, too. v2: - Rebased to current master, fixed contextual conflicts in tests/Makefile.include - Adjusted the data->device_model to the current version of QEMU (e.g. use "qemu-s390x-cpu" instead of "qemu-s390-cpu") Thomas Huth (4): tests: Rename pc-cpu-test.c to cpu-plug-test.c tests/cpu-plug-test: Check the CPU hot-plugging with device_add, too tests/cpu-plug-test: Check CPU hot-plugging on ppc64, too tests/cpu-plug-test: Test CPU hot-plugging on s390x tests/Makefile.include | 6 +- tests/cpu-plug-test.c | 267 +++++++++++++++++++++++++++++++++++++++++++++++++ tests/pc-cpu-test.c | 135 ------------------------- 3 files changed, 271 insertions(+), 137 deletions(-) create mode 100644 tests/cpu-plug-test.c delete mode 100644 tests/pc-cpu-test.c