diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2023-10-17 14:29:03 +0200 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2023-10-25 19:53:38 +0200 |
| commit | 39dd3e1f55a70f568cc9d280f67467aa4e8a63bd (patch) | |
| tree | 685501cea79f592b64191fa1c29629fe4bfe927d /hw/i386/pc.c | |
| parent | 52b04ea49d3c4da73828aaf66dab234301428912 (diff) | |
| download | focaccia-qemu-39dd3e1f55a70f568cc9d280f67467aa4e8a63bd.tar.gz focaccia-qemu-39dd3e1f55a70f568cc9d280f67467aa4e8a63bd.zip | |
kvm: i8254: require KVM_CAP_PIT2 and KVM_CAP_PIT_STATE2
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/i386/pc.c')
| -rw-r--r-- | hw/i386/pc.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/hw/i386/pc.c b/hw/i386/pc.c index 11fed78d17..6031234a73 100644 --- a/hw/i386/pc.c +++ b/hw/i386/pc.c @@ -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); |