All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sheng Yang <sheng@linux.intel.com>
To: Avi Kivity <avi@redhat.com>
Cc: Anthony Liguori <anthony@codemonkey.ws>, kvm@vger.kernel.org
Subject: Re: [PATCH 3/4] Support for device capability
Date: Mon, 24 Nov 2008 15:24:15 +0800	[thread overview]
Message-ID: <200811241524.15530.sheng@linux.intel.com> (raw)
In-Reply-To: <49294C65.7070404@redhat.com>

On Sunday 23 November 2008 20:28:21 Avi Kivity wrote:
> Sheng Yang wrote:
> > This framework can be easily extended to support device capability, like
> > MSI/MSI-x.
>
> At least some of this should go into pci.c, so non-assigned devices can
> benefit.

So you means a capability configuration space for native QEmu? Yeah, that's 
reasonable if we can emulate them. :)
>
> >  static void assigned_dev_pci_write_config(PCIDevice *d, uint32_t
> > address, uint32_t val, int len) {
> >      int fd;
> >      ssize_t ret;
> > +    AssignedDevice *pci_dev = (AssignedDevice *)d;
>
> container_of()

Oops, I just think QEmu don't have this macro...

-- 
regards
Yang, Sheng


  reply	other threads:[~2008-11-24  7:28 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-21  9:04 [PATCH 0/4] Userspace for MSI support of KVM Sheng Yang
2008-11-21  9:04 ` [PATCH 1/4] Add dependence for libpci Sheng Yang
2008-11-21  9:04 ` [PATCH 2/4] Figure out device capability Sheng Yang
2008-11-21  9:04 ` [PATCH 3/4] Support for " Sheng Yang
2008-11-23 12:28   ` Avi Kivity
2008-11-24  7:24     ` Sheng Yang [this message]
2008-11-25 14:39       ` Avi Kivity
2008-11-21  9:04 ` [PATCH 4/4] Add MSI capability support Sheng Yang

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=200811241524.15530.sheng@linux.intel.com \
    --to=sheng@linux.intel.com \
    --cc=anthony@codemonkey.ws \
    --cc=avi@redhat.com \
    --cc=kvm@vger.kernel.org \
    /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.