Le mer. 8 mai 2019 à 20:27, Artom Lifshitz <alifshit@redhat.com> a écrit :
On Wed, May 8, 2019 at 9:30 AM Jeremy Stanley <fungi@yuggoth.org> wrote:
> Long shot, but since you just need the feature provided and not the
> performance it usually implies, are there maybe any open source
> emulators which provide the same instruction set for conformance
> testing purposes?

Something like that exists for network cards. It's called netdevsim
[1], and it's been mentioned in the SRIOV live migration spec [2].
However to my knowledge nothing like that exists for GPUs.


libvirt provides us a way to fake mediated devices attached to instances but we still need to lookup sysfs for either knowing all the physical GPUs or creating a new mdev so that's where it's not possibleto have an emulator AFAICU.

-Sylvain

[1] https://www.phoronix.com/scan.php?page=news_item&px=Linux-4.16-Networking
[2] https://specs.openstack.org/openstack/nova-specs/specs/train/approved/libvirt-neutron-sriov-livemigration.html#testing