Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
#include <sys/ioctl.h>
#define KVMIO 0xAE
#define KVM_NITRO_GET_SREGS _IOR(KVMIO, 0xE9, struct kvm_sregs)
struct kvm_sregs {};
int kvm_vcpu_ioctl(int vcpu_fd,int type, ...);
int main() {
struct kvm_sregs *sregs = 0;
kvm_vcpu_ioctl(0, KVM_NITRO_GET_SREGS, sregs);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment