diff options
author | Roman Kagan | 2018-09-21 10:22:09 +0200 |
---|---|---|
committer | Paolo Bonzini | 2018-10-19 13:44:14 +0200 |
commit | 606c34bfd57a0ecda67b395bea022bb307a5384e (patch) | |
tree | 448b94dd535847b0cd358a13332e46085d563c6f /include/hw/hyperv | |
parent | hyperv:synic: split capability testing and setting (diff) | |
download | qemu-606c34bfd57a0ecda67b395bea022bb307a5384e.tar.gz qemu-606c34bfd57a0ecda67b395bea022bb307a5384e.tar.xz qemu-606c34bfd57a0ecda67b395bea022bb307a5384e.zip |
hyperv: qom-ify SynIC
Make Hyper-V SynIC a device which is attached as a child to a CPU. For
now it only makes SynIC visibile in the qom hierarchy, and maintains its
internal fields in sync with the respecitve msrs of the parent cpu (the
fields will be used in followup patches).
Signed-off-by: Roman Kagan <rkagan@virtuozzo.com>
Message-Id: <20180921082217.29481-3-rkagan@virtuozzo.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/hw/hyperv')
-rw-r--r-- | include/hw/hyperv/hyperv.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/hw/hyperv/hyperv.h b/include/hw/hyperv/hyperv.h index d6c8d78353..6fba4762c8 100644 --- a/include/hw/hyperv/hyperv.h +++ b/include/hw/hyperv/hyperv.h @@ -28,4 +28,9 @@ static inline uint32_t hyperv_vp_index(CPUState *cs) return cs->cpu_index; } +void hyperv_synic_add(CPUState *cs); +void hyperv_synic_reset(CPUState *cs); +void hyperv_synic_update(CPUState *cs, bool enable, + hwaddr msg_page_addr, hwaddr event_page_addr); + #endif |