From: Sheng Yang <sheng@linux.intel.com>
To: Marcelo Tosatti <mtosatti@redhat.com>
Cc: Avi Kivity <avi@redhat.com>, kvm@vger.kernel.org
Subject: Re: [PATCH 0/4] MSI-X Enabling
Date: Wed, 24 Dec 2008 11:00:19 +0800 [thread overview]
Message-ID: <200812241100.20552.sheng@linux.intel.com> (raw)
In-Reply-To: <20081223201932.GA6783@amt.cnet>
On Wednesday 24 December 2008 04:19:32 Marcelo Tosatti wrote:
> On Tue, Dec 23, 2008 at 04:12:49PM +0800, Sheng Yang wrote:
> > Hi Avi
> >
> > This patchset would enable MSI-X support.
> >
> > The main change is a new kind of fake device - intercepted MMIO device is
> > added for supporting to intercept one page contained MSI-X entries table.
> >
> > I also consider of doing this intercept in userspace. But I think it's
> > would be more complex to push it in userspace, for we also have to
> > prevent KVM from creating page table for the page.
>
> Unmapping the page in userspace (with munmap) from the PCI MMIO map will
> disallow KVM from creating pagetable for the page.
>
> > And in the future, we would add hook
> > function in the read/write operation to enabling mask bit for each MSI-X
> > entry, may be with pending bits.
>
> Can you explain it in more detail? Can't do it from userspace?
>
> Are there performance considerations to access in this page?
>
> > So I decided to put it in the kernel.
> >
> > Another thing is I am not very confident about modify the position of
> > handling guest memory and MMIO in emulate read/write function. Is it
> > would cause any side affect?
>
> Should not be necessary if done in userspace.
Oops...
After reconsider, I think I have made a design mistake here. MMIO should can
be emulated in userspace...
I would update the patch.
--
regards
Yang, Sheng
prev parent reply other threads:[~2008-12-24 3:00 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-23 8:12 [PATCH 0/4] MSI-X Enabling Sheng Yang
2008-12-23 8:12 ` [PATCH 1/4] KVM: Using kfifo for irq recording Sheng Yang
2008-12-25 11:07 ` Avi Kivity
2008-12-25 11:27 ` Sheng Yang
2008-12-25 13:26 ` Avi Kivity
2008-12-26 1:53 ` Sheng Yang
2008-12-23 8:12 ` [PATCH 2/4] KVM: Add intercepted MMIO for KVM Sheng Yang
2008-12-23 8:12 ` [PATCH 3/4] KVM: x86: displace MMIO handling part Sheng Yang
2008-12-23 8:12 ` [PATCH 4/4] KVM: Enable MSI-X for KVM assigned device Sheng Yang
2008-12-23 20:19 ` [PATCH 0/4] MSI-X Enabling Marcelo Tosatti
2008-12-24 3:00 ` Sheng Yang [this message]
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=200812241100.20552.sheng@linux.intel.com \
--to=sheng@linux.intel.com \
--cc=avi@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=mtosatti@redhat.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 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.