diff options
| author | Amit Shah <amit.shah@redhat.com> | 2012-11-21 11:21:18 +0530 |
|---|---|---|
| committer | Anthony Liguori <aliguori@us.ibm.com> | 2012-11-26 14:26:37 -0600 |
| commit | 14417039653d3293a795646730a7bf5055d78709 (patch) | |
| tree | 4c32716c715f9dbc1a8b547fef715d3ec30d2706 /scripts/tracetool/backend/dtrace.py | |
| parent | 25d87288b150032fedcf7b5380fb54fdbdd6788d (diff) | |
| download | focaccia-qemu-14417039653d3293a795646730a7bf5055d78709.tar.gz focaccia-qemu-14417039653d3293a795646730a7bf5055d78709.zip | |
virtio-rng: use virtqueue_get_avail_bytes, fix migration
Popping an elem from the vq just to find out its length causes problems with save/load later on. Use the new virtqueue_get_avail_bytes() function instead, saves us the complexity in the migration code, as well as makes the migration endian-safe. Signed-off-by: Amit Shah <amit.shah@redhat.com> Reviewed-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'scripts/tracetool/backend/dtrace.py')
0 files changed, 0 insertions, 0 deletions