pcspk: fix KVM
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 30 Jun 2016 14:57:37 +0000 (16:57 +0200)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 30 Jun 2016 18:00:02 +0000 (19:00 +0100)
commit8a0b4de048e20215415b24c7b42514c27b9d6ef3
tree968295508f4c076fb290f4cbc16ed8d9445238c7
parent297e8005f88d4360480eaa2c07220fa8853f0448
pcspk: fix KVM

The link property that was added to the pcspk device has the wrong type:
it is only correct for TCG and for KVM's userspace or split irqchip
options.  The default KVM option (fully in-kernel irqchip) breaks
because it uses a PIT whose type is a sibling of TYPE_I8254.

Fixes: 873b4d3f0571a1e415cf089a67a230ea8a12d059
Tested-by: Peter Lieven <pl@kamp.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 1467298657-6588-1-git-send-email-pbonzini@redhat.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/audio/pcspk.c
include/hw/timer/i8254.h
include/hw/timer/i8254_internal.h