diff options
author | Rusty Russell | 2015-02-11 05:45:09 +0100 |
---|---|---|
committer | Rusty Russell | 2015-02-11 07:17:30 +0100 |
commit | 8ed313001a892f240269dea05d4b925cbd150492 (patch) | |
tree | 340461d5b381ffc3b939bb6d414f20a732ff85c5 /include | |
parent | lguest: write more information to userspace about pending traps. (diff) | |
download | kernel-qcow2-linux-8ed313001a892f240269dea05d4b925cbd150492.tar.gz kernel-qcow2-linux-8ed313001a892f240269dea05d4b925cbd150492.tar.xz kernel-qcow2-linux-8ed313001a892f240269dea05d4b925cbd150492.zip |
lguest: add infrastructure for userspace to deliver a trap to the guest.
This is required for instruction emulation to move to userspace.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/lguest_launcher.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/lguest_launcher.h b/include/linux/lguest_launcher.h index c4451ebece47..3c402b843e03 100644 --- a/include/linux/lguest_launcher.h +++ b/include/linux/lguest_launcher.h @@ -65,6 +65,7 @@ enum lguest_req LHREQ_EVENTFD, /* + address, fd. */ LHREQ_GETREG, /* + offset within struct pt_regs (then read value). */ LHREQ_SETREG, /* + offset within struct pt_regs, value. */ + LHREQ_TRAP, /* + trap number to deliver to guest. */ }; /* |