[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [PATCH v4 03/12] vfio: Add guest side IOMMU support
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-ppc] [PATCH v4 03/12] vfio: Add guest side IOMMU support |
Date: |
Wed, 11 Sep 2013 08:15:14 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130805 Thunderbird/17.0.8 |
Il 11/09/2013 00:02, Alex Williamson ha scritto:
>>> > > I would hope that when you do the below
>>> > > memory_region_register_iommu_notifier() the callback gets a replay of
>>> > > the current state of the iommu like we do for a memory region when we
>>> > > register the listener that gets us here. Is that not the case?
>> >
>> >
>> > From what I see, it just adds a notifier:
>> >
>> > void memory_region_register_iommu_notifier(MemoryRegion *mr, Notifier *n)
>> > {
>> > notifier_list_add(&mr->iommu_notify, n);
>> > }
> Ok, that's too bad. I guess your comment is justified then.
>
That can be fixed by adding a new element ("replay") to the
MemoryRegionIOMMUOps. It can be a follow-up.
Paolo