* vhost_net_init returned -7
@ 2009-08-28 20:10 Brian Jackson
2009-08-29 20:47 ` Michael S. Tsirkin
2009-08-29 21:01 ` Michael S. Tsirkin
0 siblings, 2 replies; 7+ messages in thread
From: Brian Jackson @ 2009-08-28 20:10 UTC (permalink / raw)
To: kvm, mst
I'm trying to tinker with vhost_net. I have a 2.6.31-rc4 host kernel patched
to support vhost_net (v5) (along with ksm if it matters). The guest is a
debian-5.0.2 (2.6.26) install CD for now. When the guest tries to load the
virtio-net drivers, kvm closes and prints "vhost_net_init returned -7". KVM is
patched with your patches from 20090817.
I tried looking through the code but without adding some other debug code,
it's not obvious where exactly it's failing. Was going to see if anyone (I
know, not a lot of users yet) had any ideas before I dig too deep.
--Iggy
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: vhost_net_init returned -7
2009-08-28 20:10 vhost_net_init returned -7 Brian Jackson
@ 2009-08-29 20:47 ` Michael S. Tsirkin
2009-08-29 21:01 ` Michael S. Tsirkin
1 sibling, 0 replies; 7+ messages in thread
From: Michael S. Tsirkin @ 2009-08-29 20:47 UTC (permalink / raw)
To: Brian Jackson; +Cc: kvm
On Fri, Aug 28, 2009 at 03:10:43PM -0500, Brian Jackson wrote:
> I'm trying to tinker with vhost_net. I have a 2.6.31-rc4 host kernel patched
> to support vhost_net (v5) (along with ksm if it matters). The guest is a
> debian-5.0.2 (2.6.26) install CD for now. When the guest tries to load the
> virtio-net drivers, kvm closes and prints "vhost_net_init returned -7". KVM is
> patched with your patches from 20090817.
>
> I tried looking through the code but without adding some other debug code,
> it's not obvious where exactly it's failing. Was going to see if anyone (I
> know, not a lot of users yet) had any ideas before I dig too deep.
>
> --Iggy
What I think you miss is eventfd support from kvm module in kernel.
Patches for this are in Avi's kvm.git tree:
git://git.kernel.org/pub/scm/linux/kernel/git/avi/kvm.git
--
MST
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: vhost_net_init returned -7
2009-08-28 20:10 vhost_net_init returned -7 Brian Jackson
2009-08-29 20:47 ` Michael S. Tsirkin
@ 2009-08-29 21:01 ` Michael S. Tsirkin
2009-08-29 21:38 ` Brian Jackson
1 sibling, 1 reply; 7+ messages in thread
From: Michael S. Tsirkin @ 2009-08-29 21:01 UTC (permalink / raw)
To: Brian Jackson; +Cc: kvm
On Fri, Aug 28, 2009 at 03:10:43PM -0500, Brian Jackson wrote:
> I'm trying to tinker with vhost_net. I have a 2.6.31-rc4 host kernel patched
> to support vhost_net (v5) (along with ksm if it matters). The guest is a
> debian-5.0.2 (2.6.26) install CD for now. When the guest tries to load the
> virtio-net drivers, kvm closes and prints "vhost_net_init returned -7". KVM is
> patched with your patches from 20090817.
>
> I tried looking through the code but without adding some other debug code,
> it's not obvious where exactly it's failing. Was going to see if anyone (I
> know, not a lot of users yet) had any ideas before I dig too deep.
>
> --Iggy
Something I forgot to mention is that userspace I posted currently rely on
guest MSI support which requires guest v2.6.31 (any rc will do). You don't need
kvm.git in guest though: kernel.org kernels should work ok.
--
MST
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: vhost_net_init returned -7
2009-08-29 21:01 ` Michael S. Tsirkin
@ 2009-08-29 21:38 ` Brian Jackson
2009-08-30 5:12 ` Michael S. Tsirkin
0 siblings, 1 reply; 7+ messages in thread
From: Brian Jackson @ 2009-08-29 21:38 UTC (permalink / raw)
To: Michael S. Tsirkin; +Cc: kvm@vger.kernel.org
I'm guessing that's not something the windows virtio drivers support
yet. Do you plan on adding support for guests without msi or am I
stuck waiting for the windows drivers to add support for msi?
On Aug 29, 2009, at 4:01 PM, "Michael S. Tsirkin" <mst@redhat.com>
wrote:
> On Fri, Aug 28, 2009 at 03:10:43PM -0500, Brian Jackson wrote:
>> I'm trying to tinker with vhost_net. I have a 2.6.31-rc4 host
>> kernel patched
>> to support vhost_net (v5) (along with ksm if it matters). The guest
>> is a
>> debian-5.0.2 (2.6.26) install CD for now. When the guest tries to
>> load the
>> virtio-net drivers, kvm closes and prints "vhost_net_init returned
>> -7". KVM is
>> patched with your patches from 20090817.
>>
>> I tried looking through the code but without adding some other
>> debug code,
>> it's not obvious where exactly it's failing. Was going to see if
>> anyone (I
>> know, not a lot of users yet) had any ideas before I dig too deep.
>>
>> --Iggy
>
> Something I forgot to mention is that userspace I posted currently
> rely on
> guest MSI support which requires guest v2.6.31 (any rc will do). You
> don't need
> kvm.git in guest though: kernel.org kernels should work ok.
>
> --
> MST
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: vhost_net_init returned -7
2009-08-29 21:38 ` Brian Jackson
@ 2009-08-30 5:12 ` Michael S. Tsirkin
2009-08-31 17:33 ` Avi Kivity
0 siblings, 1 reply; 7+ messages in thread
From: Michael S. Tsirkin @ 2009-08-30 5:12 UTC (permalink / raw)
To: Brian Jackson; +Cc: kvm@vger.kernel.org
On Sat, Aug 29, 2009 at 04:38:25PM -0500, Brian Jackson wrote:
> I'm guessing that's not something the windows virtio drivers support
> yet. Do you plan on adding support for guests without msi or am I stuck
> waiting for the windows drivers to add support for msi?
>
I do want to support non-MSI. Host kernel KVM will have to be extended
for this, though.
>
> On Aug 29, 2009, at 4:01 PM, "Michael S. Tsirkin" <mst@redhat.com>
> wrote:
>
>> On Fri, Aug 28, 2009 at 03:10:43PM -0500, Brian Jackson wrote:
>>> I'm trying to tinker with vhost_net. I have a 2.6.31-rc4 host kernel
>>> patched
>>> to support vhost_net (v5) (along with ksm if it matters). The guest
>>> is a
>>> debian-5.0.2 (2.6.26) install CD for now. When the guest tries to
>>> load the
>>> virtio-net drivers, kvm closes and prints "vhost_net_init returned
>>> -7". KVM is
>>> patched with your patches from 20090817.
>>>
>>> I tried looking through the code but without adding some other debug
>>> code,
>>> it's not obvious where exactly it's failing. Was going to see if
>>> anyone (I
>>> know, not a lot of users yet) had any ideas before I dig too deep.
>>>
>>> --Iggy
>>
>> Something I forgot to mention is that userspace I posted currently
>> rely on
>> guest MSI support which requires guest v2.6.31 (any rc will do). You
>> don't need
>> kvm.git in guest though: kernel.org kernels should work ok.
>>
>> --
>> MST
>> --
>> To unsubscribe from this list: send the line "unsubscribe kvm" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: vhost_net_init returned -7
2009-08-30 5:12 ` Michael S. Tsirkin
@ 2009-08-31 17:33 ` Avi Kivity
2009-09-07 8:59 ` Dor Laor
0 siblings, 1 reply; 7+ messages in thread
From: Avi Kivity @ 2009-08-31 17:33 UTC (permalink / raw)
To: Michael S. Tsirkin; +Cc: Brian Jackson, kvm@vger.kernel.org
On 08/30/2009 08:12 AM, Michael S. Tsirkin wrote:
> On Sat, Aug 29, 2009 at 04:38:25PM -0500, Brian Jackson wrote:
>
>> I'm guessing that's not something the windows virtio drivers support
>> yet. Do you plan on adding support for guests without msi or am I stuck
>> waiting for the windows drivers to add support for msi?
>>
>>
> I do want to support non-MSI. Host kernel KVM will have to be extended
> for this, though.
>
>
You can proxy the interrupt in userspace. I don't think we should spend
a lot of time optimizing vhost-net pci-intx, just get it to work
reasonably well.
--
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: vhost_net_init returned -7
2009-08-31 17:33 ` Avi Kivity
@ 2009-09-07 8:59 ` Dor Laor
0 siblings, 0 replies; 7+ messages in thread
From: Dor Laor @ 2009-09-07 8:59 UTC (permalink / raw)
To: Avi Kivity; +Cc: Michael S. Tsirkin, Brian Jackson, kvm@vger.kernel.org
On 08/31/2009 08:33 PM, Avi Kivity wrote:
> On 08/30/2009 08:12 AM, Michael S. Tsirkin wrote:
>> On Sat, Aug 29, 2009 at 04:38:25PM -0500, Brian Jackson wrote:
>>> I'm guessing that's not something the windows virtio drivers support
>>> yet. Do you plan on adding support for guests without msi or am I stuck
>>> waiting for the windows drivers to add support for msi?
It's work in progress.
>>>
>> I do want to support non-MSI. Host kernel KVM will have to be extended
>> for this, though.
>>
>
> You can proxy the interrupt in userspace. I don't think we should spend
> a lot of time optimizing vhost-net pci-intx, just get it to work
> reasonably well.
>
>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2009-09-07 8:58 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-28 20:10 vhost_net_init returned -7 Brian Jackson
2009-08-29 20:47 ` Michael S. Tsirkin
2009-08-29 21:01 ` Michael S. Tsirkin
2009-08-29 21:38 ` Brian Jackson
2009-08-30 5:12 ` Michael S. Tsirkin
2009-08-31 17:33 ` Avi Kivity
2009-09-07 8:59 ` Dor Laor
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).