summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorRusty Russell2015-02-11 05:45:09 +0100
committerRusty Russell2015-02-11 07:17:29 +0100
commit18c137371b2ea86d263b75665a4904a0b8872990 (patch)
tree59f8e6bf9b43195b8d9d77fb3235468baeb8d946 /include/linux
parentlguest: have --rng read from /dev/urandom not /dev/random. (diff)
downloadkernel-qcow2-linux-18c137371b2ea86d263b75665a4904a0b8872990.tar.gz
kernel-qcow2-linux-18c137371b2ea86d263b75665a4904a0b8872990.tar.xz
kernel-qcow2-linux-18c137371b2ea86d263b75665a4904a0b8872990.zip
lguest: add operations to get/set a register from the Launcher.
We use the ptrace API struct, and we currently don't let them set anything but the normal registers (we'd have to filter the others). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/lguest_launcher.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/lguest_launcher.h b/include/linux/lguest_launcher.h
index 495203ff221c..f27cae27b0c1 100644
--- a/include/linux/lguest_launcher.h
+++ b/include/linux/lguest_launcher.h
@@ -63,6 +63,8 @@ enum lguest_req
LHREQ_IRQ, /* + irq */
LHREQ_BREAK, /* No longer used */
LHREQ_EVENTFD, /* + address, fd. */
+ LHREQ_GETREG, /* + offset within struct pt_regs (then read value). */
+ LHREQ_SETREG, /* + offset within struct pt_regs, value. */
};
/*