WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Issue with PCI-passthrough and pvops

To: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
Subject: Re: [Xen-devel] Issue with PCI-passthrough and pvops
From: Dario Faggioli <raistlin@xxxxxxxx>
Date: Wed, 19 Oct 2011 19:27:08 +0200
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, Ian Campbell <Ian.Campbell@xxxxxxxxxx>
Delivery-date: Wed, 19 Oct 2011 10:28:04 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=fY5qrxNtan81/qHm1/qjypbqiwwj1kt4Sr89HE+g+Xg=; b=uNndwL3Gz9SSz5k5lzchTwiL2iLoq7HkNtj3pDes5AZVPiUNh2VWwIyRO7SNgHdC5N W6ryF99EYGIX+vmcXTt2r38LgbW4rnyMk/F9lOSsV1FAn0rusN7t2nH9IGXbIUWlvLFa RC8kpYp73p8oSf8FrZEodf5vWG0b7Hpk7W33M=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20111019141032.GB8033@xxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <1318865791.25056.28.camel@Palantir> <20111017164020.GE19684@xxxxxxxxxxxxxxxxxxx> <1318982052.2997.19.camel@Palantir> <20111019011028.GA19302@xxxxxxxxxxxxxxxxxxx> <1319010037.11016.66.camel@xxxxxxxxxxxxxxxxxxxx> <CAAWQecut9-ouRfZEwmvFYkA8W98XZRFc3LtdPYPyWbhuaZzYiw@xxxxxxxxxxxxxx> <20111019141032.GB8033@xxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Wed, Oct 19, 2011 at 4:10 PM, Konrad Rzeszutek Wilk
<konrad.wilk@xxxxxxxxxx> wrote:
>> >> > Guest:
>> >> > [   19.607997] ixgbe: Intel(R) 10 Gigabit PCI Express Network Driver - 
>> >> > version 3.4.8-k
>> >> > [   19.608670] ixgbe: Copyright (c) 1999-2011 Intel Corporation.
>> >> > [   19.609465] ixgbe 0000:00:00.0: device not available (can't reserve 
>> >> > [mem 0xdf300000-0xe32fffff 64bit])
>> >> > [   19.610878] ixgbe: probe of 0000:00:00.0 failed with error -22
>
> Dario,
>
> I've seen this bug before with .. Hm, some similar adapter. I know
> that if pass in 'igb.max_vfs=2' and passed in the igbvf PCI cards the
> guest worked just fine. It just did not like being passed in as a real device.
>
> Otherwise, older MSI/MSI-X (non SR-IOV) cards worked fine so I never go
> further in debugging this.
>
Yeah, in fact passing other cards the box have to the very same domain
seems to just work.

> I would recommend you take a look at the probe function and figure out why
> it can't reserve that region. And easy way to figure that out is to
> boot the guest and look in /proc/iomem and see what is in the 
> df30000-e32ffffff
> region. Perhaps something else is overlapping it?
>
I might be wrong, but it doesn't seem quite so to me:

# cat /proc/iomem
00000000-0000ffff : reserved
00010000-0009ffff : System RAM
000a0000-000fffff : reserved
  000f0000-000fffff : System ROM
00100000-1fffffff : System RAM
  01000000-01b88b4b : Kernel code
  01b88b4c-02352a7f : Kernel data
  02652000-02ee6fff : Kernel bss
20000000-bf698fff : Unusable memory
bf6af000-bf6cdfff : ACPI Tables
d58f8000-d58fbfff : 0000:00:00.0
d5900000-d597ffff : 0000:00:00.0
df200000-e71fffff : 0000:00:00.0
100000000-1000fffff : System RAM

The probe function is huge... But I'll se if I can find the time to take
a look at it in the next days...

Thanks a lot for now. :-)

Dario

-- 
<<This happens because I choose it to happen!>> (Raistlin Majere)
----------------------------------------------------------------------
Dario Faggioli, <http://retis.sssup.it/people/faggioli>
Senior Software Engineer, Citrix Systems R&D, Cambridge (UK)
PhD Candidate, ReTiS Lab, Scuola Superiore Sant'Anna, Pisa  (Italy)

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel