mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-25 05:03:05 +00:00
c469580e6c
Kvm can emulate the hyper-v paravirt interface. Newer versions of kvm can advertise the features they support via an ioctl() that reports the cpuid leafs for this interface. This change adds some support for the ioctl() and plumbs it through the plugin interface so that plugins can determine the level of support available in kvm. BUG=b:144746965 TEST=Ran build_test on kernel that supports the ioctl. Added temporary code to print the cpuid leafs and verified that the output is as expected. Instrumented failure as expected from older kernels and verified that results still passed. Change-Id: I6cd7dade1793e4edb52b331d5b960685541f7ba3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2037919 Tested-by: Matt Delco <delco@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Commit-Queue: Matt Delco <delco@chromium.org> |
||
---|---|---|
.. | ||
boot.rs | ||
mini_plugin_template.c | ||
plugin.policy | ||
plugin_adder.c | ||
plugin_async_write.c | ||
plugin_dirty_log.c | ||
plugin_extensions.c | ||
plugin_hint.c | ||
plugin_ioevent.c | ||
plugin_irqfd.c | ||
plugin_msr_index_list.c | ||
plugin_net_config.c | ||
plugin_supported_cpuid.c | ||
plugin_vcpu_pause.c | ||
plugin_vm_state.c | ||
plugins.rs | ||
vfs_crypto.c |