[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 19/23] memory: per-AddressSpace dispatch
From: |
liu ping fan |
Subject: |
Re: [Qemu-devel] [PATCH v3 19/23] memory: per-AddressSpace dispatch |
Date: |
Thu, 11 Oct 2012 16:45:08 +0800 |
On Thu, Oct 11, 2012 at 4:31 PM, Avi Kivity <address@hidden> wrote:
> On 10/11/2012 05:38 AM, liu ping fan wrote:
>>>
>>> +void address_space_init_dispatch(AddressSpace *as)
>>> +{
>>> + AddressSpaceDispatch *d = g_new(AddressSpaceDispatch, 1);
>>> +
>>> + d->phys_map = (PhysPageEntry) { .ptr = PHYS_MAP_NODE_NIL, .is_leaf =
>>> 0 };
>>> + d->listener = (MemoryListener) {
>>> + .begin = mem_begin,
>>> + .region_add = mem_add,
>>
>> mem_add() has the fixed mapping relationship between addr(in
>> system_memory) and mr. If we want to fold lookup logic of iommu into
>> radix-tree, it will need external behavior. So I think
>> address_space_init_dispatch(as) should be
>> address_space_init_dispatch(as, listener).
>
> This is per address space, it's not tied to system_memory().
>
Then, where do we implement iommu translation logic? Above the radix-tree?
>
> --
> error compiling committee.c: too many arguments to function
- [Qemu-devel] [PATCH v3 23/23] pci: honor PCI_COMMAND_MASTER, (continued)
[Qemu-devel] [PATCH v3 11/23] xen_pt: drop no-op MemoryListener callbacks, Avi Kivity, 2012/10/09
[Qemu-devel] [PATCH v3 16/23] memory: move tcg flush into a tcg memory listener, Avi Kivity, 2012/10/09
[Qemu-devel] [PATCH v3 05/23] memory: prepare AddressSpace for exporting, Avi Kivity, 2012/10/09
Message not available
Re: [Qemu-devel] [PULL v3 00/23] Integrate DMA into the memory API, Anthony Liguori, 2012/10/11