From: David Gibson <david@gibson.dropbear.id.au>
To: Alexey Kardashevskiy <aik@ozlabs.ru>
Cc: qemu-ppc@nongnu.org, qemu-devel@nongnu.org,
Alexander Graf <agraf@suse.de>
Subject: Re: [Qemu-devel] [PATCH 10/10] spapr_iommu: Give unique QOM name to TCE table
Date: Tue, 24 Feb 2015 16:09:18 +1100 [thread overview]
Message-ID: <20150224050918.GK4536@voom.redhat.com> (raw)
In-Reply-To: <1424680440-10913-11-git-send-email-aik@ozlabs.ru>
[-- Attachment #1: Type: text/plain, Size: 1466 bytes --]
On Mon, Feb 23, 2015 at 07:34:00PM +1100, Alexey Kardashevskiy wrote:
> Useful for debugging.
>
> Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
> ---
> hw/ppc/spapr_iommu.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/hw/ppc/spapr_iommu.c b/hw/ppc/spapr_iommu.c
> index 65ee001..4f4836c 100644
> --- a/hw/ppc/spapr_iommu.c
> +++ b/hw/ppc/spapr_iommu.c
> @@ -160,6 +160,7 @@ sPAPRTCETable *spapr_tce_new_table(DeviceState *owner, uint32_t liobn,
> bool vfio_accel)
> {
> sPAPRTCETable *tcet;
> + char tmp[64];
>
> if (spapr_tce_find_by_liobn(liobn)) {
> fprintf(stderr, "Attempted to create TCE table with duplicate"
> @@ -178,7 +179,8 @@ sPAPRTCETable *spapr_tce_new_table(DeviceState *owner, uint32_t liobn,
> tcet->nb_table = nb_table;
> tcet->vfio_accel = vfio_accel;
>
> - object_property_add_child(OBJECT(owner), "tce-table", OBJECT(tcet), NULL);
> + snprintf(tmp, sizeof(tmp), "tce-table-%x", liobn);
> + object_property_add_child(OBJECT(owner), tmp, OBJECT(tcet), NULL);
>
> object_property_set_bool(OBJECT(tcet), true, "realized", NULL);
>
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2015-02-24 5:39 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-23 8:33 [Qemu-devel] [PATCH 00/10] spapr: Small patches to prepare for Dynamic DMA windows Alexey Kardashevskiy
2015-02-23 8:33 ` [Qemu-devel] [PATCH 01/10] spapr_iommu: Disable in-kernel IOMMU tables for >4GB windows Alexey Kardashevskiy
2015-02-23 8:33 ` [Qemu-devel] [PATCH 02/10] spapr_iommu: Make H_PUT_TCE_INDIRECT endian-safe Alexey Kardashevskiy
2015-02-23 8:33 ` [Qemu-devel] [PATCH 03/10] spapr_pci: Introduce a liobn number generating macros Alexey Kardashevskiy
2015-02-23 8:33 ` [Qemu-devel] [PATCH 04/10] spapr_vio: " Alexey Kardashevskiy
2015-02-23 8:33 ` [Qemu-devel] [PATCH 05/10] spapr_pci: Define default DMA window size as a macro Alexey Kardashevskiy
2015-02-24 5:01 ` David Gibson
2015-02-23 8:33 ` [Qemu-devel] [PATCH 06/10] spapr_iommu: Add separate trace points for PCI DMA operations Alexey Kardashevskiy
2015-02-24 5:11 ` David Gibson
2015-02-23 8:33 ` [Qemu-devel] [PATCH 07/10] spapr_pci: Make find_phb()/find_dev() public Alexey Kardashevskiy
2015-02-23 8:33 ` [Qemu-devel] [PATCH 08/10] spapr_iommu: Make spapr_tce_find_by_liobn() public Alexey Kardashevskiy
2015-02-23 8:33 ` [Qemu-devel] [PATCH 09/10] spapr_pci: Rework device-tree rendering Alexey Kardashevskiy
2015-02-24 5:03 ` David Gibson
2015-02-23 8:34 ` [Qemu-devel] [PATCH 10/10] spapr_iommu: Give unique QOM name to TCE table Alexey Kardashevskiy
2015-02-24 5:09 ` David Gibson [this message]
2015-03-10 3:51 ` [Qemu-devel] [PATCH 00/10] spapr: Small patches to prepare for Dynamic DMA windows Alexey Kardashevskiy
2015-03-17 11:03 ` Alexey Kardashevskiy
2015-03-24 6:12 ` David Gibson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150224050918.GK4536@voom.redhat.com \
--to=david@gibson.dropbear.id.au \
--cc=agraf@suse.de \
--cc=aik@ozlabs.ru \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).