[libvirt] [PATCHv4 3/3] qemu: Prefer VFIO for PCI device passthrough

Peter Krempa pkrempa at redhat.com
Thu Oct 10 10:14:13 UTC 2013


On 10/09/13 16:01, Laine Stump wrote:
> On 10/08/2013 06:46 PM, Peter Krempa wrote:
>> Prefer using VFIO (if available) to the legacy KVM device passthrough.
>>
>> With this patch a PCI passthrough device without the driver configured
>> will be started with VFIO if it's available on the host. If not legacy
>> KVM passthrough is checked and error is reported if it's not available.
>> ---
>>
>> Notes:
>>     Version 4:
>>     - Adapted to call tree change
>>
>>  docs/formatdomain.html.in |  9 ++++-----
>>  src/conf/domain_conf.h    |  2 +-
>>  src/qemu/qemu_command.c   |  2 +-
>>  src/qemu/qemu_hostdev.c   | 30 +++++++++++++++++++++++++-----
>>  src/qemu/qemu_hostdev.h   |  4 +++-
>>  src/qemu/qemu_hotplug.c   |  2 +-
>>  src/qemu/qemu_process.c   | 15 ++++++++-------
>>  tests/qemuxml2argvtest.c  | 11 +++++++++++
>>  8 files changed, 54 insertions(+), 21 deletions(-)
>>

....

> 
> ACk, with a less misleading error message.
> 

I've changed the error message to "_("invalid PCI passthrough type
'%s'")" and pushed. Thanks for the review.

Peter

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 901 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20131010/529e6cdc/attachment-0001.sig>


More information about the libvir-list mailing list