summaryrefslogtreecommitdiffstats
path: root/util/svme.c
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2023-01-23 20:48:46 +0100
committerLouis Burda <quent.burda@gmail.com>2023-01-23 20:48:46 +0100
commit0dc0595ee1d84bc77cb431b2417223f3b4a5bd57 (patch)
treef4fb1305e2655157e864294f11c8b7ff01fe2218 /util/svme.c
parentf6c8fcf146353388bad49aebfa44e31b8170b8ef (diff)
downloadcachepc-0dc0595ee1d84bc77cb431b2417223f3b4a5bd57.tar.gz
cachepc-0dc0595ee1d84bc77cb431b2417223f3b4a5bd57.zip
Remove unused ioctls
Diffstat (limited to 'util/svme.c')
-rw-r--r--util/svme.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/util/svme.c b/util/svme.c
deleted file mode 100644
index 4876ac4..0000000
--- a/util/svme.c
+++ /dev/null
@@ -1,25 +0,0 @@
-#include "cachepc/uapi.h"
-
-#include <sys/ioctl.h>
-#include <err.h>
-#include <fcntl.h>
-#include <unistd.h>
-#include <stdint.h>
-#include <stdio.h>
-
-int
-main(int argc, const char **argv)
-{
- uint32_t svme;
- int kvm_fd;
-
- kvm_fd = open("/dev/kvm", O_RDWR);
- if (kvm_fd < 0) err(1, "open /dev/kvm");
-
- if (ioctl(kvm_fd, KVM_CPC_SVME_READ, &svme))
- err(1, "ioctl KVM_CPC_SVME_READ");
-
- printf("%u\n", svme);
-
- close(kvm_fd);
-}