From patchwork Thu Oct 28 15:09:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 1547567 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=RSxGOK7i; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4Hg8CB6t6Hz9sP7 for ; Fri, 29 Oct 2021 02:11:02 +1100 (AEDT) Received: from localhost ([::1]:34498 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mg73U-0003PJ-LT for incoming@patchwork.ozlabs.org; Thu, 28 Oct 2021 11:11:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40178) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mg71t-0003GF-MI for qemu-devel@nongnu.org; Thu, 28 Oct 2021 11:09:21 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:29510) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mg71r-0007gl-Gd for qemu-devel@nongnu.org; Thu, 28 Oct 2021 11:09:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1635433758; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=FGfZQ/l8lVBJu5aF4VllhmWCdJEyK5HoiSNGEMXogR0=; b=RSxGOK7i74Or4OVBmZH2gJUUJYQBSS8hdq1KeFajVytjuCtjAcPyX4dfWU6ANNvmFiiYVd 3elbuqA0EWy9JRe3PnDTxXO8bZs84ZYgAnseumxdkFwEr+9FR8FHAq7IwBs1Bn7kbSQgbT jx7kHOkjmzRWd/2+5G7IFCHj0QtE0l8= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-363-U2eNz_unNeCyJyUDqbKlmA-1; Thu, 28 Oct 2021 11:09:17 -0400 X-MC-Unique: U2eNz_unNeCyJyUDqbKlmA-1 Received: by mail-wr1-f71.google.com with SMTP id k8-20020a5d5248000000b001763e7c9ce5so1110555wrc.22 for ; Thu, 28 Oct 2021 08:09:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=VadVBJG+UsmnLFR7gakJAD6piD6wT6wnPT0aDj9xEyI=; b=WIXFLqj5y4GEHuRXWRr7ri0qOwBHvL8aMiHl1Gt/52EMWS+8O7cuBZ9He6uZhRsGgF yOvKHBKYWEvWQXbTHrljjjbbhv6fpPMkKfeky6kgCOoT6tz5QO1vMSoXqr43VfWM6ZlP JtDb08RaO9z+Jne7tqPtGZGuVstIoE7n0D4ddxQdazfsPXD1t2JKicCs6c/W5YRKSTyX AEyLmPbpZbYG87C/F0bQB4fWZJzAs/puEQjZ4WEApmhZEF2LDuKFRQeomO1rOerh4djz XVzobHCovw1aebillzocs6PK+6ReR+RlNh4bY0X1OT4vDKJzA/aYgTdFVH1efhUQWJJV kNOw== X-Gm-Message-State: AOAM531utaUbyFVonhRbLhPEYsPnQd8duUzqB0CPZn3NJoH2d6b8etNO d+EfDqUc2elp7zjP4SwbPEyoJ3W65N93pb1tZBDLC+EyKbyFll/gW/p62vuARbnvDcLOCaeiFbm I99WqQiWAMc3uRx3WK6tJhEAs5i0sxKJmyhuTW1Qcch/s402DU+v+7mINSt8Wm2nQ X-Received: by 2002:a05:600c:3b89:: with SMTP id n9mr12966540wms.7.1635433755548; Thu, 28 Oct 2021 08:09:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMsFaX2iWr8KY1UBFueHcl3eZmVQqvCT6y+bV0NkWtpMnVJ/OytJjPoFIWjQH0PVgsSfP2eA== X-Received: by 2002:a05:600c:3b89:: with SMTP id n9mr12966496wms.7.1635433755264; Thu, 28 Oct 2021 08:09:15 -0700 (PDT) Received: from x1w.redhat.com (62.red-83-57-168.dynamicip.rima-tde.net. [83.57.168.62]) by smtp.gmail.com with ESMTPSA id c7sm3218745wrp.51.2021.10.28.08.09.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Oct 2021 08:09:14 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v4 0/2] hw/core/machine: Add an unit test for smp_parse Date: Thu, 28 Oct 2021 17:09:11 +0200 Message-Id: <20211028150913.1975305-1-philmd@redhat.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Received-SPF: pass client-ip=216.205.24.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Yanan Wang , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= , Eduardo Habkost Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Respin of Yanan Wang v3, based on "hw/core: Restrict qdev-hotplug to sysemu" Based-on: 20211028150521.1973821-1-philmd@redhat.com https://lore.kernel.org/qemu-devel/20211028150521.1973821-1-philmd@redhat.com git-backport-diff: Key: [----] : patches are identical [####] : number of functional differences between upstream/downstream patch [down] : patch is downstream-only The flags [FC] indicate (F)unctional and (C)ontextual differences, respectively 001/2:[0001] [FC] 'hw/core/machine: Split out the smp parsing code' 002/2:[----] [--] 'tests/unit: Add an unit test for smp parsing' Yanan Wang (2): hw/core/machine: Split out the smp parsing code tests/unit: Add an unit test for smp parsing include/hw/boards.h | 1 + hw/core/machine-smp.c | 181 +++++++++++ hw/core/machine.c | 159 ---------- tests/unit/test-smp-parse.c | 594 ++++++++++++++++++++++++++++++++++++ MAINTAINERS | 2 + hw/core/meson.build | 1 + tests/unit/meson.build | 1 + 7 files changed, 780 insertions(+), 159 deletions(-) create mode 100644 hw/core/machine-smp.c create mode 100644 tests/unit/test-smp-parse.c Acked-by: Eduardo Habkost