From patchwork Sat Apr 4 08:28:58 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Doron X-Patchwork-Id: 1266352 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=Yqq14Mfj; dkim-atps=neutral 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 ozlabs.org (Postfix) with ESMTPS id 48vVQx4tXKz9sPF for ; Sat, 4 Apr 2020 19:32:09 +1100 (AEDT) Received: from localhost ([::1]:36558 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jKeDn-0000g1-FJ for incoming@patchwork.ozlabs.org; Sat, 04 Apr 2020 04:32:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47590) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jKeBC-0005pX-RQ for qemu-devel@nongnu.org; Sat, 04 Apr 2020 04:29:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jKeBB-0001yN-QR for qemu-devel@nongnu.org; Sat, 04 Apr 2020 04:29:26 -0400 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]:41764) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jKeBB-0001xr-Kg for qemu-devel@nongnu.org; Sat, 04 Apr 2020 04:29:25 -0400 Received: by mail-wr1-x443.google.com with SMTP id h9so11244222wrc.8 for ; Sat, 04 Apr 2020 01:29:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Hp0TKGKSi/gHtI8I2mIP8YOmXXrvnTmTwZnNNAObxR0=; b=Yqq14Mfj6E4jDQ5fGIZnCMe3xLJ+++52ranccfC+gqmvx4gadA3lZvvhIMX5oHunv8 qfLQKoeeQXGoMw0LCH8EnPqe0Xi0LDozeUd3LuKiWXIzFzQhi8hkjPPk1ogpjQ/ouvbL O3qNt2vQfFGNuGp2Q2ZCJtkq6uoH9cPJyw0bVfskgQ7YrojXWIXrw9kbNos0UzSosvGy oXsjXB0lD9Bx/TWSZZ+uZGthHABRGO2xQwQRUDD02QdCD+rlyUKBPOe/+EPTHsbD/4UU i4fPYUTjYgBepfgL9sKlTmS6rpE6inG3IloIA5ttsHRlkVHixUmnHW27L8e7r2zZBWT9 124w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Hp0TKGKSi/gHtI8I2mIP8YOmXXrvnTmTwZnNNAObxR0=; b=ZY6i4TaupOm4hqZ3KCQIOL5qFgc4Yl/2keK0ifbN/8/+gNuw8U/rJSZ4XVqB03NVxa kOEHmnnFKwZ4hQFbC2vTFqzSmgIyolfzjMycuqoTsXRnIfZMAwRftLDYqM87epTXlW2A tdbYXWk+VoCMKbcLTh2TDeExaA1WEcA8IdYfh3hAmnb8b+v8LBS3KACjhGJdmNcNNvNL ythUrPrTgcN4JZKo5ar0a9mR7J7G6LktvxQDsf1FaFsghYSjZ46WcHaIQcmFVW7oudgH zaAyR2aivcrS2xdc6Q0cc2goL/PeXdrDuBqilJAKo8aUb/evSjU0rl+nS3fJxywaiDyJ dlmg== X-Gm-Message-State: AGi0PuYlw5l+fRCOHH3cRXGnlEaAmRVzsn3e3gvZJBGLt3bCVe6T7+Sc H+V9up5UIUFE7yhGzERS+rvd+n8/jeevDQ== X-Google-Smtp-Source: APiQypLA+jEN+UJ5fUH6NjzWCD5UQwLEKAn369mXqSMvBrYSmUD3fZxv1I6oaYr1xGeQP7O9Mu4zNg== X-Received: by 2002:adf:fe87:: with SMTP id l7mr12718581wrr.377.1585988964601; Sat, 04 Apr 2020 01:29:24 -0700 (PDT) Received: from jondnuc.lan (IGLD-84-229-155-40.inter.net.il. [84.229.155.40]) by smtp.gmail.com with ESMTPSA id a10sm15884778wrm.87.2020.04.04.01.29.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Apr 2020 01:29:24 -0700 (PDT) From: Jon Doron To: qemu-devel@nongnu.org Subject: [PATCH v2 5/7] i386:pc: whitelist dynamic vmbus-bridge Date: Sat, 4 Apr 2020 11:28:58 +0300 Message-Id: <20200404082900.33711-6-arilou@gmail.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200404082900.33711-1-arilou@gmail.com> References: <20200404082900.33711-1-arilou@gmail.com> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::443 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: mail@maciej.szmigiero.name, eyakovlev@virtuozzo.com, ehabkost@redhat.com, rvkagan@gmail.com, liran.alon@oracle.com, Roman Kagan , pbonzini@redhat.com, vkuznets@redhat.com, "Maciej S . Szmigiero" , Jon Doron Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" As vmbus-bridge is derived from sysbus device, it has to be whitelisted to be allowed to be created with -device. Signed-off-by: Roman Kagan Signed-off-by: Maciej S. Szmigiero Signed-off-by: Jon Doron --- hw/i386/pc_piix.c | 2 ++ hw/i386/pc_q35.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c index 9cceae3e2c..6daa0770fa 100644 --- a/hw/i386/pc_piix.c +++ b/hw/i386/pc_piix.c @@ -60,6 +60,7 @@ #include "migration/global_state.h" #include "migration/misc.h" #include "sysemu/numa.h" +#include "hw/hyperv/vmbus-bridge.h" #include "hw/mem/nvdimm.h" #define MAX_IDE_BUS 2 @@ -417,6 +418,7 @@ static void pc_i440fx_machine_options(MachineClass *m) m->default_machine_opts = "firmware=bios-256k.bin"; m->default_display = "std"; machine_class_allow_dynamic_sysbus_dev(m, TYPE_RAMFB_DEVICE); + machine_class_allow_dynamic_sysbus_dev(m, TYPE_VMBUS_BRIDGE); } static void pc_i440fx_5_0_machine_options(MachineClass *m) diff --git a/hw/i386/pc_q35.c b/hw/i386/pc_q35.c index d37c425e22..faaa39ced2 100644 --- a/hw/i386/pc_q35.c +++ b/hw/i386/pc_q35.c @@ -53,6 +53,7 @@ #include "qapi/error.h" #include "qemu/error-report.h" #include "sysemu/numa.h" +#include "hw/hyperv/vmbus-bridge.h" #include "hw/mem/nvdimm.h" /* ICH9 AHCI has 6 ports */ @@ -346,6 +347,7 @@ static void pc_q35_machine_options(MachineClass *m) machine_class_allow_dynamic_sysbus_dev(m, TYPE_AMD_IOMMU_DEVICE); machine_class_allow_dynamic_sysbus_dev(m, TYPE_INTEL_IOMMU_DEVICE); machine_class_allow_dynamic_sysbus_dev(m, TYPE_RAMFB_DEVICE); + machine_class_allow_dynamic_sysbus_dev(m, TYPE_VMBUS_BRIDGE); m->max_cpus = 288; }