public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Sheng Yang <sheng@linux.intel.com>
To: Avi Kivity <avi@redhat.com>
Cc: Xiantao Zhang <xiantao.zhang@intel.com>,
	Marcelo Tosatti <mtosatti@redhat.com>,
	kvm@vger.kernel.org
Subject: Re: [PATCH 0/1] IRQ Routing
Date: Wed, 14 Jan 2009 16:39:29 +0800	[thread overview]
Message-ID: <200901141639.29844.sheng@linux.intel.com> (raw)
In-Reply-To: <1231876950-10092-1-git-send-email-avi@redhat.com>

On Wednesday 14 January 2009 04:02:29 Avi Kivity wrote:
> Following is my alternative to irq routing.  The differences compared to
> Sheng's version are:
>
> - A single ioctl to replace the entire routing table, instead of add/remove
>   ioctls for individual routing entries.  Routing changes are rare, and
>   we need to track the entire table in userspace anyway (for save/restore,
>   and for user irqchip).  As a side effect changes are atomic.
> - Interrupt numbers are allocated by userspace, instead of the kernel
> - I implemented irqchip routings rather then MSIs, it should be easy to
>   add MSIs later on.
>
> Please review and comment.

Look nice to me now... Save/restore is a good reason to maintain a table in 
userspace.

And looking forward to userspace patch. Put a table in kvm_context?

-- 
regards
Yang, Sheng
>
> Avi Kivity (1):
>   KVM: Userspace controlled irq routing
>
>  arch/ia64/kvm/kvm-ia64.c |    5 ++
>  arch/x86/kvm/x86.c       |    6 ++
>  include/linux/kvm.h      |   33 +++++++++
>  include/linux/kvm_host.h |   31 +++++++++
>  virt/kvm/irq_comm.c      |  168
> ++++++++++++++++++++++++++++++++++++++++++++- virt/kvm/kvm_main.c      |  
> 25 +++++++
>  6 files changed, 264 insertions(+), 4 deletions(-)


  parent reply	other threads:[~2009-01-14  8:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-13 20:02 [PATCH 0/1] IRQ Routing Avi Kivity
2009-01-13 20:02 ` [PATCH 1/1] KVM: Userspace controlled irq routing Avi Kivity
2009-01-14  8:39 ` Sheng Yang [this message]
2009-01-14 14:31   ` [PATCH 0/1] IRQ Routing Avi Kivity

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200901141639.29844.sheng@linux.intel.com \
    --to=sheng@linux.intel.com \
    --cc=avi@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=mtosatti@redhat.com \
    --cc=xiantao.zhang@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox