qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] 027f15: vmstate-static-checker: update whitel


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] 027f15: vmstate-static-checker: update whitelist
Date: Fri, 06 Feb 2015 03:00:06 -0800

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 027f15696d145803fbafbfcce691444fbf0488fc
      
https://github.com/qemu/qemu/commit/027f15696d145803fbafbfcce691444fbf0488fc
  Author: Amit Shah <address@hidden>
  Date:   2015-02-05 (Thu, 05 Feb 2015)

  Changed paths:
    M scripts/vmstate-static-checker.py

  Log Message:
  -----------
  vmstate-static-checker: update whitelist

Commit 22382bb96c8bd88370c1ff0cb28c3ee6bee79ed3 renamed the
'hw_cursor_x' and 'hw_cursor_y' fields in cirrus_vga.  Update the static
checker's whitelist to allow matching against the old and new names.

Signed-off-by: Amit Shah <address@hidden>
Reviewed-by: Gerd Hoffmann <address@hidden>
Signed-off-by: Amit Shah <address@hidden>
Signed-off-by: Juan Quintela <address@hidden>


  Commit: 6a64b644ac593aca3762644b9585033d7cac0a29
      
https://github.com/qemu/qemu/commit/6a64b644ac593aca3762644b9585033d7cac0a29
  Author: Dr. David Alan Gilbert <address@hidden>
  Date:   2015-02-05 (Thu, 05 Feb 2015)

  Changed paths:
    M migration/vmstate.c
    M savevm.c

  Log Message:
  -----------
  savevm: Convert fprintf to error_report

Convert a bunch of fprintfs to error_reports

Signed-off-by: Dr. David Alan Gilbert <address@hidden>
Signed-off-by: Amit Shah <address@hidden>
Signed-off-by: Juan Quintela <address@hidden>


  Commit: a5df2a0222f424d86d0fd0b50e909af892da7eea
      
https://github.com/qemu/qemu/commit/a5df2a0222f424d86d0fd0b50e909af892da7eea
  Author: Dr. David Alan Gilbert <address@hidden>
  Date:   2015-02-05 (Thu, 05 Feb 2015)

  Changed paths:
    M migration/vmstate.c
    M savevm.c
    M trace-events

  Log Message:
  -----------
  Migration: Add lots of trace events

Mostly on the load side, so that when we get a complaint about
a migration failure we can figure out what it didn't like.

Signed-off-by: Dr. David Alan Gilbert <address@hidden>
Signed-off-by: Amit Shah <address@hidden>
Signed-off-by: Juan Quintela <address@hidden>


  Commit: 0457d07342b175e3d2f0835bef1a67cf75dbc9d6
      
https://github.com/qemu/qemu/commit/0457d07342b175e3d2f0835bef1a67cf75dbc9d6
  Author: Dr. David Alan Gilbert <address@hidden>
  Date:   2015-02-05 (Thu, 05 Feb 2015)

  Changed paths:
    M savevm.c

  Log Message:
  -----------
  Print errors in some of the early migration failure cases.

Signed-off-by: Dr. David Alan Gilbert <address@hidden>
Signed-off-by: Amit Shah <address@hidden>
Signed-off-by: Juan Quintela <address@hidden>


  Commit: 190c882ce219ed89ac7d0633cfd11ad75fb0b46e
      
https://github.com/qemu/qemu/commit/190c882ce219ed89ac7d0633cfd11ad75fb0b46e
  Author: Alexander Graf <address@hidden>
  Date:   2015-02-05 (Thu, 05 Feb 2015)

  Changed paths:
    M Makefile.objs
    A include/qjson.h
    A qjson.c

  Log Message:
  -----------
  QJSON: Add JSON writer

To support programmatic JSON assembly while keeping the code that generates it
readable, this patch introduces a simple JSON writer. It emits JSON serially
into a buffer in memory.

The nice thing about this writer is its simplicity and low memory overhead.
Unlike the QMP JSON writer, this one does not need to spawn QObjects for every
element it wants to represent.

This is a prerequisite for the migration stream format description generator.

Signed-off-by: Alexander Graf <address@hidden>
Signed-off-by: Amit Shah <address@hidden>
Signed-off-by: Juan Quintela <address@hidden>


  Commit: 972214001120e4cf2f4ac35b6ccbd1777b11e060
      
https://github.com/qemu/qemu/commit/972214001120e4cf2f4ac35b6ccbd1777b11e060
  Author: Alexander Graf <address@hidden>
  Date:   2015-02-05 (Thu, 05 Feb 2015)

  Changed paths:
    M include/migration/qemu-file.h
    M migration/qemu-file.c

  Log Message:
  -----------
  qemu-file: Add fast ftell code path

For ftell we flush the output buffer to ensure that we don't have anything
lingering in our internal buffers. This is a very safe thing to do.

However, with the dynamic size measurement that the dynamic vmstate
description will bring this would turn out quite slow.

Instead, we can fast path this specific measurement and just take the
internal buffers into account when telling the kernel our position.

I'm sure I overlooked some corner cases where this doesn't work, so
instead of tuning the safe, existing version, this patch adds a fast
variant of ftell that gets used by the dynamic vmstate description code
which isn't critical when it fails.

Signed-off-by: Alexander Graf <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
Signed-off-by: Amit Shah <address@hidden>
Signed-off-by: Juan Quintela <address@hidden>


  Commit: 8118f0950fc77cce7873002a5021172dd6e040b5
      
https://github.com/qemu/qemu/commit/8118f0950fc77cce7873002a5021172dd6e040b5
  Author: Alexander Graf <address@hidden>
  Date:   2015-02-05 (Thu, 05 Feb 2015)

  Changed paths:
    M hw/pci/pci.c
    M hw/scsi/spapr_vscsi.c
    M hw/virtio/virtio.c
    M include/migration/migration.h
    M include/migration/vmstate.h
    M migration/vmstate.c
    M savevm.c
    M tests/Makefile
    M tests/test-vmstate.c

  Log Message:
  -----------
  migration: Append JSON description of migration stream

One of the annoyances of the current migration format is the fact that
it's not self-describing. In fact, it's not properly describing at all.
Some code randomly scattered throughout QEMU elaborates roughly how to
read and write a stream of bytes.

We discussed an idea during KVM Forum 2013 to add a JSON description of
the migration protocol itself to the migration stream. This patch
adds a section after the VM_END migration end marker that contains
description data on what the device sections of the stream are composed of.

This approach is backwards compatible with any QEMU version reading the
stream, because QEMU just stops reading after the VM_END marker and ignores
any data following it.

With an additional external program this allows us to decipher the
contents of any migration stream and hopefully make migration bugs easier
to track down.

Signed-off-by: Alexander Graf <address@hidden>
Signed-off-by: Amit Shah <address@hidden>
Signed-off-by: Juan Quintela <address@hidden>


  Commit: b17425701d66e4fd380fc492a1da9fc4152ba909
      
https://github.com/qemu/qemu/commit/b17425701d66e4fd380fc492a1da9fc4152ba909
  Author: Alexander Graf <address@hidden>
  Date:   2015-02-05 (Thu, 05 Feb 2015)

  Changed paths:
    A scripts/analyze-migration.py

  Log Message:
  -----------
  Add migration stream analyzation script

This patch adds a python tool to the scripts directory that can read
a dumped migration stream if it contains the JSON description of the
device states. I constructs a human readable JSON stream out of it.

It's very simple to use:

  $ qemu-system-x86_64
    (qemu) migrate "exec:cat > mig"
  $ ./scripts/analyze_migration.py -f mig

Signed-off-by: Alexander Graf <address@hidden>
Signed-off-by: Amit Shah <address@hidden>
Signed-off-by: Juan Quintela <address@hidden>


  Commit: 733252deb8b7d37beacda5976c2769e18642b2fa
      
https://github.com/qemu/qemu/commit/733252deb8b7d37beacda5976c2769e18642b2fa
  Author: Dr. David Alan Gilbert <address@hidden>
  Date:   2015-02-05 (Thu, 05 Feb 2015)

  Changed paths:
    M migration/rdma.c
    M trace-events

  Log Message:
  -----------
  Tracify migration/rdma.c

Turn all the D/DD/DDDPRINTFs into trace events
Turn most of the fprintf(stderr, into error_report

Signed-off-by: Dr. David Alan Gilbert <address@hidden>
Signed-off-by: Amit Shah <address@hidden>
Signed-off-by: Juan Quintela <address@hidden>


  Commit: bb426311901776b95b021cece831b69dce4ef5ee
      
https://github.com/qemu/qemu/commit/bb426311901776b95b021cece831b69dce4ef5ee
  Author: Zhang Haoyu <address@hidden>
  Date:   2015-02-05 (Thu, 05 Feb 2015)

  Changed paths:
    M hw/timer/mc146818rtc.c

  Log Message:
  -----------
  fix mc146818rtc wrong subsection name to avoid vmstate_subsection_load() fail

fix mc146818rtc wrong subsection name to avoid vmstate_subsection_load() fail
during incoming migration or loadvm.

Signed-off-by: Zhang Haoyu <address@hidden>
Reviewed-by: Paolo Bonzini <address@hidden>
Signed-off-by: Juan Quintela <address@hidden>


  Commit: b3cd91e0eaf5c962cf139ce6ca59392c8b00f177
      
https://github.com/qemu/qemu/commit/b3cd91e0eaf5c962cf139ce6ca59392c8b00f177
  Author: Peter Maydell <address@hidden>
  Date:   2015-02-05 (Thu, 05 Feb 2015)

  Changed paths:
    M Makefile.objs
    M hw/pci/pci.c
    M hw/scsi/spapr_vscsi.c
    M hw/timer/mc146818rtc.c
    M hw/virtio/virtio.c
    M include/migration/migration.h
    M include/migration/qemu-file.h
    M include/migration/vmstate.h
    A include/qjson.h
    M migration/qemu-file.c
    M migration/rdma.c
    M migration/vmstate.c
    A qjson.c
    M savevm.c
    A scripts/analyze-migration.py
    M scripts/vmstate-static-checker.py
    M tests/Makefile
    M tests/test-vmstate.c
    M trace-events

  Log Message:
  -----------
  Merge remote-tracking branch 'remotes/juanquintela/tags/migration/20150205' 
into staging

migration/next for 20150205

# gpg: Signature made Thu 05 Feb 2015 16:17:08 GMT using RSA key ID 5872D723
# gpg: Can't check signature: public key not found

* remotes/juanquintela/tags/migration/20150205:
  fix mc146818rtc wrong subsection name to avoid vmstate_subsection_load() fail
  Tracify migration/rdma.c
  Add migration stream analyzation script
  migration: Append JSON description of migration stream
  qemu-file: Add fast ftell code path
  QJSON: Add JSON writer
  Print errors in some of the early migration failure cases.
  Migration: Add lots of trace events
  savevm: Convert fprintf to error_report
  vmstate-static-checker: update whitelist

Signed-off-by: Peter Maydell <address@hidden>


Compare: https://github.com/qemu/qemu/compare/651621b78051...b3cd91e0eaf5

reply via email to

[Prev in Thread] Current Thread [Next in Thread]