Re: A question about "CONFIG_KVM_DEVICE_ASSIGNMENT" configuration

2015-09-10 Thread Chen, Tiejun
On 9/10/2015 11:08 PM, Alex Williamson wrote: On Thu, 2015-09-10 at 18:22 +0800, Nan Xiao wrote: Hi all, When building kernel, it prompts "CONFIG_KVM_DEVICE_ASSIGNMENT" is "deprecated". But it is still used in kernel code. E.g.: "kvm_vm_ioctl_check_extension" function: { ... #ifdef CONFIG_K

Re: A question about "CONFIG_KVM_DEVICE_ASSIGNMENT" configuration

2015-09-10 Thread Nan Xiao
Hi Alex, Thanks very much for your time and answer! Best Regards Nan Xiao On Fri, Sep 11, 2015 at 8:18 AM, Alex Williamson wrote: > On Fri, 2015-09-11 at 07:58 +0800, Nan Xiao wrote: >> Hi Alex, >> >> Thanks very much for your response! so for assigning PCI device in QEMU. >> The following meth

Re: A question about "CONFIG_KVM_DEVICE_ASSIGNMENT" configuration

2015-09-10 Thread Alex Williamson
On Fri, 2015-09-11 at 07:58 +0800, Nan Xiao wrote: > Hi Alex, > > Thanks very much for your response! so for assigning PCI device in QEMU. > The following method is deprecated: > > qemu-system-x86_64 ... -device pci-assign,host=:21:00.1 > > I should use this one instead: > > qemu-sy

Re: A question about "CONFIG_KVM_DEVICE_ASSIGNMENT" configuration

2015-09-10 Thread Nan Xiao
Hi Alex, Thanks very much for your response! so for assigning PCI device in QEMU. The following method is deprecated: qemu-system-x86_64 ... -device pci-assign,host=:21:00.1 I should use this one instead: qemu-system-x86_64 ... -device vfio-pci,host=:21:00.1 right? Thanks in a

Re: A question about "CONFIG_KVM_DEVICE_ASSIGNMENT" configuration

2015-09-10 Thread Alex Williamson
On Thu, 2015-09-10 at 18:22 +0800, Nan Xiao wrote: > Hi all, > > When building kernel, it prompts "CONFIG_KVM_DEVICE_ASSIGNMENT" is > "deprecated". > But it is still used in kernel code. E.g.: > "kvm_vm_ioctl_check_extension" function: > { > ... > #ifdef CONFIG_KVM_DEVICE_ASSIGNMENT > case KV

A question about "CONFIG_KVM_DEVICE_ASSIGNMENT" configuration

2015-09-10 Thread Nan Xiao
Hi all, When building kernel, it prompts "CONFIG_KVM_DEVICE_ASSIGNMENT" is "deprecated". But it is still used in kernel code. E.g.: "kvm_vm_ioctl_check_extension" function: { ... #ifdef CONFIG_KVM_DEVICE_ASSIGNMENT case KVM_CAP_ASSIGN_DEV_IRQ: case KVM_CAP_PCI_2_3: #endif r = 1; break; ...