Skip to contentSkip to conversation

Problem with PCI device assignment (KVM-79, 2.6.28)

DISCUSSION Jan C. Bernauer 1 participant 1 message Dec 7, 2008 KVM

lore
Share & tools
lore
#0 lore raw
Quoted 10 lines · Jakob Sandgren
Quoted 10 lines

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