From 606c34bfd57a0ecda67b395bea022bb307a5384e Mon Sep 17 00:00:00 2001 From: Roman Kagan Date: Fri, 21 Sep 2018 11:22:09 +0300 Subject: 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 Message-Id: <20180921082217.29481-3-rkagan@virtuozzo.com> Signed-off-by: Paolo Bonzini --- include/hw/hyperv/hyperv.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/hw/hyperv/hyperv.h') diff --git a/include/hw/hyperv/hyperv.h b/include/hw/hyperv/hyperv.h index d6c8d78..6fba476 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 -- cgit v1.1