KVM: x86: deprecate -M kernel-irqchip=off except for -M isapc
PATCH 1/1 KVM: x86: deprecate -M kernel-irqchip=off except for -M isapc
The userspace local APIC is basically untested and does not support many features such as TSC deadline timer, x2APIC or PV spinlocks. On the other hand, the PIT and IOAPIC are okay as they are not tied to the processor and are tested with -M kernel-irqchip=split.
Therefore, deprecate the local APIC and, with it, limit -M kernel-irqchip=off to the ISA PC machine type, which does not have a local APIC at all.
--- docs/system/deprecated.rst | 7 +++++++ hw/intc/apic.c | 5 +++++ 2 files changed, 12 insertions(+)
docs/system/deprecated.rst +7 -0
@@ -153,6 +153,13 @@ The ``-writeconfig`` option is not able to serialize the entire contents of the QEMU command line. It is thus considered a failed experiment and deprecated, with no current replacement. +Userspace local APIC with KVM (x86, since 6.0) +''''''''''''''''''''''''''''''''''''''''' + +Using ``-M kernel-irqchip=off`` with x86 machine types that include a local +APIC is deprecated. The ``split`` setting is supported, as is using +``-M kernel-irqchip=off`` with the ISA PC machine type. + QEMU Machine Protocol (QMP) commands ------------------------------------
hw/intc/apic.c +5 -0
@@ -875,6 +875,11 @@ static void apic_realize(DeviceState *dev, Error **errp)return ; } +if (kvm_enabled ()) { +warn_report ("Userspace local APIC is deprecated for KVM." ); +warn_report ("Do not use kernel-irqchip except for the -M isapc machine type." ); + } +memory_region_init_io (&s->io_memory,OBJECT (s), &apic_io_ops, s,"apic-msi" ,APIC_SPACE_SIZE );
Signature · 1 line
2.29.2
Quoted 10 lines · Paolo Bonzini
The userspace local APIC is basically untested and does not support many features such as TSC deadline timer, x2APIC or PV spinlocks. On the other hand, the PIT and IOAPIC are okay as they are not tied to the processor and are tested with -M kernel-irqchip=split.
Therefore, deprecate the local APIC and, with it, limit -M kernel-irqchip=off to the ISA PC machine type, which does not have a local APIC at all.
Signed-off-by Paolo Bonzini <[email protected]>
Best regards,
Maxim Levitsky
Quoted 39 lines
--- docs/system/deprecated.rst | 7 +++++++ hw/intc/apic.c | 5 +++++ 2 files changed, 12 insertions(+)docs/system/deprecated.rst +7
-0@@ -153,6 +153,13 @@ The ``-writeconfig`` option is not able to serialize the entire contents of the QEMU command line. It is thus considered a failed experiment and deprecated, with no current replacement. +Userspace local APIC with KVM (x86, since 6.0) +''''''''''''''''''''''''''''''''''''''''' + +Using ``-M kernel-irqchip=off`` with x86 machine types that include a local +APIC is deprecated. The ``split`` setting is supported, as is using +``-M kernel-irqchip=off`` with the ISA PC machine type. + QEMU Machine Protocol (QMP) commands ------------------------------------hw/intc/apic.c +5
-0@@ -875,6 +875,11 @@ static void apic_realize(DeviceState *dev, Error **errp)return ; } +if (kvm_enabled ()) { +warn_report ("Userspace local APIC is deprecated for KVM." ); +warn_report ("Do not use kernel-irqchip except for the -M isapc machine type." ); + } +memory_region_init_io (&s->io_memory,OBJECT (s), &apic_io_ops, s,"apic-msi" ,APIC_SPACE_SIZE );