All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 00/24] pic/ioapic/irqchip cleanups + minor fixes
@ 2017-03-23 14:13 David Hildenbrand
  2017-03-23 14:13 ` [PATCH v2 01/24] KVM: x86: race between KVM_SET_GSI_ROUTING and KVM_CREATE_IRQCHIP David Hildenbrand
                   ` (23 more replies)
  0 siblings, 24 replies; 29+ messages in thread
From: David Hildenbrand @ 2017-03-23 14:13 UTC (permalink / raw)
  To: kvm; +Cc: Paolo Bonzini, rkrcmar, Peter Xu, david

My attempt to further cleanup pic/ioapic checks using irqchip_mode + other
cleanups in that area.

The goal is to only check against irqchip_mode and not to rely on
vpic/vioapic variables anymore to test for existence of pic/ioapic. This
will avoid any possible races when creating the kernel irqchip fails.

v1 -> v2:
- Changed commit message of "KVM: x86: race between KVM_SET_GSI_ROUTING and
  KVM_CREATE_IRQCHIP" to also include a hint about SPLIT IRQCHIP
- Split "KVM: x86: check against irqchip_mode in kvm_set_routing_entry()"
- return; instead of break; in "KVM: x86: simplify pic_unlock()"
- Added "KVM: x86: cleanup return handling in setup_routing_entry()"

David Hildenbrand (24):
  KVM: x86: race between KVM_SET_GSI_ROUTING and KVM_CREATE_IRQCHIP
  KVM: x86: new irqchip mode KVM_IRQCHIP_INIT_IN_PROGRESS
  KVM: x86: check against irqchip_mode in kvm_set_routing_entry()
  KVM: x86: check against irqchip_mode in pic_in_kernel()
  KVM: x86: check against irqchip_mode in ioapic_in_kernel()
  KVM: x86: get rid of pic_irqchip()
  KVM: x86: get rid of ioapic_irqchip()
  KVM: x86: use ioapic_in_kernel() to check for ioapic existence
  KVM: x86: remove duplicate checks for ioapic
  KVM: x86: convert kvm_(set|get)_ioapic() into void
  KVM: x86: don't take kvm->irq_lock when creating IRQCHIP
  KVM: x86: push usage of slots_lock down
  KVM: x86: KVM_IRQCHIP_PIC_MASTER only has 8 pins
  KVM: x86: remove all-vcpu request from kvm_ioapic_init()
  KVM: x86: directly call kvm_make_scan_ioapic_request() in ioapic.c
  KVM: x86: rename kvm_vcpu_request_scan_ioapic()
  KVM: x86: drop goto label in kvm_set_routing_entry()
  KVM: x86: cleanup return handling in setup_routing_entry()
  KVM: x86: simplify pic_unlock()
  KVM: x86: make kvm_pic_reset() static
  KVM: x86: drop picdev_in_range()
  KVM: x86: set data directly in picdev_read()
  KVM: x86: simplify pic_ioport_read()
  KVM: x86: use irqchip_kernel() to check for pic+ioapic

 arch/x86/include/asm/kvm_host.h |  1 +
 arch/x86/kvm/i8259.c            | 72 ++++++++++++++++-------------------------
 arch/x86/kvm/ioapic.c           | 28 ++++++----------
 arch/x86/kvm/ioapic.h           | 14 ++------
 arch/x86/kvm/irq.c              |  2 +-
 arch/x86/kvm/irq.h              | 14 ++------
 arch/x86/kvm/irq_comm.c         | 43 +++++++++++-------------
 arch/x86/kvm/x86.c              | 41 +++++++++++------------
 include/linux/kvm_host.h        |  4 +--
 virt/kvm/eventfd.c              |  4 +--
 virt/kvm/irqchip.c              | 11 +++----
 virt/kvm/kvm_main.c             |  3 ++
 12 files changed, 93 insertions(+), 144 deletions(-)

-- 
2.9.3

^ permalink raw reply	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2017-04-03  8:58 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-23 14:13 [PATCH v2 00/24] pic/ioapic/irqchip cleanups + minor fixes David Hildenbrand
2017-03-23 14:13 ` [PATCH v2 01/24] KVM: x86: race between KVM_SET_GSI_ROUTING and KVM_CREATE_IRQCHIP David Hildenbrand
2017-03-23 14:13 ` [PATCH v2 02/24] KVM: x86: new irqchip mode KVM_IRQCHIP_INIT_IN_PROGRESS David Hildenbrand
2017-03-23 14:13 ` [PATCH v2 03/24] KVM: x86: check against irqchip_mode in kvm_set_routing_entry() David Hildenbrand
2017-03-23 14:13 ` [PATCH v2 04/24] KVM: x86: check against irqchip_mode in pic_in_kernel() David Hildenbrand
2017-03-23 14:13 ` [PATCH v2 05/24] KVM: x86: check against irqchip_mode in ioapic_in_kernel() David Hildenbrand
2017-03-23 14:13 ` [PATCH v2 06/24] KVM: x86: get rid of pic_irqchip() David Hildenbrand
2017-03-23 14:13 ` [PATCH v2 07/24] KVM: x86: get rid of ioapic_irqchip() David Hildenbrand
2017-03-23 14:13 ` [PATCH v2 08/24] KVM: x86: use ioapic_in_kernel() to check for ioapic existence David Hildenbrand
2017-03-23 14:13 ` [PATCH v2 09/24] KVM: x86: remove duplicate checks for ioapic David Hildenbrand
2017-03-23 14:13 ` [PATCH v2 10/24] KVM: x86: convert kvm_(set|get)_ioapic() into void David Hildenbrand
2017-03-23 14:13 ` [PATCH v2 11/24] KVM: x86: don't take kvm->irq_lock when creating IRQCHIP David Hildenbrand
2017-03-28  8:28   ` Paolo Bonzini
2017-04-03  7:27     ` David Hildenbrand
2017-04-03  8:58       ` Paolo Bonzini
2017-03-23 14:13 ` [PATCH v2 12/24] KVM: x86: push usage of slots_lock down David Hildenbrand
2017-03-23 14:13 ` [PATCH v2 13/24] KVM: x86: KVM_IRQCHIP_PIC_MASTER only has 8 pins David Hildenbrand
2017-03-23 14:13 ` [PATCH v2 14/24] KVM: x86: remove all-vcpu request from kvm_ioapic_init() David Hildenbrand
2017-03-23 14:13 ` [PATCH v2 15/24] KVM: x86: directly call kvm_make_scan_ioapic_request() in ioapic.c David Hildenbrand
2017-03-23 14:13 ` [PATCH v2 16/24] KVM: x86: rename kvm_vcpu_request_scan_ioapic() David Hildenbrand
2017-03-23 14:13 ` [PATCH v2 17/24] KVM: x86: drop goto label in kvm_set_routing_entry() David Hildenbrand
2017-03-23 14:13 ` [PATCH v2 18/24] KVM: x86: cleanup return handling in setup_routing_entry() David Hildenbrand
2017-03-23 14:13 ` [PATCH v2 19/24] KVM: x86: simplify pic_unlock() David Hildenbrand
2017-03-23 14:13 ` [PATCH v2 20/24] KVM: x86: make kvm_pic_reset() static David Hildenbrand
2017-03-23 14:13 ` [PATCH v2 21/24] KVM: x86: drop picdev_in_range() David Hildenbrand
     [not found]   ` <CABayD+fZxXb+Z0wjfaf7h3-yZGOZqC-5L4kKdDYsL6p+sDTyMw@mail.gmail.com>
2017-03-29  8:58     ` Paolo Bonzini
2017-03-23 14:13 ` [PATCH v2 22/24] KVM: x86: set data directly in picdev_read() David Hildenbrand
2017-03-23 14:13 ` [PATCH v2 23/24] KVM: x86: simplify pic_ioport_read() David Hildenbrand
2017-03-23 14:13 ` [PATCH v2 24/24] KVM: x86: use irqchip_kernel() to check for pic+ioapic David Hildenbrand

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.