@@ -46,6 +46,7 @@ config KVM
select KVM_GENERIC_HARDWARE_ENABLING
select KVM_WERROR if WERROR
select KVM_USERFAULT
+ select HAVE_KVM_VCPU_ASYNC_IOCTL
help
Support hosting fully virtualized guest machines using hardware
virtualization extensions. You will need a fairly recent
@@ -13619,6 +13619,12 @@ void kvm_arch_gmem_invalidate(kvm_pfn_t start, kvm_pfn_t end)
}
#endif
+long kvm_arch_vcpu_async_ioctl(struct file *filp,
+ unsigned int ioctl, unsigned long arg)
+{
+ return -ENOIOCTLCMD;
+}
+
int kvm_spec_ctrl_test_value(u64 value)
{
/*
x86 has not had support for async ioctls. This patch adds an arch implementation, but does not add any of the ioctls just yet. Signed-off-by: Nikita Kalyazin <kalyazin@amazon.com> --- arch/x86/kvm/Kconfig | 1 + arch/x86/kvm/x86.c | 6 ++++++ 2 files changed, 7 insertions(+)