All of lore.kernel.org
 help / color / mirror / Atom feed
* A question about "CONFIG_KVM_DEVICE_ASSIGNMENT" configuration
@ 2015-09-10 10:22 Nan Xiao
  2015-09-10 15:08 ` Alex Williamson
  0 siblings, 1 reply; 6+ messages in thread
From: Nan Xiao @ 2015-09-10 10:22 UTC (permalink / raw)
  To: kvm

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;
   ...
#ifdef CONFIG_KVM_DEVICE_ASSIGNMENT
case KVM_CAP_IOMMU:
r = iommu_present(&pci_bus_type);
break;
#endif
   ...
}

If not configure this option, the following code will execute failed:

    ret = ioctl(dev, KVM_CHECK_EXTENSION, KVM_CAP_IOMMU);

So does it mean to use KVM assigned device feature, the
"CONFIG_KVM_DEVICE_ASSIGNMENT"
is not "deprecated"?

Thanks very much in advance!
Best Regards
Nan Xiao

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-09-11  0:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-10 10:22 A question about "CONFIG_KVM_DEVICE_ASSIGNMENT" configuration Nan Xiao
2015-09-10 15:08 ` Alex Williamson
2015-09-10 23:58   ` Nan Xiao
2015-09-11  0:18     ` Alex Williamson
2015-09-11  0:42       ` Nan Xiao
2015-09-11  0:55   ` Chen, Tiejun

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.