From nobody Sun Feb 8 10:33:57 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.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 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=gmail.com Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.zohomail.com with SMTPS id 164562258255588.58590130711639; Wed, 23 Feb 2022 05:23:02 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-313-aXgu_pGkPraHale55GUKkg-1; Wed, 23 Feb 2022 08:22:59 -0500 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 51CE6501E1; Wed, 23 Feb 2022 13:22:50 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2D6162B44A; Wed, 23 Feb 2022 13:22:50 +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 ED78A1807D6F; Wed, 23 Feb 2022 13:22:49 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 21NDKES0029712 for ; Wed, 23 Feb 2022 08:20:14 -0500 Received: by smtp.corp.redhat.com (Postfix) id 2000F1121332; Wed, 23 Feb 2022 13:20:14 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast07.extmail.prod.ext.rdu2.redhat.com [10.11.55.23]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 1B6AE112131E for ; Wed, 23 Feb 2022 13:20:14 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-2.mimecast.com [207.211.31.81]) (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 040133C174C9 for ; Wed, 23 Feb 2022 13:20:14 +0000 (UTC) Received: from mail-ot1-f45.google.com (mail-ot1-f45.google.com [209.85.210.45]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-355-AQKhHHH4PfKP8cpgZxF7Lg-1; Wed, 23 Feb 2022 08:20:12 -0500 Received: by mail-ot1-f45.google.com with SMTP id k9-20020a056830242900b005ad25f8ebfdso11912145ots.7 for ; Wed, 23 Feb 2022 05:20:12 -0800 (PST) Received: from rekt.ibmuc.com ([191.193.99.92]) by smtp.gmail.com with ESMTPSA id a4sm27646154oaa.42.2022.02.23.05.20.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Feb 2022 05:20:11 -0800 (PST) X-MC-Unique: aXgu_pGkPraHale55GUKkg-1 X-MC-Unique: AQKhHHH4PfKP8cpgZxF7Lg-1 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=qHIPjfr1PxFlPgHBoyd3jLvYmUDPsXQd/63Jnq8RCsM=; b=YAfVfaXZCG+4mxpimH7d3hpIXs6GXPm9dR4dL3btr9u9aNdjNl88r3oSC8hYRfyMIi imnv+QsX/rAoAapMY12eHC+gDtdOw6NPnN4wHgVxt8uQ9nB2CrhLXIrECviZWiC+8cbP 7H2aVNrFYgXbmXAC0YcdqoEeQwoVPmllcf0vzm2aIPlZcDjNoYYH9jXp17pSSnw+7/cn 4W1EYHCCIiO2tda42slq4Fx4eA3fD8IvJ+5733NTXylxd+gCosRLsZ/gpaOSEV16Gs8+ 67BjgRJ20q3RS6pMqHJ8fGeUn57JnSoxK0f8ayG63DUdzmPlrCaPcwBEv+tnJcC9US6a 5szg== X-Gm-Message-State: AOAM531ofAIaVcyqMSw8EcqtDUb8onx7VtfhY2D+rLmbjlIcuTtObVD5 Soh9sL8dxMesxgsPuVwTz03nsx9/vr0= X-Google-Smtp-Source: ABdhPJxKKHORsXSC0pP/LrkFf6AS0U1yOcshpndojJbASUj9THJ1aGKbnQq2M65/s02KSiAxmGbt2w== X-Received: by 2002:a9d:7441:0:b0:5af:223d:fe0e with SMTP id p1-20020a9d7441000000b005af223dfe0emr5331557otk.299.1645622411412; Wed, 23 Feb 2022 05:20:11 -0800 (PST) From: Daniel Henrique Barboza To: libvir-list@redhat.com Subject: [PATCH v3 07/29] qemu_domain.c: disable default devices for PowerNV machines Date: Wed, 23 Feb 2022 10:19:30 -0300 Message-Id: <20220223131952.922228-8-danielhb413@gmail.com> In-Reply-To: <20220223131952.922228-1-danielhb413@gmail.com> References: <20220223131952.922228-1-danielhb413@gmail.com> 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.78 on 10.11.54.3 X-loop: libvir-list@redhat.com Cc: danielhb413@gmail.com 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-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1645622583482100008 PowerNV domains will support pcie-root devices as PHBs, in a similar fashion as pSeries domains supports the spapr-pci-host-bridge as a pci-root model. Set 'addPCIRoot' to false since we'll not be using this buses in this machine. 'addDefaultMemballoon' is also set to false since the balloon driver wasn't really tested with the PowerNV kernel. Reviewed-by: J=C3=A1n Tomko Reviewed-by: Peter Krempa Signed-off-by: Daniel Henrique Barboza --- src/qemu/qemu_domain.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c index c81c63369c..4cf030c485 100644 --- a/src/qemu/qemu_domain.c +++ b/src/qemu/qemu_domain.c @@ -3684,6 +3684,15 @@ qemuDomainDefAddDefaultDevices(virQEMUDriver *driver, * add the definition if not already present */ if (qemuDomainIsPSeries(def)) addPanicDevice =3D true; + + if (qemuDomainIsPowerNV(def)) { + addPCIRoot =3D false; + addDefaultUSB =3D false; + addDefaultUSBKBD =3D false; + addDefaultUSBMouse =3D false; + addDefaultMemballoon =3D false; + } + break; =20 case VIR_ARCH_ALPHA: --=20 2.35.1