Skip to content

Instantly share code, notes, and snippets.

@sharth
Created June 10, 2014 16:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sharth/2f54458e112eba24d12a to your computer and use it in GitHub Desktop.
Save sharth/2f54458e112eba24d12a to your computer and use it in GitHub Desktop.
#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