From nobody Sun Feb 8 10:09:31 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 1645622578368293.1558076885125; Wed, 23 Feb 2022 05:22:58 -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-398-rwL8V_9WN2inkHUcrBlYHg-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 8F4BF8015F9; Wed, 23 Feb 2022 13:22:44 +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 672BB7D3D9; Wed, 23 Feb 2022 13:22:44 +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 3243E44A62; Wed, 23 Feb 2022 13:22:44 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 21NDKB2i029697 for ; Wed, 23 Feb 2022 08:20:11 -0500 Received: by smtp.corp.redhat.com (Postfix) id 97E99400E135; Wed, 23 Feb 2022 13:20:11 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast02.extmail.prod.ext.rdu2.redhat.com [10.11.55.18]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 93D4040D2962 for ; Wed, 23 Feb 2022 13:20:11 +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 7C2D1800883 for ; Wed, 23 Feb 2022 13:20:11 +0000 (UTC) Received: from mail-oi1-f175.google.com (mail-oi1-f175.google.com [209.85.167.175]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-215-AOgN-TaIOXyaDCD5O5VU5w-1; Wed, 23 Feb 2022 08:20:09 -0500 Received: by mail-oi1-f175.google.com with SMTP id k2so14431292oia.2 for ; Wed, 23 Feb 2022 05:20:09 -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.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Feb 2022 05:20:08 -0800 (PST) X-MC-Unique: rwL8V_9WN2inkHUcrBlYHg-1 X-MC-Unique: AOgN-TaIOXyaDCD5O5VU5w-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=WuLtYZRJFmUC19hm95iC6VLrQnAG4DvmKcM50SLh2sM=; b=RPlnBtoWNtWovB1cntb1VXBM979PVcnyo3MUznFYvugWreIAu9pUDgqVchDWiCj76e bru6QnhU02yaJQfdfziooIRh8dQZC3TBU+YjtFFk6mA1mO+a5ETeQaEkNQH0JcZsc5N9 FPj5fbrSDXqhVJ0o+Ik08DdgGa9J1sNM0L6hTHbVIvj61ZaNus6TD1sQPN5FvkxSqP4u 6zT/0x853i8nszDVD70EoCbGvMcAOI1eCzvpykBt8FsLLRfyZPacb0wLd1qjzLmc8Esf cDXQvEZQZsaHXunUCDwwcr9aE9Jn1g101vZJmTFYozByZ61k2rFJuGHyz4erlDJCBAOO QM6w== X-Gm-Message-State: AOAM533/qyS0NHMk8sJw91WvC9746od/M8JH5N5LiHHw6Y+U/c9kreE6 W/2z+YbBHFRyvKmnRKxGolYn6JlfdpM= X-Google-Smtp-Source: ABdhPJxzPU74WH1WpTT+GUURrk5bonCon6sZn2QYtDkD4lJwpNSAQuM62eBR91pSzBYSayMfg1oImw== X-Received: by 2002:a05:6808:30a3:b0:2d5:2019:97ac with SMTP id bl35-20020a05680830a300b002d5201997acmr4305733oib.40.1645622408575; Wed, 23 Feb 2022 05:20:08 -0800 (PST) From: Daniel Henrique Barboza To: libvir-list@redhat.com Subject: [PATCH v3 05/29] qemu_domain.c: define ISA as default PowerNV serial Date: Wed, 23 Feb 2022 10:19:28 -0300 Message-Id: <20220223131952.922228-6-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.84 on 10.11.54.2 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: 1645622579521100001 The PowerNV machines uses ISA as the default serial type. Reviewed-by: J=C3=A1n Tomko Reviewed-by: Peter Krempa Signed-off-by: Daniel Henrique Barboza --- 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 0352cad985..c81c63369c 100644 --- a/src/qemu/qemu_domain.c +++ b/src/qemu/qemu_domain.c @@ -5187,6 +5187,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.35.1