From nobody Fri Nov 14 21:47:16 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) client-ip=205.139.110.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=amsat.org ARC-Seal: i=1; a=rsa-sha256; t=1590500008; cv=none; d=zohomail.com; s=zohoarc; b=Qv4tAykgLLO80Y4+Wgpuy7xYsXJ6c0kcUQUn5LvAzblXc4h8nQPgnosjBOFp6zyuKkD8lNIbylJbFBz25b9+6+vgM1u6bLzJRGAL7MXHJ3IZyZIJKhBOCiosPfn45pp6sW/VudFOzR5i5bTIdbxfqLiNM0SVoN+stP3mcGBrruc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1590500008; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=QG/Ao1FLrrqA3qiyJ5oTk9vVoadIo9/g3miLYRH/cTM=; b=TwOxYp8FQDWis7w9YoVVh3z7kI42lX8NMObzhY3lP9Gq6WXCqueg4kFFPAN5LkooxDzmboP1vI8tOIm7yEpez+x5KKpFb8oPP9QHR4VHvu2FNy7C4n8gDLkXC5Vlh6fd2xV+FDM/8mQVh/Asp6nuOQbZjp7zZnHMYk+tSzkq6iA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) by mx.zohomail.com with SMTPS id 1590500008961505.1175975579006; Tue, 26 May 2020 06:33:28 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-432-xPXJQgORPVumDLkyb0aXSQ-1; Tue, 26 May 2020 09:33:22 -0400 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 9AB9787308E; Tue, 26 May 2020 13:33:14 +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 7A7C0703A1; Tue, 26 May 2020 13:33:14 +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 478111806B0A; Tue, 26 May 2020 13:33:14 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 04QDXBE5012469 for ; Tue, 26 May 2020 09:33:11 -0400 Received: by smtp.corp.redhat.com (Postfix) id 9F7322156A50; Tue, 26 May 2020 13:33:11 +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 81A5D2156A3B for ; Tue, 26 May 2020 13:33:09 +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-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 0109C8F7A0C for ; Tue, 26 May 2020 13:33:08 +0000 (UTC) Received: from mail-ed1-f65.google.com (mail-ed1-f65.google.com [209.85.208.65]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-284-7TSSnMzeOLKygmK-TgXDfg-1; Tue, 26 May 2020 09:32:59 -0400 Received: by mail-ed1-f65.google.com with SMTP id g9so17643658edw.10; Tue, 26 May 2020 06:32:57 -0700 (PDT) Received: from x1w.redhat.com (71.red-88-21-204.staticip.rima-tde.net. [88.21.204.71]) by smtp.gmail.com with ESMTPSA id n25sm1623084edo.56.2020.05.26.06.32.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 May 2020 06:32:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1590500006; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=QG/Ao1FLrrqA3qiyJ5oTk9vVoadIo9/g3miLYRH/cTM=; b=PeH+WlE00LB+fFQtp7fcWUA1WxMokHKZOrP3JbV6vKk7mVmHTbQLKL0uhphreVsqne4TEE SUYTz36QqobB635cnxMYo2UrRUGVXsdJumBL3MLPyF3L6SxczeHh1WeHawcJyRYm2aMxAc L1h/8YPnxrIyTgECkw+cgR0/noDWjq4= X-MC-Unique: xPXJQgORPVumDLkyb0aXSQ-1 X-MC-Unique: 7TSSnMzeOLKygmK-TgXDfg-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=QG/Ao1FLrrqA3qiyJ5oTk9vVoadIo9/g3miLYRH/cTM=; b=GKxZ1K+j7tHfb4JH7jH9LF5vzSGoR4rH07jni6ElUnmmbjDxT6RIwn/BjU6oRKb0yI bytJ7mR/qhj/HNAVl51CXhkP7OgXtK7wZD/+pj2VSStpW7FppCJVHyMhELCkD51Th3ER tXlPjJLBGy7gILkhmS2qSrgBGOKBnbCJTVMjaBv4r8BLB1A6w6vC3GBKBCrnaUH/bAIk pXOYmZ6aen0deNbmI/bVmf/Mdq6GNCJXFhenlA70gGF7bjVpmXuAia/GQ4omB1fi62N9 G2zskIUx5b1+2Bu0wWNWpqAoo9LWIV2Q+PGZCovKDMklXSCapt9FB+WibrIHXyiH3bf+ RWdg== X-Gm-Message-State: AOAM531w4ANfLxhjLghE4BqUHzEcyTnUGb+NtgFvOaTv6etYKXs1lW14 rNEq8KSb2zMB89sm2z7KHsk= X-Google-Smtp-Source: ABdhPJyWdSXLY9491hDMgvcO33Na4sZlNb+WpZ5LUv3lhSQND6DBAw8s+jS6/Bs6Ye2KVS6u5zVdgg== X-Received: by 2002:aa7:c444:: with SMTP id n4mr19857088edr.308.1590499977017; Tue, 26 May 2020 06:32:57 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 05/14] hw/pci-host/bonito: Map all the Bonito64 I/O range Date: Tue, 26 May 2020 15:32:38 +0200 Message-Id: <20200526133247.13066-6-f4bug@amsat.org> In-Reply-To: <20200526133247.13066-1-f4bug@amsat.org> References: <20200526133247.13066-1-f4bug@amsat.org> MIME-Version: 1.0 X-Mimecast-Spam-Signature: yes X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-loop: libvir-list@redhat.com Cc: Laurent Vivier , Aleksandar Rikalo , libvir-list@redhat.com, Thomas Huth , Jiaxun Yang , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Markovic , Huacai Chen , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aurelien Jarno 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 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8"; text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) To ease following guest accesses to the Bonito64 chipset, map its I/O range as UnimplementedDevice. We can now see the accesses to unimplemented peripheral using the '-d unimp' command line option. Reviewed-by: Aleksandar Markovic Message-id: <20200510210128.18343-9-f4bug@amsat.org> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/pci-host/bonito.c | 3 +++ hw/pci-host/Kconfig | 1 + 2 files changed, 4 insertions(+) diff --git a/hw/pci-host/bonito.c b/hw/pci-host/bonito.c index b90e5a636d..f09bb1c6a8 100644 --- a/hw/pci-host/bonito.c +++ b/hw/pci-host/bonito.c @@ -48,6 +48,7 @@ #include "sysemu/reset.h" #include "sysemu/runstate.h" #include "exec/address-spaces.h" +#include "hw/misc/unimp.h" =20 /* #define DEBUG_BONITO */ =20 @@ -644,6 +645,8 @@ static void bonito_realize(PCIDevice *dev, Error **errp) sysbus_init_mmio(sysbus, &phb->data_mem); sysbus_mmio_map(sysbus, 2, BONITO_SPCICONFIG_BASE); =20 + create_unimplemented_device("bonito", BONITO_REG_BASE, BONITO_REG_SIZE= ); + memory_region_init_io(&s->iomem_ldma, OBJECT(s), &bonito_ldma_ops, s, "ldma", 0x100); sysbus_init_mmio(sysbus, &s->iomem_ldma); diff --git a/hw/pci-host/Kconfig b/hw/pci-host/Kconfig index 8db41edc7e..036a61877a 100644 --- a/hw/pci-host/Kconfig +++ b/hw/pci-host/Kconfig @@ -58,4 +58,5 @@ config PCI_EXPRESS_DESIGNWARE =20 config PCI_BONITO select PCI + select UNIMP bool --=20 2.21.3