[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH V5 09/14] xen: Introduce the Xen mapcache
From: |
Blue Swirl |
Subject: |
Re: [Qemu-devel] [PATCH V5 09/14] xen: Introduce the Xen mapcache |
Date: |
Sun, 17 Oct 2010 16:16:59 +0000 |
On Mon, Oct 11, 2010 at 4:07 PM, <address@hidden> wrote:
> From: Anthony PERARD <address@hidden>
>
> The mapcache maps chucks of guest memory on demand, unmaps them when
> they are not needed anymore.
>
> Each call to qemu_get_ram_ptr makes a call to qemu_map_cache with the
> lock option, so mapcache will not unmap these ram_ptr.
I'm getting these errors:
/src/qemu/xen-mapcache.c: In function 'qemu_map_cache_init':
/src/qemu/xen-mapcache.c:71: error: large integer implicitly truncated
to unsigned type
/src/qemu/xen-mapcache.c: In function 'qemu_map_cache':
/src/qemu/xen-mapcache.c:173: error: large integer implicitly
truncated to unsigned type
/src/qemu/xen-mapcache.c: In function 'qemu_invalidate_entry':
/src/qemu/xen-mapcache.c:258: error: large integer implicitly
truncated to unsigned type
/src/qemu/xen-mapcache.c: In function 'qemu_invalidate_map_cache':
/src/qemu/xen-mapcache.c:331: error: large integer implicitly
truncated to unsigned type
In all cases, the offending line is:
mapcache->last_address_index = ~0UL;
Since the type of last_address_index is target_phys_addr_t, these should become:
mapcache->last_address_index = (target_phys_addr_t)~0UL;
Changing ~0UL to ~0ULL or -1 may also work.
- [Qemu-devel] [PATCH V5 00/14] xen device model support, anthony . perard, 2010/10/11
- [Qemu-devel] [PATCH V5 02/14] xen: Support new libxc calls from xen unstable., anthony . perard, 2010/10/11
- [Qemu-devel] [PATCH V5 03/14] xen: Add xen_machine_fv, anthony . perard, 2010/10/11
- [Qemu-devel] [PATCH V5 04/14] Introduce -accel command option., anthony . perard, 2010/10/11
- [Qemu-devel] [PATCH V5 01/14] xen: Replace some tab-indents with spaces (clean-up)., anthony . perard, 2010/10/11
- [Qemu-devel] [PATCH V5 05/14] xen: Add xen in -accel option., anthony . perard, 2010/10/11
- [Qemu-devel] [PATCH V5 06/14] xen: Add the Xen platform pci device, anthony . perard, 2010/10/11
- [Qemu-devel] [PATCH V5 07/14] piix_pci: Introduces Xen specific call for irq., anthony . perard, 2010/10/11
- [Qemu-devel] [PATCH V5 08/14] xen: add a 8259 Interrupt Controller, anthony . perard, 2010/10/11
- [Qemu-devel] [PATCH V5 09/14] xen: Introduce the Xen mapcache, anthony . perard, 2010/10/11
- Re: [Qemu-devel] [PATCH V5 09/14] xen: Introduce the Xen mapcache,
Blue Swirl <=
- [Qemu-devel] [PATCH V5 10/14] Introduce qemu_ram_ptr_unlock., anthony . perard, 2010/10/11
- [Qemu-devel] [PATCH V5 11/14] vl.c: Introduce getter for shutdown_requested and reset_requested., anthony . perard, 2010/10/11
- [Qemu-devel] [PATCH V5 13/14] xen: Set running state in xenstore., anthony . perard, 2010/10/11
- [Qemu-devel] [PATCH V5 12/14] xen: Initialize event channels and io rings, anthony . perard, 2010/10/11
- [Qemu-devel] [PATCH V5 14/14] acpi-piix4: Add Xen hypercall for sleep state., anthony . perard, 2010/10/11