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>
This commit is contained in:
Roman Kagan
2018-09-21 11:22:09 +03:00
committed by Paolo Bonzini
parent 729ce7e1b6
commit 606c34bfd5
7 changed files with 164 additions and 2 deletions

View File

@@ -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