All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jan C. Bernauer" <jan.bernauer@t-online.de>
To: kvm@vger.kernel.org
Subject: Re: Problem with PCI device assignment (KVM-79, 2.6.28)
Date: Sun, 07 Dec 2008 23:42:32 +0100	[thread overview]
Message-ID: <493C5158.5000406@t-online.de> (raw)

Jakob Sandgren wrote:
> > Hi,
> >
> > I get the following (fatal) error when trying to assign a pci device
> > (USB 2.0 controller) to a guest:
> > create_userspace_phys_mem: Invalid argument
> > assigned_dev_iomem_map: Error: create new mapping failed
> >
> > Assigning another (USB 1.1) device works.
> >
> >

Can you check what lspci -v says?
I suspect the size of a memory region is not a multiple of 4096.
Same thing happens for me for a network and a dvb card.

As far as I know, the mapping code can only map whole pages. So the code
has to expand the size to the nearest multiple.


Best regards,
Jan C. Bernauer








             reply	other threads:[~2008-12-07 23:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-07 22:42 Jan C. Bernauer [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-12-07 21:59 Problem with PCI device assignment (KVM-79, 2.6.28) Jakob Sandgren
2008-12-07 22:54 ` Jan C. Bernauer

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=493C5158.5000406@t-online.de \
    --to=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.