Re: [PATCH 1/1] util/virhostdev: consolidate duplicated KVM support code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 4/30/19 11:51 PM, Daniel Henrique Barboza wrote:
tests/virhostdevtest.c implements a function called
'virHostdevHostSupportsPassthroughKVM', that is equal to
'qemuHostdevHostSupportsPassthroughLegacy' that is declared
inside qemu/qemu_hostdev.c.

This patch removes the duplicated code from both files and
and puts it inside util/virhostdev.c, under the name
virHostdev...KVM, which represents what the code does better
than using 'Legacy'.

In fact, I'd rather see the function dropped from the tests completely. It's checking if the host the test us run on supports device assignment, but we're using pcimock to emulate all PCI detach/attach. The test should not be host dependent. It can still be architecture/OS dependent though (e.g. tehre's no sysfs on FreeBSD).

Michal

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux