device assignment doesn't work: "error: requires KVM support"

Bug #882358 reported by Yongjie Ren
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QEMU
Fix Released
Undecided
Unassigned

Bug Description

qemu.git commit:8843cf40c0f482949e6ae9d0119e45d6b96fe890

I met the following error when do device assignment with qemu in kvm host.
./x86_64-softmmu/qemu-system-x86_64 -smp 2 -m 1024 -device pci-assign,host=0e:00.0 -hda /root/jay/rhel6u1.img
qemu-system-x86_64: -device pci-assign,host=0e:00.0: pci-assign: error: requires KVM support
qemu-system-x86_64: -device pci-assign,host=0e:00.0: Device 'pci-assign' could not be initialized

./x86_64-softmmu/qemu-system-x86_64 -device ? 2>&1 | grep -i pci-assign
-----------------name "pci-assign", bus PCI, desc "pass through host pci devices to the guest"
When configuring the qemu, it prints "KVM support yes". My qemu configuration log and compiling log are attached.

But commit edbb7c0d doesn't have this issue.

Revision history for this message
Yongjie Ren (yongjie-ren) wrote :
Revision history for this message
Yongjie Ren (yongjie-ren) wrote :
Revision history for this message
Yongjie Ren (yongjie-ren) wrote :

This is because kvm is not enabled by default even if I add KVM support when configuring qemu.
Now it got fixed by the following commit.

author Marcelo Tosatti <email address hidden>
Thu, 27 Oct 2011 20:34:42 +0800 (10:34 -0200)
committer Marcelo Tosatti <email address hidden>
Thu, 27 Oct 2011 20:34:42 +0800 (10:34 -0200)
commit 7879db7e9c09b92d9af1c143fbe2cc212ec89e4b
Revert "qemu-kvm: set default accelerator via target.conf"

This reverts commit a5c40eb1aa929a03157252db7337bc4ddd2435be.

Jan says:

"Unless you fully install qemu, that conf is not picked up (or an older
version is used). I'd still like to see this working with qemu started
from a build directory..."

Signed-off-by: Marcelo Tosatti <email address hidden>

Revision history for this message
Yongjie Ren (yongjie-ren) wrote :

It works now.

Changed in qemu:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.