[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: [PATCH RFC V4 10/14] Introduce qemu_ram_ptr_unlock.
From: |
Stefano Stabellini |
Subject: |
[Qemu-devel] Re: [PATCH RFC V4 10/14] Introduce qemu_ram_ptr_unlock. |
Date: |
Tue, 28 Sep 2010 16:25:08 +0100 |
User-agent: |
Alpine 2.00 (DEB 1167 2008-08-23) |
On Tue, 28 Sep 2010, Anthony Liguori wrote:
> On 09/28/2010 10:01 AM, address@hidden wrote:
> > From: Anthony PERARD<address@hidden>
> >
> > This function allows to unlock a ram_ptr give by qemu_get_ram_ptr. After
> > a call to qemu_ram_ptr_unlock, the pointer may be unmap from QEMU when
> > used with Xen.
> >
> > Signed-off-by: Anthony PERARD<address@hidden>
> >
>
> Why isn't hooking cpu_physical_memory_{map,unmap}() not enough? That's
> really the intention of the API.
>
> You only really care about guest RAM, not device memory, correct?
Yes, however at the moment all the calls to qemu_get_ram_ptr imply the
mapping in qemu address space to remain valid for an unlimited amount of
time.
While we can do that because now the mapcache allows to "lock" a
mapping, it would be nice if an explicit qemu_ram_ptr_unlock would be
provided. It is not required for xen support though.
- [Qemu-devel] [PATCH RFC V4 08/14] xen: add a 8259 Interrupt Controller, (continued)
- [Qemu-devel] [PATCH RFC V4 08/14] xen: add a 8259 Interrupt Controller, anthony . perard, 2010/09/28
- [Qemu-devel] [PATCH RFC V4 02/14] xen: Support new libxc calls from xen unstable., anthony . perard, 2010/09/28
- [Qemu-devel] [PATCH RFC V4 12/14] xen: Initialize event channels and io rings, anthony . perard, 2010/09/28
- [Qemu-devel] [PATCH RFC V4 07/14] piix_pci: Introduces Xen specific call for irq., anthony . perard, 2010/09/28
- [Qemu-devel] [PATCH RFC V4 11/14] vl.c: Introduce getter for shutdown_requested and reset_requested., anthony . perard, 2010/09/28
- [Qemu-devel] [PATCH RFC V4 09/14] xen: Introduce the Xen mapcache, anthony . perard, 2010/09/28
- [Qemu-devel] [PATCH RFC V4 14/14] xen: Add a Xen specific ACPI Implementation to target-xen, anthony . perard, 2010/09/28
- [Qemu-devel] [PATCH RFC V4 13/14] xen: Set running state in xenstore., anthony . perard, 2010/09/28
- [Qemu-devel] [PATCH RFC V4 10/14] Introduce qemu_ram_ptr_unlock., anthony . perard, 2010/09/28
- Re: [Qemu-devel] Re: [PATCH RFC V4 10/14] Introduce qemu_ram_ptr_unlock., Gerd Hoffmann, 2010/09/29
[Qemu-devel] [PATCH RFC V4 05/14] xen: Add xen in -accel option., anthony . perard, 2010/09/28
[Qemu-devel] [PATCH RFC V4 06/14] xen: Add the Xen platform pci device, anthony . perard, 2010/09/28