-
-
Save sharth/2f54458e112eba24d12a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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