virtualization.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
From: Avi Kivity <avi@redhat.com>
To: Greg KH <greg@kroah.com>
Cc: "randy.dunlap@oracle.com" <randy.dunlap@oracle.com>,
	"grundler@parisc-linux.org" <grundler@parisc-linux.org>,
	"Chiang, Alexander" <achiang@hp.com>,
	"matthew@wil.cx" <matthew@wil.cx>,
	"linux-pci@vger.kernel.org" <linux-pci@vger.kernel.org>,
	"rdreier@cisco.com" <rdreier@cisco.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"jbarnes@virtuousgeek.org" <jbarnes@virtuousgeek.org>,
	"virtualization@lists.linux-foundation.org"
	<virtualization@lists.linux-foundation.org>,
	"kvm@vger.kernel.org" <kvm@vger.kernel.org>,
	"mingo@elte.hu" <mingo@elte.hu>
Subject: Re: [PATCH 0/16 v6] PCI: Linux kernel SR-IOV support
Date: Sun, 09 Nov 2008 21:37:20 +0200	[thread overview]
Message-ID: <49173BF0.5050506@redhat.com> (raw)
In-Reply-To: <20081109192505.GA3091@kroah.com>

Greg KH wrote:
> On Sun, Nov 09, 2008 at 02:44:06PM +0200, Avi Kivity wrote:
>   
>> Greg KH wrote:
>>     
>>> It's that "second" part that I'm worried about.  How is that going to
>>> happen?  Do you have any patches that show this kind of "assignment"?
>>>
>>>   
>>>       
>> For kvm, this is in 2.6.28-rc.
>>     
>
> Where?  I just looked and couldn't find anything, but odds are I was
> looking in the wrong place :(
>
>   

arch/x86/kvm/vtd.c: iommu integration (allows assigning the device's 
memory resources)
virt/kvm/irq*: interrupt redirection (allows assigning the device's 
interrupt resources)

the rest (pci config space, pio redirection) are in userspace.

>> Note there are two ways to assign a device to a guest:
>>
>> - run the VF driver in the guest: this has the advantage of best 
>> performance, but requires pinning all guest memory, makes live migration a 
>> tricky proposition, and ties the guest to the underlying hardware.
>>     
>
> Is this what you would prefer for kvm?
>
>   

It's not my personal preference, but it is a supported configuration.  
For some use cases it is the only one that makes sense.

Again, VF-in-guest and VF-in-host both have their places.  And since 
Linux can be both guest and host, it's best if the VF driver knows 
nothing about SR-IOV; it's just a pci driver.  The PF driver should 
emulate anything that SR-IOV does not provide (like missing pci config 
space).

-- 
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.

  parent reply	other threads:[~2008-11-09 19:37 UTC|newest]

Thread overview: 54+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20081106154351.GA30459@kroah.com>
2008-11-06 16:41 ` [PATCH 0/16 v6] PCI: Linux kernel SR-IOV support H L
     [not found] ` <894107.30288.qm@web45108.mail.sp1.yahoo.com>
2008-11-06 16:49   ` Greg KH
     [not found]   ` <20081106164919.GA4099@kroah.com>
2008-11-06 17:38     ` Fischer, Anna
2008-11-06 17:47     ` Matthew Wilcox
     [not found]     ` <20081106174741.GC11773@parisc-linux.org>
2008-11-06 17:53       ` Greg KH
     [not found]       ` <20081106175308.GA17027@kroah.com>
2008-11-06 22:24         ` Simon Horman
2008-11-06 22:40         ` Anthony Liguori
2008-11-06 23:54         ` Chris Wright
     [not found]         ` <20081106235406.GB30790@sequoia.sous-sol.org>
2008-11-07  6:10           ` Greg KH
2008-11-07  7:06           ` Zhao, Yu
     [not found]           ` <4913E8E8.5040103@intel.com>
2008-11-07  7:29             ` Leonid Grossman
     [not found]         ` <49137255.9010104@codemonkey.ws>
2008-11-07  6:17           ` Greg KH
2008-11-09  6:41           ` Muli Ben-Yehuda
     [not found]           ` <20081107061700.GD3860@kroah.com>
2008-11-07  7:47             ` Zhao, Yu
2008-11-09 12:58             ` Avi Kivity
     [not found]             ` <4913F2AA.90405@intel.com>
2008-11-11  0:18               ` Rusty Russell
2008-11-17 12:01                 ` Yu Zhao
     [not found]           ` <20081109064147.GD7123@il.ibm.com>
2008-11-09 13:03             ` Avi Kivity
2008-11-06 18:05     ` H L
     [not found]     ` <392264.50990.qm@web45103.mail.sp1.yahoo.com>
2008-11-06 18:24       ` Greg KH
     [not found]       ` <20081106182443.GB17782@kroah.com>
2008-11-07  6:03         ` Zhao, Yu
     [not found]     ` <0199E0D51A61344794750DC57738F58E5E26F996C4@GVW1118EXC.americas.hpqcorp.net>
2008-11-06 18:03       ` Greg KH
2008-11-06 18:36       ` Matthew Wilcox
     [not found]       ` <20081106183630.GD11773@parisc-linux.org>
2008-11-06 22:38         ` Anthony Liguori
     [not found]         ` <491371F0.7020805@codemonkey.ws>
2008-11-06 22:58           ` Matthew Wilcox
2008-11-07  1:52           ` Dong, Eddie
2008-11-07  2:08           ` Nakajima, Jun
     [not found]           ` <20081106225854.GA15439@parisc-linux.org>
2008-11-07  6:19             ` Greg KH
     [not found]             ` <20081107061952.GF3860@kroah.com>
2008-11-07 15:17               ` Yu Zhao
     [not found]               ` <49145C14.1050409@uniscape.net>
2008-11-07 18:48                 ` Greg KH
     [not found]                 ` <20081107184825.GB2320@kroah.com>
2008-11-08 11:09                   ` Fischer, Anna
     [not found]                   ` <0199E0D51A61344794750DC57738F58E5E26FF3237@GVW1118EXC.americas.hpqcorp.net>
2008-11-08 15:37                     ` Leonid Grossman
2008-11-13  7:49                   ` Yu Zhao
2008-11-09 12:47             ` Avi Kivity
2008-11-07 15:21           ` Andi Kleen
2008-11-12 22:41             ` Anthony Liguori
     [not found]             ` <491B5B97.2000407@codemonkey.ws>
2008-11-16 16:04               ` Avi Kivity
     [not found]               ` <492044A7.3080107@redhat.com>
2008-11-17  1:46                 ` Zhao, Yu
2008-11-07 16:01           ` Yu Zhao
     [not found]           ` <87d4h7pnnm.fsf@basil.nowhere.org>
2008-11-09 12:53             ` Avi Kivity
     [not found]       ` <20081106180354.GA17429@kroah.com>
2008-11-06 20:04         ` Fischer, Anna
2008-11-09 12:44         ` Avi Kivity
     [not found]         ` <4916DB16.2040709@redhat.com>
2008-11-09 19:25           ` Greg KH
     [not found]           ` <20081109192505.GA3091@kroah.com>
2008-11-09 19:37             ` Avi Kivity [this message]
2008-11-11  6:08               ` Greg KH
     [not found]               ` <20081111060845.GB13025@kroah.com>
2008-11-11  9:00                 ` Avi Kivity
2008-11-06 16:51 ` git repository for SR-IOV development? H L
     [not found] ` <1374.36291.qm@web45108.mail.sp1.yahoo.com>
2008-11-06 16:59   ` Greg KH
     [not found] <20081022083809.GA3757@yzhao12-linux.sh.intel.com>
2008-11-06  4:48 ` [PATCH 0/16 v6] PCI: Linux kernel SR-IOV support Greg KH
     [not found] ` <20081106044828.GA30417@kroah.com>
2008-11-06 15:40   ` H L
     [not found]   ` <909674.99469.qm@web45112.mail.sp1.yahoo.com>
2008-11-06 15:43     ` Greg KH
2008-11-07  5:18   ` Zhao, Yu
     [not found]   ` <4913CFBC.4040203@intel.com>
2008-11-07  6:07     ` Greg KH
2008-10-22  8:38 Yu Zhao

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=49173BF0.5050506@redhat.com \
    --to=avi@redhat.com \
    --cc=achiang@hp.com \
    --cc=greg@kroah.com \
    --cc=grundler@parisc-linux.org \
    --cc=jbarnes@virtuousgeek.org \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=matthew@wil.cx \
    --cc=mingo@elte.hu \
    --cc=randy.dunlap@oracle.com \
    --cc=rdreier@cisco.com \
    --cc=virtualization@lists.linux-foundation.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).