All of lore.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi@redhat.com>
To: "Jan C. Bernauer" <jan.bernauer@t-online.de>
Cc: kvm@vger.kernel.org, Amit Shah <amit.shah@redhat.com>
Subject: Re: Status of pci passthrough work?
Date: Sun, 28 Sep 2008 07:39:13 +0300	[thread overview]
Message-ID: <48DF0A71.6080304@redhat.com> (raw)
In-Reply-To: <48DE2B1F.8010003@t-online.de>

Jan C. Bernauer wrote:
> Hi,
>
>  I have about the same problem, so excuse me for hijacking this thread.
>
> My hardware consists of a 780g/SB700 Mainboard and a 4850e AMD CPU, and
> I'm interested in forwarding a DVB-C tuner card to the guest. Maybe
> some NICs later.
>
> I tried and 'sort of' got it working with Amit's kernel and userspace
> tools.
> First thing:
> The dvb-c card has an interesting memory mapping, as reported by
> lspci -v:
>         Memory at cfdff000 (32-bit, non-prefetchable) [size=512]
>
> Size 512 doesn't fly with a check in kvm_main.c:
> if (mem->memory_size & (PAGE_SIZE - 1))
>                 goto out;
>
> So I patched the userspace utilities to use 4096 instead.
>
> With that patch, the guest saw the card, the driver got loaded,
> and channel tuning works, but I get some i2c timeouts on the
> guest side, and the host side has errors like:
>
> ------------[ cut here ]------------
> Sep 22 02:28:54 [kernel] WARNING: at kernel/irq/manage.c:180
> enable_irq+0x3a/0x55()
> Sep 22 02:28:54 [kernel] Unbalanced enable for IRQ 20
>   

That looks due to bad error handling, due to the failures you had before.

Try rebooting the host and starting again with the patched userspace.

Amit, can you take a look at the error handling paths?

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


  parent reply	other threads:[~2008-09-28  4:39 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-27  2:20 Status of pci passthrough work? Thomas Fjellstrom
2008-09-27  6:43 ` Han, Weidong
2008-09-27  7:12   ` Thomas Fjellstrom
2008-09-27  7:44     ` Han, Weidong
2008-09-27  7:57       ` Thomas Fjellstrom
2008-09-28  7:10         ` Amit Shah
2008-09-29  1:09           ` Thomas Fjellstrom
2008-10-03  6:30             ` Amit Shah
2008-12-15 14:40               ` xming
2008-09-27 12:46 ` Jan C. Bernauer
2008-09-27 15:40   ` Thomas Fjellstrom
2008-09-27 15:55     ` Jan C. Bernauer
2008-09-27 16:07       ` Thomas Fjellstrom
2008-09-27 18:01         ` Thomas Fjellstrom
2008-09-27 18:26           ` Jan C. Bernauer
2008-09-27 18:33             ` Thomas Fjellstrom
2008-09-27 18:40               ` Jan C. Bernauer
2008-09-27 18:44                 ` Thomas Fjellstrom
2008-09-28  4:39   ` Avi Kivity [this message]
2008-09-28  7:11     ` Amit Shah
     [not found] <194255114.431631229436171339.JavaMail.root@zmail02.collab.prod.int.phx2.redhat.com>
2008-12-16 14:07 ` Amit Shah
2008-12-16 14:38   ` xming
2008-12-16 14:40     ` Amit Shah
2009-05-14 17:08   ` Passera, Pablo R
2009-05-15 11:00     ` Amit Shah
2009-05-15 13:14       ` Passera, Pablo R
2009-05-15 13:38         ` Amit Shah
2009-05-29 17:41           ` Passera, Pablo R
2009-05-30  8:36             ` Amit Shah

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=48DF0A71.6080304@redhat.com \
    --to=avi@redhat.com \
    --cc=amit.shah@redhat.com \
    --cc=jan.bernauer@t-online.de \
    --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.