public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCHv5 0/6] kvm: locking and API rework for iosignalfd
@ 2009-06-29 19:23 Michael S. Tsirkin
  2009-07-01  8:10 ` Avi Kivity
  0 siblings, 1 reply; 3+ messages in thread
From: Michael S. Tsirkin @ 2009-06-29 19:23 UTC (permalink / raw)
  To: Gregory Haskins, avi; +Cc: kvm, linux-kernel, avi, mtosatti, paulmck, markmc

This series switches kvm_io_device to slots_lock from kvm->lock mutex,
and uses that to rework io bus API. This takes less locks on data path,
and uses less lines of code. These changes will also be useful to serve
as basis for Greg's iosignalfd work.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---

This works for me, but please review carefully.

Changes since v4:
	Typo fix

Changes since v3:
	Fix bug noticed by Marcelo
	Switch pit creation to slots_lock
	Add unlocked variant for bus changes: in use by pit
	More documentation

Changes since v2:
	I have split the patch and reworked along the lines suggested by Avi.

Michael S. Tsirkin (6):
  kvm: document locking for kvm_io_device_ops
  kvm: switch coalesced mmio changes to slots_lock
  kvm: switch pit creation to slots_lock
  kvm: convert bus to slots_lock
  kvm: remove in_range from io devices
  kvm: document lock nesting rule

 arch/ia64/kvm/kvm-ia64.c  |   28 +++--------
 arch/x86/kvm/i8254.c      |   54 +++++++++++----------
 arch/x86/kvm/i8259.c      |   22 +++++----
 arch/x86/kvm/lapic.c      |   44 ++++++++---------
 arch/x86/kvm/x86.c        |  114 +++++++++++++-------------------------------
 include/linux/kvm_host.h  |   11 +++-
 virt/kvm/coalesced_mmio.c |   28 +++++------
 virt/kvm/ioapic.c         |   24 +++++----
 virt/kvm/iodev.h          |   42 +++++++---------
 virt/kvm/kvm_main.c       |   38 +++++++++++----
 10 files changed, 183 insertions(+), 222 deletions(-)

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

* Re: [PATCHv5 0/6] kvm: locking and API rework for iosignalfd
  2009-06-29 19:23 [PATCHv5 0/6] kvm: locking and API rework for iosignalfd Michael S. Tsirkin
@ 2009-07-01  8:10 ` Avi Kivity
  2009-07-01 11:59   ` Gregory Haskins
  0 siblings, 1 reply; 3+ messages in thread
From: Avi Kivity @ 2009-07-01  8:10 UTC (permalink / raw)
  To: Michael S. Tsirkin
  Cc: Gregory Haskins, kvm, linux-kernel, mtosatti, paulmck, markmc

On 06/29/2009 10:23 PM, Michael S. Tsirkin wrote:
> This series switches kvm_io_device to slots_lock from kvm->lock mutex,
> and uses that to rework io bus API. This takes less locks on data path,
> and uses less lines of code. These changes will also be useful to serve
> as basis for Greg's iosignalfd work.
>    

Applied all, thanks.

-- 
error compiling committee.c: too many arguments to function


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

* Re: [PATCHv5 0/6] kvm: locking and API rework for iosignalfd
  2009-07-01  8:10 ` Avi Kivity
@ 2009-07-01 11:59   ` Gregory Haskins
  0 siblings, 0 replies; 3+ messages in thread
From: Gregory Haskins @ 2009-07-01 11:59 UTC (permalink / raw)
  To: Avi Kivity
  Cc: Michael S. Tsirkin, kvm, linux-kernel, mtosatti, paulmck, markmc

[-- Attachment #1: Type: text/plain, Size: 446 bytes --]

Avi Kivity wrote:
> On 06/29/2009 10:23 PM, Michael S. Tsirkin wrote:
>> This series switches kvm_io_device to slots_lock from kvm->lock mutex,
>> and uses that to rework io bus API. This takes less locks on data path,
>> and uses less lines of code. These changes will also be useful to serve
>> as basis for Greg's iosignalfd work.
>>    
>
> Applied all, thanks.
>
I'll get to work rebasing iosignalfd now.  Thanks guys!

-Greg


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 266 bytes --]

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

end of thread, other threads:[~2009-07-01 12:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-29 19:23 [PATCHv5 0/6] kvm: locking and API rework for iosignalfd Michael S. Tsirkin
2009-07-01  8:10 ` Avi Kivity
2009-07-01 11:59   ` Gregory Haskins

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox