From nobody Fri Nov 14 21:43:03 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) client-ip=207.211.31.81; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1590490084; cv=none; d=zohomail.com; s=zohoarc; b=VtVKv1T5i/3G4mG6urigOV7eEKrPR4FI7+NLjxELm0bM0uG8h/3Aqf3L2EJ3+UOUfTlTf+xEWDbClTZc8jgXc2L8KKfbOjQg6iJeIe7uKotWb1nzt0G1a89eJYZVhxq8l5uJUfvdXje8jxy1MbzBGJMOH7pE0sUCZ6S4tV9vKFM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1590490084; 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=aUiHfhi5Gp0nud1ff+SWPtAVD40Yy7WeHcr9wpAk2THk6EbnGQ9YzADOhMJlSwzy9uZl+d2VkXzYi4rD/RK0qiU+DTu0+5LrUMZvwdaA/EOiPN++YpeIb9zxPROkmbD8qO1wYHWds0lHy7K+/t609Y0+iXCoEqGVU2LsrERbS3w= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com Return-Path: Received: from us-smtp-delivery-1.mimecast.com (us-smtp-2.mimecast.com [207.211.31.81]) by mx.zohomail.com with SMTPS id 1590490084860417.08530093721674; Tue, 26 May 2020 03:48:04 -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-369-xtpncuG6P_aQRXhXZVzEag-1; Tue, 26 May 2020 06:48:01 -0400 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 B4FA1800688; Tue, 26 May 2020 10:47:55 +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 8F93310013D7; Tue, 26 May 2020 10:47:55 +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 5EC176B494; Tue, 26 May 2020 10:47:55 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 04QAlmgn029857 for ; Tue, 26 May 2020 06:47:48 -0400 Received: by smtp.corp.redhat.com (Postfix) id A9417202696B; Tue, 26 May 2020 10:47:48 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast05.extmail.prod.ext.rdu2.redhat.com [10.11.55.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A37AA202696C for ; Tue, 26 May 2020 10:47:46 +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-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id E9BB4833B45 for ; Tue, 26 May 2020 10:47:45 +0000 (UTC) Received: from mail-ej1-f66.google.com (mail-ej1-f66.google.com [209.85.218.66]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-215-6al28QnoMYmxmLPpHDoz0w-1; Tue, 26 May 2020 06:47:37 -0400 Received: by mail-ej1-f66.google.com with SMTP id n24so23290251ejd.0; Tue, 26 May 2020 03:47:36 -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 c27sm3342597ejd.19.2020.05.26.03.47.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 May 2020 03:47:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1590490083; 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=dK9lQH7VzNgNCpn0/2ogy3diJU13x/RVWwCeXubN6tVeEnO2LfXGRwoZ3oJKvnS379Cue7 TJBv+GWTFRgESNUcOs2h9XvFOy8iDmtBhD/U4x5HKErQv9PiJCaACyKQSNB1AYYC5gFvi2 R92D0f7PeiJysnwW8CxBF2EX4H/u6Pc= X-MC-Unique: xtpncuG6P_aQRXhXZVzEag-1 X-MC-Unique: 6al28QnoMYmxmLPpHDoz0w-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=Z8Wt8DNZJM/zlTsiSpA7+5c6qqiPgwutTGiofqUClJrLnE2/BS8UurPTbC3JyCEHvp chG6QcTXmhtBFi6vj3det8vu3NQxTB2QeaqVSeJeazUjAfRRjoBq47jtNpzhLF9xVgE5 T5TntH//PcWhqHNnNPpCboKdQAkb+rAc9QM7YFJ6aoOkaU8mtO5mEviWTSr0pxWHOe8r asTFjvsPDUFcdS2IAln1FztVMvhrn4HYeUnJGIJDxl7kjchCOvbKpGd6zEnX+m8aLso2 8/bGkTIt/wl8McKojDR5GlYsT48oob+vEk1gQ78FWPkg6gyj9zAXFCbaRdJhKYzh+/zK ndsQ== X-Gm-Message-State: AOAM530T4jH8o/MpIXICO7ED8NYR2I5f4czocXu5/UPd8JjuWdRgONxF IkAJFKY4GWaeoZ9jFJAEub5Rdy7owSc= X-Google-Smtp-Source: ABdhPJyoo+VtWtbHcSdXGZfsOYXDOW8z0e8hYTZTEy6Nhtq3mdrhXEUSSjZ4eLADOLWtHCCFNGEY3w== X-Received: by 2002:a17:906:81ce:: with SMTP id e14mr553124ejx.76.1590490055287; Tue, 26 May 2020 03:47:35 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH 05/14] hw/pci-host/bonito: Map all the Bonito64 I/O range Date: Tue, 26 May 2020 12:47:17 +0200 Message-Id: <20200526104726.11273-6-f4bug@amsat.org> In-Reply-To: <20200526104726.11273-1-f4bug@amsat.org> References: <20200526104726.11273-1-f4bug@amsat.org> MIME-Version: 1.0 X-Mimecast-Spam-Signature: yes X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 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.84 on 10.5.11.22 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