[RFC PATCH 0/2] accel/kvm: Extract 'sysemu/kvm_irq.h' from 'sysemu/kvm.h'

Philippe Mathieu-Daudé posted 2 patches 1 year, 1 month ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20230405163001.98573-1-philmd@linaro.org
Maintainers: Paolo Bonzini <pbonzini@redhat.com>, Peter Maydell <peter.maydell@linaro.org>, "Michael S. Tsirkin" <mst@redhat.com>, Peter Xu <peterx@redhat.com>, Jason Wang <jasowang@redhat.com>, Marcel Apfelbaum <marcel.apfelbaum@gmail.com>, Richard Henderson <richard.henderson@linaro.org>, Eduardo Habkost <eduardo@habkost.net>, Halil Pasic <pasic@linux.ibm.com>, Christian Borntraeger <borntraeger@linux.ibm.com>, David Hildenbrand <david@redhat.com>, Thomas Huth <thuth@redhat.com>, "Cédric Le Goater" <clg@kaod.org>, Daniel Henrique Barboza <danielhb413@gmail.com>, David Gibson <david@gibson.dropbear.id.au>, Greg Kurz <groug@kaod.org>, Elena Ufimtseva <elena.ufimtseva@oracle.com>, Jagannathan Raman <jag.raman@oracle.com>, John G Johnson <john.g.johnson@oracle.com>, Cornelia Huck <cohuck@redhat.com>, Eric Farman <farman@linux.ibm.com>, Ilya Leoshkevich <iii@linux.ibm.com>, Alex Williamson <alex.williamson@redhat.com>, Marcelo Tosatti <mtosatti@redhat.com>, David Woodhouse <dwmw2@infradead.org>, Paul Durrant <paul@xen.org>
include/sysemu/kvm.h           |  88 -----------------------------
include/sysemu/kvm_int.h       |  13 +++++
include/sysemu/kvm_irq.h       | 100 +++++++++++++++++++++++++++++++++
target/i386/kvm/kvm_i386.h     |   1 +
accel/kvm/kvm-all.c            |   2 +
accel/stubs/kvm-stub.c         |   1 +
hw/arm/virt.c                  |   1 +
hw/cpu/a15mpcore.c             |   1 +
hw/hyperv/hyperv.c             |   1 +
hw/i386/intel_iommu.c          |   1 +
hw/i386/kvm/apic.c             |   1 +
hw/i386/kvm/i8259.c            |   1 +
hw/i386/kvm/ioapic.c           |   1 +
hw/i386/kvmvapic.c             |   1 +
hw/i386/pc.c                   |   1 +
hw/i386/x86-iommu.c            |   1 +
hw/intc/arm_gic.c              |   1 +
hw/intc/arm_gic_common.c       |   1 +
hw/intc/arm_gic_kvm.c          |   1 +
hw/intc/arm_gicv3_common.c     |   1 +
hw/intc/arm_gicv3_its_common.c |   1 +
hw/intc/arm_gicv3_kvm.c        |   1 +
hw/intc/ioapic.c               |   1 +
hw/intc/openpic_kvm.c          |   1 +
hw/intc/s390_flic_kvm.c        |   1 +
hw/intc/spapr_xive_kvm.c       |   1 +
hw/intc/xics.c                 |   1 +
hw/intc/xics_kvm.c             |   1 +
hw/misc/ivshmem.c              |   1 +
hw/ppc/e500.c                  |   1 +
hw/ppc/spapr_irq.c             |   1 +
hw/remote/proxy.c              |   1 +
hw/s390x/virtio-ccw.c          |   1 +
hw/vfio/pci.c                  |   1 +
hw/vfio/platform.c             |   1 +
hw/virtio/virtio-pci.c         |   1 +
target/arm/kvm.c               |   1 +
target/i386/kvm/kvm.c          |   2 +
target/i386/kvm/xen-emu.c      |   2 +
target/i386/sev.c              |   1 +
target/s390x/kvm/kvm.c         |   2 +
41 files changed, 155 insertions(+), 88 deletions(-)
create mode 100644 include/sysemu/kvm_irq.h
[RFC PATCH 0/2] accel/kvm: Extract 'sysemu/kvm_irq.h' from 'sysemu/kvm.h'
Posted by Philippe Mathieu-Daudé 1 year, 1 month ago
Posted individually because it is modifying a lot of files.

RFC: this might not be the best API cut, but "sysemu/kvm.h"
     is a mixed bag hard to sort...

Based-on: <20230405160454.97436-1-philmd@linaro.org>

Philippe Mathieu-Daudé (2):
  accel/kvm: Extract 'sysemu/kvm_irq.h' from 'sysemu/kvm.h'
  accel/kvm: Declare kvm_arch_irqchip_create() in 'sysemu/kvm_int.h'

 include/sysemu/kvm.h           |  88 -----------------------------
 include/sysemu/kvm_int.h       |  13 +++++
 include/sysemu/kvm_irq.h       | 100 +++++++++++++++++++++++++++++++++
 target/i386/kvm/kvm_i386.h     |   1 +
 accel/kvm/kvm-all.c            |   2 +
 accel/stubs/kvm-stub.c         |   1 +
 hw/arm/virt.c                  |   1 +
 hw/cpu/a15mpcore.c             |   1 +
 hw/hyperv/hyperv.c             |   1 +
 hw/i386/intel_iommu.c          |   1 +
 hw/i386/kvm/apic.c             |   1 +
 hw/i386/kvm/i8259.c            |   1 +
 hw/i386/kvm/ioapic.c           |   1 +
 hw/i386/kvmvapic.c             |   1 +
 hw/i386/pc.c                   |   1 +
 hw/i386/x86-iommu.c            |   1 +
 hw/intc/arm_gic.c              |   1 +
 hw/intc/arm_gic_common.c       |   1 +
 hw/intc/arm_gic_kvm.c          |   1 +
 hw/intc/arm_gicv3_common.c     |   1 +
 hw/intc/arm_gicv3_its_common.c |   1 +
 hw/intc/arm_gicv3_kvm.c        |   1 +
 hw/intc/ioapic.c               |   1 +
 hw/intc/openpic_kvm.c          |   1 +
 hw/intc/s390_flic_kvm.c        |   1 +
 hw/intc/spapr_xive_kvm.c       |   1 +
 hw/intc/xics.c                 |   1 +
 hw/intc/xics_kvm.c             |   1 +
 hw/misc/ivshmem.c              |   1 +
 hw/ppc/e500.c                  |   1 +
 hw/ppc/spapr_irq.c             |   1 +
 hw/remote/proxy.c              |   1 +
 hw/s390x/virtio-ccw.c          |   1 +
 hw/vfio/pci.c                  |   1 +
 hw/vfio/platform.c             |   1 +
 hw/virtio/virtio-pci.c         |   1 +
 target/arm/kvm.c               |   1 +
 target/i386/kvm/kvm.c          |   2 +
 target/i386/kvm/xen-emu.c      |   2 +
 target/i386/sev.c              |   1 +
 target/s390x/kvm/kvm.c         |   2 +
 41 files changed, 155 insertions(+), 88 deletions(-)
 create mode 100644 include/sysemu/kvm_irq.h

-- 
2.38.1


Re: [RFC PATCH 0/2] accel/kvm: Extract 'sysemu/kvm_irq.h' from 'sysemu/kvm.h'
Posted by Philippe Mathieu-Daudé 10 months, 3 weeks ago
Ping?

On 5/4/23 18:29, Philippe Mathieu-Daudé wrote:
> Posted individually because it is modifying a lot of files.
> 
> RFC: this might not be the best API cut, but "sysemu/kvm.h"
>       is a mixed bag hard to sort...
> 
> Based-on: <20230405160454.97436-1-philmd@linaro.org>

(not based-on actually)

> Philippe Mathieu-Daudé (2):
>    accel/kvm: Extract 'sysemu/kvm_irq.h' from 'sysemu/kvm.h'
>    accel/kvm: Declare kvm_arch_irqchip_create() in 'sysemu/kvm_int.h'
> 
>   include/sysemu/kvm.h           |  88 -----------------------------
>   include/sysemu/kvm_int.h       |  13 +++++
>   include/sysemu/kvm_irq.h       | 100 +++++++++++++++++++++++++++++++++
>   target/i386/kvm/kvm_i386.h     |   1 +
>   accel/kvm/kvm-all.c            |   2 +
>   accel/stubs/kvm-stub.c         |   1 +
>   hw/arm/virt.c                  |   1 +
>   hw/cpu/a15mpcore.c             |   1 +
>   hw/hyperv/hyperv.c             |   1 +
>   hw/i386/intel_iommu.c          |   1 +
>   hw/i386/kvm/apic.c             |   1 +
>   hw/i386/kvm/i8259.c            |   1 +
>   hw/i386/kvm/ioapic.c           |   1 +
>   hw/i386/kvmvapic.c             |   1 +
>   hw/i386/pc.c                   |   1 +
>   hw/i386/x86-iommu.c            |   1 +
>   hw/intc/arm_gic.c              |   1 +
>   hw/intc/arm_gic_common.c       |   1 +
>   hw/intc/arm_gic_kvm.c          |   1 +
>   hw/intc/arm_gicv3_common.c     |   1 +
>   hw/intc/arm_gicv3_its_common.c |   1 +
>   hw/intc/arm_gicv3_kvm.c        |   1 +
>   hw/intc/ioapic.c               |   1 +
>   hw/intc/openpic_kvm.c          |   1 +
>   hw/intc/s390_flic_kvm.c        |   1 +
>   hw/intc/spapr_xive_kvm.c       |   1 +
>   hw/intc/xics.c                 |   1 +
>   hw/intc/xics_kvm.c             |   1 +
>   hw/misc/ivshmem.c              |   1 +
>   hw/ppc/e500.c                  |   1 +
>   hw/ppc/spapr_irq.c             |   1 +
>   hw/remote/proxy.c              |   1 +
>   hw/s390x/virtio-ccw.c          |   1 +
>   hw/vfio/pci.c                  |   1 +
>   hw/vfio/platform.c             |   1 +
>   hw/virtio/virtio-pci.c         |   1 +
>   target/arm/kvm.c               |   1 +
>   target/i386/kvm/kvm.c          |   2 +
>   target/i386/kvm/xen-emu.c      |   2 +
>   target/i386/sev.c              |   1 +
>   target/s390x/kvm/kvm.c         |   2 +
>   41 files changed, 155 insertions(+), 88 deletions(-)
>   create mode 100644 include/sysemu/kvm_irq.h
>