[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 1/8] enable sharing of the function between m
From: |
Juan Quintela |
Subject: |
Re: [Qemu-devel] [PATCH v2 1/8] enable sharing of the function between migration and bitmap dump |
Date: |
Wed, 04 Jun 2014 12:07:18 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
Sanidhya Kashyap <address@hidden> wrote:
> As advised by Eric, I have enabled sharing of the function between of the
> function that syncs the dirty bitmap obtained via kvm ioctl. I have tried
> to make the least changes to the functions by concentrating only on the
> function definitions.
>
> Signed-off-by: Sanidhya Kashyap <address@hidden>
> ---
> arch_init.c | 19 +++++++++++--------
> include/exec/ram_addr.h | 4 ++++
> 2 files changed, 15 insertions(+), 8 deletions(-)
>
> diff --git a/arch_init.c b/arch_init.c
> index 685ba0e..48eb90a 100644
> --- a/arch_init.c
> +++ b/arch_init.c
> @@ -434,20 +434,22 @@ ram_addr_t
> migration_bitmap_find_and_reset_dirty(MemoryRegion *mr,
> return (next - base) << TARGET_PAGE_BITS;
> }
>
> -static inline bool migration_bitmap_set_dirty(ram_addr_t addr)
> +static inline bool bitmap_set_dirty(ram_addr_t addr, unsigned long *bitmap,
> + bool migration_flag)
Exporting a function without a prefix could be dangerous.
Later, Juan.
[Qemu-devel] [PATCH v2 2/8] bitmap dump code via QAPI framework, Sanidhya Kashyap, 2014/06/04
[Qemu-devel] [PATCH v2 3/8] RunState: added two new flags for bitmap dump and migration process, Sanidhya Kashyap, 2014/06/04
[Qemu-devel] [PATCH v2 4/8] bitmap dump process with runstates, Sanidhya Kashyap, 2014/06/04
[Qemu-devel] [PATCH v2 5/8] hmp interface for dirty bitmap dump, Sanidhya Kashyap, 2014/06/04