Skip to contentSkip to conversation

compilation error due to bug in savevm.c

Qemu-devel Evgeny Voevodin 3 participants 4 messages Aug 15, 2012 – Jun 20, 2016

lore
Share & tools
lore

Evgeny Voevodin

author Reviewed-by Luiz Capitulino Reviewed-by Eric Blake
#0 lore raw

Public bug reported:

Since

302dfbeb21fc5154c24ca50d296e865a3778c7da

Add xbzrle_encode_buffer and xbzrle_decode_buffer functions

For performance we are encoding long word at a time.
For nzrun we use long-word-at-a-time NULL-detection tricks from strcmp():
using ((lword - 0x0101010101010101) & (~lword) & 0x8080808080808080) test to find out if any byte in the long word is zero.

commit arrived into master barnch, I can't compile qemu at all:

savevm.c:2476:13: error: overflow in implicit constant conversion [-Werror=overflow]

** Affects: qemu
Importance: Undecided
Status: New

Signature · 38 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1036987

Title:
  compilation error due to bug in savevm.c

Status in QEMU:
  New

Bug description:
  Since

  302dfbeb21fc5154c24ca50d296e865a3778c7da

  Add xbzrle_encode_buffer and xbzrle_decode_buffer functions
      
      For performance we are encoding long word at a time.
      For nzrun we use long-word-at-a-time NULL-detection tricks from strcmp():
      using ((lword - 0x0101010101010101) & (~lword) & 0x8080808080808080) test
      to find out if any byte in the long word is zero.
      
      Signed-off-by: Benoit Hudzia <[email protected]>
      Signed-off-by: Petter Svard <[email protected]>
      Signed-off-by: Aidan Shribman <[email protected]>
      Signed-off-by: Orit Wasserman <[email protected]>
      Signed-off-by: Eric Blake <[email protected]>
      
      Reviewed-by: Luiz Capitulino <[email protected]>
      Reviewed-by: Eric Blake <[email protected]>

   commit arrived into master barnch, I can't compile qemu at all:

  savevm.c:2476:13: error: overflow in implicit constant conversion
  [-Werror=overflow]

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1036987/+subscriptions
#1 lore raw
Quoted 9 lines · Evgeny Voevodin

Since

302dfbeb21fc5154c24ca50d296e865a3778c7da

Add xbzrle_encode_buffer and xbzrle_decode_buffer functions
commit arrived into master barnch, I can't compile qemu at all:

savevm.c:2476:13: error: overflow in implicit constant conversion [-Werror=overflow]

Fixed by this patch by Alex yesterday:
http://patchwork.ozlabs.org/patch/177217/

(not yet in master)

-- PMM

#2 lore raw
In reply to Evgeny Voevodin

Patch is available at http://patchwork.ozlabs.org/patch/177217/

** Changed in: qemu
Status: New => Fix Committed

Signature · 38 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1036987

Title:
  compilation error due to bug in savevm.c

Status in QEMU:
  Fix Committed

Bug description:
  Since

  302dfbeb21fc5154c24ca50d296e865a3778c7da

  Add xbzrle_encode_buffer and xbzrle_decode_buffer functions
      
      For performance we are encoding long word at a time.
      For nzrun we use long-word-at-a-time NULL-detection tricks from strcmp():
      using ((lword - 0x0101010101010101) & (~lword) & 0x8080808080808080) test
      to find out if any byte in the long word is zero.
      
      Signed-off-by: Benoit Hudzia <[email protected]>
      Signed-off-by: Petter Svard <[email protected]>
      Signed-off-by: Aidan Shribman <[email protected]>
      Signed-off-by: Orit Wasserman <[email protected]>
      Signed-off-by: Eric Blake <[email protected]>
      
      Reviewed-by: Luiz Capitulino <[email protected]>
      Reviewed-by: Eric Blake <[email protected]>

   commit arrived into master barnch, I can't compile qemu at all:

  savevm.c:2476:13: error: overflow in implicit constant conversion
  [-Werror=overflow]

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1036987/+subscriptions
#3 lore raw
In reply to Evgeny Voevodin

http://git.qemu.org/?p=qemu.git;a=commitdiff;h=a5b71725c7067f6805eb30

** Changed in: qemu
Status: Fix Committed => Fix Released

Signature · 38 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1036987

Title:
  compilation error due to bug in savevm.c

Status in QEMU:
  Fix Released

Bug description:
  Since

  302dfbeb21fc5154c24ca50d296e865a3778c7da

  Add xbzrle_encode_buffer and xbzrle_decode_buffer functions
      
      For performance we are encoding long word at a time.
      For nzrun we use long-word-at-a-time NULL-detection tricks from strcmp():
      using ((lword - 0x0101010101010101) & (~lword) & 0x8080808080808080) test
      to find out if any byte in the long word is zero.
      
      Signed-off-by: Benoit Hudzia <[email protected]>
      Signed-off-by: Petter Svard <[email protected]>
      Signed-off-by: Aidan Shribman <[email protected]>
      Signed-off-by: Orit Wasserman <[email protected]>
      Signed-off-by: Eric Blake <[email protected]>
      
      Reviewed-by: Luiz Capitulino <[email protected]>
      Reviewed-by: Eric Blake <[email protected]>

   commit arrived into master barnch, I can't compile qemu at all:

  savevm.c:2476:13: error: overflow in implicit constant conversion
  [-Werror=overflow]

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1036987/+subscriptions