From nobody Sun Feb 8 01:30:16 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.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.133.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.133.124]) by mx.zohomail.com with SMTPS id 1642686806625471.13376668169576; Thu, 20 Jan 2022 05:53:26 -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-428-VoioF_BkMAKh3HL1VjboBg-1; Thu, 20 Jan 2022 08:53:20 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 4DE4483DD21; Thu, 20 Jan 2022 13:53:15 +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 03BB0708DB; Thu, 20 Jan 2022 13:53:15 +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 BD4071806D2E; Thu, 20 Jan 2022 13:53:14 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 20KDr5Nv008849 for ; Thu, 20 Jan 2022 08:53:06 -0500 Received: by smtp.corp.redhat.com (Postfix) id D09B2492D49; Thu, 20 Jan 2022 13:53:05 +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 CCF40492CA3 for ; Thu, 20 Jan 2022 13:53:05 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) (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 B4BFF3C1510F for ; Thu, 20 Jan 2022 13:53:05 +0000 (UTC) Received: from mail-ot1-f54.google.com (mail-ot1-f54.google.com [209.85.210.54]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-468-CPzHpL9ANzCI3dVXG_Pp6A-1; Thu, 20 Jan 2022 08:53:03 -0500 Received: by mail-ot1-f54.google.com with SMTP id l64-20020a9d1b46000000b005983a0a8aaaso7656354otl.3 for ; Thu, 20 Jan 2022 05:53:03 -0800 (PST) Received: from rekt.COMFAST ([191.8.61.226]) by smtp.gmail.com with ESMTPSA id a26sm1574102oiy.26.2022.01.20.05.53.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Jan 2022 05:53:02 -0800 (PST) X-MC-Unique: VoioF_BkMAKh3HL1VjboBg-1 X-MC-Unique: CPzHpL9ANzCI3dVXG_Pp6A-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=do4TUUDtXqeADSuqjpJWv5fIAyjYH653VvpQ1jLhGR4=; b=ZcX++JTIPoRHLZNBWJTyhn8B00lpzggnZ3cOped5nTOoNl/XtJS5/srhWv4qywLvT/ h2sc6DCWOOvu1+UkqLjpJbsntYhs+dFF8LC7fZ4VcBbLrl+HAzBBiIdkywBbihbfIJ4V ih7+9/3TG/DSJmHRE52gtJvrIXYPJULQU6YUu00D6xYAU3TvlimXrQKNuikFR2ZJvjXk A4fI+JujH4PKpzVZxMcpZJQ4UfKhM3Z33I0i0DpLOx7CPHPIe1QYkclG+Tq6kEqFFRMU QoWoTzpJy4H17Q0Jd24AVUxov0YOf5af0rTEDLk2vTrE2ZQgM9YZhwSg+nm5yGEmwj2z 9yWA== X-Gm-Message-State: AOAM532ZGJaxaoW+QJxaFM1WGTeB4DjlCd4i+Ywpa8NpEQrsz4Uq5Yce X/qDUSP7kXaUAR/Ii05LibyoSFggQkI= X-Google-Smtp-Source: ABdhPJzvtDSrUbdS/bC+wlw0VTbcLNeXWFyVGbeIOiTW2g9bcurr3UAr8i7wdol/nVO3kTd7vCRI6A== X-Received: by 2002:a9d:5d05:: with SMTP id b5mr27684041oti.306.1642686783105; Thu, 20 Jan 2022 05:53:03 -0800 (PST) From: Daniel Henrique Barboza To: libvir-list@redhat.com Subject: [PATCH 07/33] qemu_domain.c: disable default devices for PowerNV machines Date: Thu, 20 Jan 2022 10:52:10 -0300 Message-Id: <20220120135236.719924-8-danielhb413@gmail.com> In-Reply-To: <20220120135236.719924-1-danielhb413@gmail.com> References: <20220120135236.719924-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.85 on 10.11.54.9 X-loop: libvir-list@redhat.com Cc: fbarrat@linux.ibm.com, 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.79 on 10.5.11.15 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: 1642686808008100001 Content-Type: text/plain; charset="utf-8" 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. 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 88487c6293..d0bb4938ec 100644 --- a/src/qemu/qemu_domain.c +++ b/src/qemu/qemu_domain.c @@ -3678,6 +3678,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.34.1