Skip to content
Snippets Groups Projects
  1. Apr 27, 2023
  2. Oct 22, 2022
  3. Jul 18, 2022
  4. Feb 07, 2020
  5. Nov 25, 2019
  6. Jun 08, 2018
  7. Feb 28, 2017
  8. Jun 17, 2016
  9. Feb 05, 2016
  10. Feb 05, 2015
  11. Aug 04, 2014
    • Amit Shah's avatar
      checker: ignore fields marked unused · 32ce1b48
      Amit Shah authored
      
      While comparing qemu-1.0 json output with qemu-2.1, a few fields got
      marked unused.  These need to be skipped over, and not flagged as
      mismatches.
      
      For handling unused fields, the exact number of bytes need to be skipped
      over as the size of the unused field.
      
      Currently, only the term "unused" is matched.  When more field names
      turn up, this will have to be updated based on the whitelist matching
      method to match more such terms.
      
      Signed-off-by: default avatarAmit Shah <amit.shah@redhat.com>
      32ce1b48
  12. Jul 22, 2014
  13. Jul 16, 2014
  14. Jun 23, 2014
    • Amit Shah's avatar
      vmstate-static-checker: script to validate vmstate changes · 426d1d01
      Amit Shah authored
      
      This script compares the vmstate dumps in JSON format as output by QEMU
      with the -dump-vmstate option.
      
      It flags various errors, like version mismatch, sections going away,
      size mismatches, etc.
      
      This script is tolerant of a few changes that do not change the on-wire
      format, like embedding a few fields within substructs.
      
      The script takes -s/--src and -d/--dest parameters, to which filenames
      are given as arguments.
      
      Example:
      
      (in a qemu 2.0 tree):
      ./x86_64-softmmu/qemu-system-x86_64 -dump-vmstate qemu-2.0.json
      
      (in a qemu 2.2 tree:)
      ./x86_64-softmmu/qemu-system-x86_64 -dump-vmstate -M pc-i440fx-2.0 \
         qemu-2.2-m2.0.json
      
      ./scripts/vmstate-static-checker.py -s qemu-2.0.json -d qemu-2.2-m2.0.json
      
      The script also takes a --reverse parameter to switch the src and dest
      jsons.  This is just a shorthand for reversing the src and dest.
      
      The --help parameter shows usage information.
      
      Signed-off-by: default avatarAmit Shah <amit.shah@redhat.com>
      Signed-off-by: default avatarJuan Quintela <quintela@redhat.com>
      426d1d01
Loading