[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 11/34] memory: add memory_region_is_mapped()
From: |
Igor Mammedov |
Subject: |
Re: [Qemu-devel] [PATCH v3 11/34] memory: add memory_region_is_mapped() API |
Date: |
Fri, 30 May 2014 09:56:55 +0200 |
On Thu, 29 May 2014 17:28:34 +0200
Paolo Bonzini <address@hidden> wrote:
> Il 29/05/2014 16:22, Peter Crosthwaite ha scritto:
> >> >
> >> > +bool memory_region_is_mapped(MemoryRegion *mr)
> >> > +{
> > Is it not enough to just return mr->parent? Memory mapping assertion
> > will happen if you try and map the same twice, even if one of the
> > mappings is not contained within an AddressSpace. Checking for just
> > the parent mr may be a simpler and more accurate check.
>
> I can see a difference if the memory region is completely overlapped by
> a higher-priority one. Igor, what was your idea with this function?
Idea was to let know the caller that it's safe to map this region
so mapping won't assert.
I guess Peter's suggestion just to check parent should work in this case.
>
> Paolo
--
Regards,
Igor
- Re: [Qemu-devel] [PATCH v3 06/34] vl.c: extend -m option to support options for memory hotplug, (continued)
- [Qemu-devel] [PATCH v3 01/34] machine: Conversion of QEMUMachineInitArgs to MachineState, Igor Mammedov, 2014/05/27
- [Qemu-devel] [PATCH v3 07/34] pc: create custom generic PC machine type, Igor Mammedov, 2014/05/27
- [Qemu-devel] [PATCH v3 09/34] qdev: expose DeviceState.hotplugged field as a property, Igor Mammedov, 2014/05/27
- [Qemu-devel] [PATCH v3 08/34] qdev: hotplug for buss-less devices, Igor Mammedov, 2014/05/27
- [Qemu-devel] [PATCH v3 10/34] dimm: implement dimm device abstraction, Igor Mammedov, 2014/05/27
- [Qemu-devel] [PATCH v3 11/34] memory: add memory_region_is_mapped() API, Igor Mammedov, 2014/05/27
- [Qemu-devel] [PATCH v3 13/34] pc: initialize memory hotplug address space, Igor Mammedov, 2014/05/27
- [Qemu-devel] [PATCH v3 14/34] pc: exit QEMU if number of slots more than supported 256, Igor Mammedov, 2014/05/27
- [Qemu-devel] [PATCH v3 17/34] pc: add memory hotplug handler to PC_MACHINE, Igor Mammedov, 2014/05/27
- [Qemu-devel] [PATCH v3 18/34] dimm: add busy address check and address auto-allocation, Igor Mammedov, 2014/05/27
- [Qemu-devel] [PATCH v3 22/34] trace: add acpi memory hotplug IO region events, Igor Mammedov, 2014/05/27
- [Qemu-devel] [PATCH v3 21/34] acpi: memory hotplug ACPI hardware implementation, Igor Mammedov, 2014/05/27
- [Qemu-devel] [PATCH v3 23/34] trace: pc: add DIMM slot & address allocation, Igor Mammedov, 2014/05/27
- [Qemu-devel] [PATCH v3 24/34] acpi:piix4: allow plug/unlug callbacks handle not only PCI devices, Igor Mammedov, 2014/05/27