]> git.proxmox.com Git - mirror_qemu.git/commit
hyperv_testdev: refactor for better maintainability
authorRoman Kagan <rkagan@virtuozzo.com>
Fri, 21 Sep 2018 08:18:29 +0000 (11:18 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 19 Oct 2018 11:44:13 +0000 (13:44 +0200)
commit1ba5c3a95443a4c52baaf5339fda1b88c09f3203
tree6d8a510f25c0b1cc353d3717afc80d3a09d6a2a0
parent40dce4ee61c68395f6d463fae792f61b7c003bce
hyperv_testdev: refactor for better maintainability

Make hyperv_testdev slightly easier to follow and enhance in future.
For that, put the hyperv sint routes (wrapped in a helper structure) on
a linked list rather than a fixed-size array.  Besides, this way
HvSintRoute can be treated as an opaque structure, allowing for easier
refactoring of the core Hyper-V SynIC code in followup pathches.

Signed-off-by: Roman Kagan <rkagan@virtuozzo.com>
Message-Id: <20180921081836.29230-2-rkagan@virtuozzo.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/misc/hyperv_testdev.c