From nobody Sun Feb 8 16:30: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 16456225852541011.1133470859536; Wed, 23 Feb 2022 05:23:05 -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-554-pqqP2VzlOW6aEo6CdApmLg-1; Wed, 23 Feb 2022 08:22:53 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 8225880DE0A; Wed, 23 Feb 2022 13:22:47 +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 5ED1B7D3DA; Wed, 23 Feb 2022 13:22:47 +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 30EAE44A68; Wed, 23 Feb 2022 13:22:47 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 21NDKf2E029867 for ; Wed, 23 Feb 2022 08:20:41 -0500 Received: by smtp.corp.redhat.com (Postfix) id 2E626C1D3AD; Wed, 23 Feb 2022 13:20:41 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast01.extmail.prod.ext.rdu2.redhat.com [10.11.55.17]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2A5CAC1D38B for ; Wed, 23 Feb 2022 13:20:41 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.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 1169B85A5A8 for ; Wed, 23 Feb 2022 13:20:41 +0000 (UTC) Received: from mail-oo1-f44.google.com (mail-oo1-f44.google.com [209.85.161.44]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-209-8ot_HV3SO8mo5VnR7CKk9A-1; Wed, 23 Feb 2022 08:20:39 -0500 Received: by mail-oo1-f44.google.com with SMTP id w10-20020a4ae08a000000b0031bdf7a6d76so22122653oos.10 for ; Wed, 23 Feb 2022 05:20:39 -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.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Feb 2022 05:20:38 -0800 (PST) X-MC-Unique: pqqP2VzlOW6aEo6CdApmLg-1 X-MC-Unique: 8ot_HV3SO8mo5VnR7CKk9A-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=QdMAVy90/b1NIxoB2ho0r+dMiGtsvmAwUZuO+FEXFow=; b=rlj+kHDR52gHpug9qzRsbBYidsEmDmN1WGQNpMZz80quNCjW/eOZ3Hzmv4WbBICQ9f 78yTW9H1VW/E9nvN5UOALeE08PAWFsp+4Xl6DkM2Vz/BlF9Ek1/fJu+qP1mozSsi70Kv SJxWglynXuAZK0yn90+m/7l4agsihTK+HIxaPm5REV0+Z+g4FW/N6C182KoOx4pXNblK WPbyASyznLwZ7aI4d2+wJdsg0VmqTCRY7s2aCP7WSqLKrFLpIVfZA/ztogqZ+9MG8n8D dX0kEuYnZbJpd5OFo6ACMtxULNvF+icO/L/DxhGZkVCxPYruueIAo/nk0HH3828iZ9Qy 2rdQ== X-Gm-Message-State: AOAM533m2yZfJL0k/a2ehT3DVV0HMVHhs1+7ke7YG44N8h7sMMg12Rvt /O7NoYgoKXvsMDJwistxziYM/Cv92E4= X-Google-Smtp-Source: ABdhPJyV1IxQnjnHMH9R9aN0b74F4AuY1sNUQiEKelsGRnAXLF6JDJoaKCWaF8hlnRCUS4y5YQG6Kg== X-Received: by 2002:a05:6870:76b4:b0:d6:c55f:1235 with SMTP id dx52-20020a05687076b400b000d6c55f1235mr193521oab.175.1645622438374; Wed, 23 Feb 2022 05:20:38 -0800 (PST) From: Daniel Henrique Barboza To: libvir-list@redhat.com Subject: [PATCH v3 26/29] domain_conf.c: add phb4-root-port to IsPowerNVRootPort() Date: Wed, 23 Feb 2022 10:19:49 -0300 Message-Id: <20220223131952.922228-27-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.85 on 10.11.54.8 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.79 on 10.5.11.16 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: 1645622587517100015 Make the virDomainControllerIsPowerNVRootPort() helper recognize pnv-phb4-root-port as a PowerNV root port. This will spare us from duplicating checks where the constraints of pnv-phb3-root-port also applies for the pnv-phb4-root-port device. Reviewed-by: J=C3=A1n Tomko Signed-off-by: Daniel Henrique Barboza --- src/conf/domain_conf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 089237007a..c6b071c153 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -2479,7 +2479,8 @@ virDomainControllerIsPowerNVRootPort(const virDomainC= ontrollerDef *cont) =20 name =3D cont->opts.pciopts.modelName; =20 - if (name !=3D VIR_DOMAIN_CONTROLLER_PCI_MODEL_NAME_PNV_PHB3_ROOT_PORT) + if ((name !=3D VIR_DOMAIN_CONTROLLER_PCI_MODEL_NAME_PNV_PHB3_ROOT_PORT= ) && + (name !=3D VIR_DOMAIN_CONTROLLER_PCI_MODEL_NAME_PNV_PHB4_ROOT_PORT= )) return false; =20 return true; --=20 2.35.1