From nobody Sat Feb 7 15:29:55 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 1643143807917569.6166135312642; Tue, 25 Jan 2022 12:50:07 -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-562--au8zYMdNsepzCt8ASMdwg-1; Tue, 25 Jan 2022 15:49:58 -0500 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id BBF278144E5; Tue, 25 Jan 2022 20:49:52 +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 9CF941017E36; Tue, 25 Jan 2022 20:49:52 +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 6AF274A706; Tue, 25 Jan 2022 20:49:52 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 20PKnf3N024193 for ; Tue, 25 Jan 2022 15:49:41 -0500 Received: by smtp.corp.redhat.com (Postfix) id 4CA4D401E2D; Tue, 25 Jan 2022 20:49:39 +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 48EAC401E8D for ; Tue, 25 Jan 2022 20:49:39 +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 69E3485A5BF for ; Tue, 25 Jan 2022 20:49:27 +0000 (UTC) Received: from mail-oi1-f173.google.com (mail-oi1-f173.google.com [209.85.167.173]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-448-NzRyGVe1PwuuPUqdFMIkKg-1; Tue, 25 Jan 2022 15:49:25 -0500 Received: by mail-oi1-f173.google.com with SMTP id g205so33488664oif.5 for ; Tue, 25 Jan 2022 12:49:25 -0800 (PST) Received: from rekt.COMFAST ([191.8.61.226]) by smtp.gmail.com with ESMTPSA id ay32sm1368569oob.16.2022.01.25.12.49.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jan 2022 12:49:24 -0800 (PST) X-MC-Unique: -au8zYMdNsepzCt8ASMdwg-1 X-MC-Unique: NzRyGVe1PwuuPUqdFMIkKg-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=kUjwLWNK6bvCle4uH2dSwJIQfqYbHHLfj1h1BxnMNDE=; b=cj2zbQmzeWBfO80HCzqd9551hicsx2groDPHLxXVkd3g60+bnU3QrvTHRFTjGmnHeI DeFMeBWkCXOrvQJY5F1qNdOwS4IhRDkYTfX+w34md1zNNBY8bcUxYQBYz0CqhiNPJPIB CAxtOjApi0tcfh5YiSUp6BmVucs3ZS/LCzPse10NFayxxkVEWDYHhNBMXURT8LhmMcqJ LfH/BV7kOWVeB9vd/ti9WsXkyFbxDZx0afKXHlvoPFNzqLlQyb3HY/cLXBupoLSgCNzW b9Qa+PtwF7rYNAbtjDWBlQc3Dy2lwWlGxRi/9Czt7+qRhk4Btl6MDycaKMcekVoD431u 4oOg== X-Gm-Message-State: AOAM532HA1+P6Cl4YmdYn6QGfdA/nQkjM/GVxiEk9ST7TdSZimFSDo1+ rZsa8rmXYozF55OTTwF17bURhJ6R5FY= X-Google-Smtp-Source: ABdhPJzZSPUPjEfcXKGQJiGGD0nnsKA/gDBTRRxg+wAowvP2FbjhJFLKhztTG2+JyYsW7ALm45QfwQ== X-Received: by 2002:a05:6808:309f:: with SMTP id bl31mr1734854oib.228.1643143764292; Tue, 25 Jan 2022 12:49:24 -0800 (PST) From: Daniel Henrique Barboza To: libvir-list@redhat.com Subject: [PATCH v2 05/29] qemu_domain.c: define ISA as default PowerNV serial Date: Tue, 25 Jan 2022 17:48:38 -0300 Message-Id: <20220125204902.772350-6-danielhb413@gmail.com> In-Reply-To: <20220125204902.772350-1-danielhb413@gmail.com> References: <20220125204902.772350-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.10 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.22 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: 1643143810797100002 Content-Type: text/plain; charset="utf-8" The PowerNV machines uses ISA as the default serial type. Reviewed-by: Peter Krempa Signed-off-by: Daniel Henrique Barboza Reviewed-by: J=C3=A1n Tomko --- src/qemu/qemu_domain.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c index 98a6a2657d..1b4b293388 100644 --- a/src/qemu/qemu_domain.c +++ b/src/qemu/qemu_domain.c @@ -5167,6 +5167,8 @@ qemuDomainChrDefPostParse(virDomainChrDef *chr, chr->targetType =3D VIR_DOMAIN_CHR_SERIAL_TARGET_TYPE_SYSTEM; } else if (ARCH_IS_S390(def->os.arch)) { chr->targetType =3D VIR_DOMAIN_CHR_SERIAL_TARGET_TYPE_SCLP; + } else if (qemuDomainIsPowerNV(def)) { + chr->targetType =3D VIR_DOMAIN_CHR_SERIAL_TARGET_TYPE_ISA; } } =20 --=20 2.34.1