From nobody Thu May 2 21:24:09 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1629370233913131.35238650526753; Thu, 19 Aug 2021 03:50:33 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-403-6GE8PYLEOwaAWWBLTVNpUQ-1; Thu, 19 Aug 2021 06:50:31 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 7588B107ACF5; Thu, 19 Aug 2021 10:50:26 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C88D11970F; Thu, 19 Aug 2021 10:50:25 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id D67104BB7B; Thu, 19 Aug 2021 10:50:23 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 17JAoLHD032357 for ; Thu, 19 Aug 2021 06:50:22 -0400 Received: by smtp.corp.redhat.com (Postfix) id C654DF9AAD; Thu, 19 Aug 2021 10:50:21 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast06.extmail.prod.ext.rdu2.redhat.com [10.11.55.22]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C18A0FC73A for ; Thu, 19 Aug 2021 10:50:21 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-2.mimecast.com [205.139.110.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id A6A1518A01AF for ; Thu, 19 Aug 2021 10:50:21 +0000 (UTC) Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-88-AKZ92P6RNi6Z9H9TwhUBSA-1; Thu, 19 Aug 2021 06:50:19 -0400 Received: by mail-pf1-f170.google.com with SMTP id i21so5095089pfd.8 for ; Thu, 19 Aug 2021 03:50:19 -0700 (PDT) Received: from anisinha-lenovo.ba.nuagenetworks.net ([203.163.234.32]) by smtp.googlemail.com with ESMTPSA id t19sm3116552pfg.216.2021.08.19.03.50.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Aug 2021 03:50:17 -0700 (PDT) X-MC-Unique: 6GE8PYLEOwaAWWBLTVNpUQ-1 X-MC-Unique: AKZ92P6RNi6Z9H9TwhUBSA-1 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=yW0CCZX3DRcLMvdqfFevPDUD8kvSgep5mgInHWnS9Q4=; b=cpHeYernVvRM7I+zeTdxrQ7BlVFt1skMlVXTaBe3qD4ZD81AM7a3WBIrW924hL1cf9 eB5e8uh0sXNowZeQaczPxfLV4obq6HruJpoIWAdzi9vB47Gn7mOl2LuOz275jzAcGXKj tpnz/hJ4sg8FbRHWqHsh2xw6XyV68AMLSSnpfJCJI8VN82++EFzl/QG1WhsYmtKHWKeI 0eRdLYzl0gpdqB+dpJ7JBDlNXeNNTsWIfzVpVXsJ2wxTu43dVMgtmjGBTpM7FBVhSPcE wN8NXV3D0yeOpDujmCgx6cX4MMOx32xbRz6qKUANgDXGuG2PjlNvKoKcMg4yMypzRoo4 DGMA== X-Gm-Message-State: AOAM533GlX32ttcn1s+mqxEfRK0IspXffM8z+9qCv/dEXQapCOfIjdeo egaGZYMbaYYugxbeZPm/tFmaPwZNM4FIkQ== X-Google-Smtp-Source: ABdhPJyD1DQMx/mtEYCgzcXsU+eFCvJHpNp7d3OE5v2+M3ZhtxmUCqfU4qY0JEcQJ8wq6/tTNSldMg== X-Received: by 2002:a62:1852:0:b0:3e1:43ea:c56b with SMTP id 79-20020a621852000000b003e143eac56bmr14309269pfy.75.1629370217807; Thu, 19 Aug 2021 03:50:17 -0700 (PDT) From: Ani Sinha To: libvir-list@redhat.com Subject: [PATCH v2 1/4] pm/i386: add support for two options that controls acpi hotplug on q35/i440fx Date: Thu, 19 Aug 2021 16:20:01 +0530 Message-Id: <20210819105004.275239-2-ani@anisinha.ca> In-Reply-To: <20210819105004.275239-1-ani@anisinha.ca> References: <20210819105004.275239-1-ani@anisinha.ca> MIME-Version: 1.0 X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-loop: libvir-list@redhat.com Cc: Ani Sinha X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1629370358904100002 Content-Type: text/plain; charset="utf-8" 'acpi-pci-hotplug-with-bridge-support' and 'acpi-root-pci-hotplug' are two = pm options for i386 that governs acpi pci hotplug support for qemu. This patch= tries to implement support for both these two global i386 pm options within libvi= rt. 'acpi-pci-hotplug-with-bridge-support' applies both for q35 as well as i440= fx machine types. The 'acpi-root-pci-hotplug' only applies for i440fx machine = type. 'acpi-pci-hotplug-with-bridge-support' can be turned off by providing the following libvirt xml snippet: Similarly, 'acpi-root-pci-hotplug' can be turned off by providing the follo= wing libvirt xml snippet: Similarly for turning them on explicitly, they can pass " enabled=3D'yes' "= in the above xml snippet. Unit tests for this change will be added in subsequent patches. Signed-off-by: Ani Sinha --- docs/schemas/domaincommon.rng | 17 +++++++++++ src/conf/domain_conf.c | 21 +++++++++++++- src/conf/domain_conf.h | 2 ++ src/qemu/qemu_capabilities.c | 8 ++++++ src/qemu/qemu_capabilities.h | 5 ++++ src/qemu/qemu_command.c | 28 +++++++++++++++++++ src/qemu/qemu_validate.c | 21 ++++++++++++++ .../caps_2.11.0.x86_64.xml | 1 + .../caps_2.12.0.x86_64.xml | 1 + .../caps_3.0.0.x86_64.xml | 1 + .../caps_3.1.0.x86_64.xml | 1 + .../caps_4.0.0.x86_64.xml | 1 + .../caps_4.1.0.x86_64.xml | 1 + .../caps_4.2.0.x86_64.xml | 1 + .../caps_5.0.0.x86_64.xml | 1 + .../caps_5.1.0.x86_64.xml | 1 + .../caps_5.2.0.x86_64.xml | 2 ++ .../caps_6.0.0.x86_64.xml | 2 ++ .../caps_6.1.0.x86_64.xml | 3 ++ 19 files changed, 117 insertions(+), 1 deletion(-) changelog: v1: initial version. v2: added code to generate output xml correctly. diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng index 2442078969..e2d9bb336c 100644 --- a/docs/schemas/domaincommon.rng +++ b/docs/schemas/domaincommon.rng @@ -4317,6 +4317,16 @@ + + + + + + + + + + @@ -4328,6 +4338,13 @@ + + + + + + +