All of lore.kernel.org
 help / color / mirror / Atom feed
From: Oliver Schrempf <oliver@schrempf.org>
To: kvm@vger.kernel.org
Subject: mmap error on pci passthrough
Date: Fri, 13 Mar 2009 19:21:20 +0100	[thread overview]
Message-ID: <49BAA420.6060706@schrempf.org> (raw)

Hi

I've tried to use PCI passthrough with a DVB card which fails with an 
mmap error.

 > kvm -name test-system -boot c -m 512  -hda /dev/srv/kvmtest -k de 
-usb  -pcidevice host=03:00.0
assigned_dev_register_regions: Error: Couldn't mmap 0xe1200000!
Failed to initialize assigned device host=03:00.0

I'm using the KVM-83 backport on Ubuntu 8.10
There is no module loaded for the device on the host and no shared IRQs.
Am I doing something wrong?

Thanks
OS

dmesg ouput:
[ 2193.607975] ------------[ cut here ]------------
[ 2193.607980] WARNING: at 
/build/buildd/linux-2.6.27/drivers/pci/pci-sysfs.c:499 
pci_mmap_resource+0x15b/0x170()
[ 2193.607982] process "kvm" tried to map 0x00000000-0x00000001 on 
0000:03:00.0 BAR 0 (size 0x00000000)
[ 2193.607984] Modules linked in: i915 drm ipt_MASQUERADE iptable_nat 
nf_nat nf_conntrack_ipv4 xt_state nf_conntrack ipt_REJECT xt_tcpudp 
bridge stp kvm_intel kvm ipv6 af_packet iptable_filter ip_tables 
x_tables ac parport_pc lp parport loop usblp evdev psmouse intel_agp 
serio_raw agpgart dm_multipath shpchp button pcspkr pci_hotplug scsi_dh 
iTCO_wdt iTCO_vendor_support ext3 jbd mbcache sr_mod sd_mod cdrom 
crc_t10dif sg pata_acpi ata_piix r8169 mii ata_generic libata scsi_mod 
uhci_hcd dock ehci_hcd usbcore raid10 raid456 async_xor async_memcpy 
async_tx xor raid1 raid0 multipath linear md_mod dm_mirror dm_log 
dm_snapshot dm_mod thermal processor fan fbcon tileblit font bitblit 
softcursor fuse
[ 2193.608032] Pid: 5195, comm: kvm Not tainted 2.6.27-11-server #1
[ 2193.608035]  [<c0139465>] warn_slowpath+0x65/0x90
[ 2193.608039]  [<c01c46b6>] ? real_lookup+0x86/0x110
[ 2193.608043]  [<c01c38bb>] ? __follow_mount+0xb/0x90
[ 2193.608045]  [<c01cdbda>] ? dput+0x8a/0x130
[ 2193.608048]  [<c01b88c1>] ? __mem_cgroup_uncharge_common+0x111/0x170
[ 2193.608052]  [<c0199006>] ? __dec_zone_state+0x16/0x90
[ 2193.608055]  [<c019909d>] ? __dec_zone_page_state+0x1d/0x20
[ 2193.608058]  [<c01a5809>] ? page_remove_rmap+0x49/0x110
[ 2193.608061]  [<c0127345>] ? kunmap_atomic+0x35/0x80
[ 2193.608064]  [<c019bd98>] ? zap_pte_range+0x138/0x3a0
[ 2193.608067]  [<c0190b1e>] ? get_pageblock_flags_group+0xe/0x90
[ 2193.608070]  [<c026dd1b>] pci_mmap_resource+0x15b/0x170
[ 2193.608072]  [<c026dd30>] ? pci_mmap_resource_uc+0x0/0x20
[ 2193.608075]  [<c026dd47>] pci_mmap_resource_uc+0x17/0x20
[ 2193.608077]  [<c020a21a>] mmap+0x5a/0xa0
[ 2193.608079]  [<c01a2eb8>] mmap_region+0x1d8/0x4d0
[ 2193.608081]  [<c01a0e2a>] ? find_vma+0xa/0x90
[ 2193.608083]  [<c01a112d>] ? arch_get_unmapped_area_topdown+0x10d/0x170
[ 2193.608086]  [<c021c52c>] ? security_file_mmap+0x2c/0x40
[ 2193.608089]  [<c01a3419>] do_mmap_pgoff+0x269/0x370
[ 2193.608091]  [<c010d93d>] sys_mmap2+0xad/0xc0
[ 2193.608094]  [<c0109f03>] sysenter_do_call+0x12/0x2f
[ 2193.608098]  =======================
[ 2193.608099] ---[ end trace a770bf575e130268 ]---


                 reply	other threads:[~2009-03-13 18:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=49BAA420.6060706@schrempf.org \
    --to=oliver@schrempf.org \
    --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.