summary refs log tree commit diff stats
path: root/hw/i386/pc.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2023-10-17 14:29:03 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2023-10-25 19:53:38 +0200
commit39dd3e1f55a70f568cc9d280f67467aa4e8a63bd (patch)
tree685501cea79f592b64191fa1c29629fe4bfe927d /hw/i386/pc.c
parent52b04ea49d3c4da73828aaf66dab234301428912 (diff)
downloadfocaccia-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.c6
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);