mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
tools/bitops: adjust bitmap_or() interface to match hypervisor
Adjust the only toolstack caller to use the new interface. No functional change intended. Signed-off-by: Roger Pau Monné <roger.pau@citrix.com> Acked-by: Anthony PERARD <anthony.perard@vates.tech> Release-Acked-by: Oleksii Kurochko <oleksii.kurochko@gmail.com>
This commit is contained in:
1 parent
87279cafc0
commit
bf90a4aa5e
2 files changed
+6
-4
No files matched your search
@@ -81,14 +81,15 @@ static inline int test_and_set_bit(unsigned long nr, void *addr)
|
|||||||
return oldbit;
|
return oldbit;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void bitmap_or(void *_dst, const void *_other,
|
static inline void bitmap_or(void *_dst, const void *_src1, const void *_src2,
|
||||||
unsigned long nr_bits)
|
unsigned long nr_bits)
|
||||||
{
|
{
|
||||||
char *dst = _dst;
|
char *dst = _dst;
|
||||||
const char *other = _other;
|
const char *src1 = _src1, *src2 = _src2;
|
||||||
unsigned long i;
|
unsigned long i;
|
||||||
|
|
||||||
for ( i = 0; i < bitmap_size(nr_bits); ++i )
|
for ( i = 0; i < bitmap_size(nr_bits); ++i )
|
||||||
dst[i] |= other[i];
|
dst[i] = src1[i] | src2[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* __XEN_TOOLS_BITOPS_H__ */
|
#endif /* __XEN_TOOLS_BITOPS_H__ */
|
||||||
@@ -668,7 +668,8 @@ static int suspend_and_send_dirty(struct xc_sr_context *ctx)
|
|||||||
else
|
else
|
||||||
xc_set_progress_prefix(xch, "Checkpointed save");
|
xc_set_progress_prefix(xch, "Checkpointed save");
|
||||||
|
|
||||||
bitmap_or(dirty_bitmap, ctx->save.deferred_pages, ctx->save.p2m_size);
|
bitmap_or(dirty_bitmap, dirty_bitmap, ctx->save.deferred_pages,
|
||||||
|
ctx->save.p2m_size);
|
||||||
|
|
||||||
if ( !ctx->save.live && ctx->stream_type == XC_STREAM_COLO )
|
if ( !ctx->save.live && ctx->stream_type == XC_STREAM_COLO )
|
||||||
{
|
{
|
||||||
|
|||||||