mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
kvm: i8254: require KVM_CAP_PIT2 and KVM_CAP_PIT_STATE2
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
52b04ea49d
commit
39dd3e1f55
4 changed files with 13 additions and 39 deletions
|
@ -1214,12 +1214,8 @@ void pc_basic_device_init(struct PCMachineState *pcms,
|
|||
|
||||
/*
|
||||
* Check if an HPET shall be created.
|
||||
*
|
||||
* Without KVM_CAP_PIT_STATE2, we cannot switch off the in-kernel PIT
|
||||
* when the HPET wants to take over. Thus we have to disable the latter.
|
||||
*/
|
||||
if (pcms->hpet_enabled && (!kvm_irqchip_in_kernel() ||
|
||||
kvm_has_pit_state2())) {
|
||||
if (pcms->hpet_enabled) {
|
||||
qemu_irq rtc_irq;
|
||||
|
||||
hpet = qdev_try_new(TYPE_HPET);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue