> -----Original Message----- > From: Alex Williamson [mailto:alex.williamson@xxxxxxxxxx] > Sent: Thursday, October 27, 2011 11:04 AM > To: Ren, Yongjie > Cc: KVM General; Avi Kivity > Subject: Re: [qemu bug] device assignment doesn't work: "error: requires KVM > support" > > On Thu, 2011-10-27 at 10:56 +0800, Ren, Yongjie wrote: > > Hi, > > When doing device assignment with qemu and kvm upstream, I met "error: > requires KVM support". > > Please also refer to the bug in qemu bugzilla. > > https://bugs.launchpad.net/qemu/+bug/882358 > > > > qemu.git commit:8843cf40c0f482949e6ae9d0119e45d6b96fe890 > > > > I met the following error when doing 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/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. It's edbb7c0de56692868e6126c7ff7e8bf917f8d0e7. "edbb7c0d" is unique in git log, so it may stand for its full commit ID. > Note these are qemu-kvm.git commit IDs. They are commit IDs in master branch of git://github.com/avikivity/qemu.git > > The error message is correct, device assignment requires kvm support. > What does 'info kvm' in the monitor report? It shows "kvm support: disabled". But when configuring qemu, I get this message " KVM support yes". See details in my attachment configure.log yongjie ��.n��������+%������w��{.n�����o�^n�r������&��z�ޗ�zf���h���~����������_��+v���)ߣ�