wangbaba523
wangbaba523
> hi @wangbaba523 , > > If I'm not mistaken, `KVM_INTROSPECTION_HOOK` refers to the bitdefender KVMI subsystem, the new API that is currently maintained by this project > > `KVM_NITRO_ATTACH_VM`...
/* This function uses “/var/run/libvirt/qemu/vm.pid” to find the kvm structure of the corresponding virtual machine */ struct kvm* kvmi_get_vm_by_creator(pid_t creator) { struct kvm *rv; struct kvm *kvm; rv = NULL;...
Thank you for your reply,but how to call the case of "KVM_INTROSPECTION_HOOK" in kvmi-v7 /virt/kvm/kvm_main.c case KVM_INTROSPECTION_HOOK: if (enable_introspection) r = kvmi_ioctl_hook(kvm, argp); else r = -EPERM; break;
In short, i want to use the function of ..... struct kvm_introspection_hook i; ioctl(vmfd, KVM_INTROSPECTION_HOOK, &i); ...... in my vmi process.but there can' t find vmfd, So I added nitro...