aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lguest/lguest.c
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2015-02-10 23:45:10 -0500
committerRusty Russell <rusty@rustcorp.com.au>2015-02-11 01:17:33 -0500
commit7313d5217e6b9817897172d6a6ff477bdc415ed6 (patch)
tree448fc79d9048af296aeb6c6fbbf5da84dc6f7046 /tools/lguest/lguest.c
parentd1c29465b8a52d8fc5a59aac92c6b206b69fe631 (diff)
lguest: add iomem region, where guest page faults get sent to userspace.
This lets us implement PCI. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'tools/lguest/lguest.c')
-rw-r--r--tools/lguest/lguest.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/lguest/lguest.c b/tools/lguest/lguest.c
index 485fe13db12e..02f353989e6c 100644
--- a/tools/lguest/lguest.c
+++ b/tools/lguest/lguest.c
@@ -548,7 +548,8 @@ static void tell_kernel(unsigned long start)
548{ 548{
549 unsigned long args[] = { LHREQ_INITIALIZE, 549 unsigned long args[] = { LHREQ_INITIALIZE,
550 (unsigned long)guest_base, 550 (unsigned long)guest_base,
551 guest_limit / getpagesize(), start }; 551 guest_limit / getpagesize(), start,
552 guest_limit / getpagesize() };
552 verbose("Guest: %p - %p (%#lx)\n", 553 verbose("Guest: %p - %p (%#lx)\n",
553 guest_base, guest_base + guest_limit, guest_limit); 554 guest_base, guest_base + guest_limit, guest_limit);
554 lguest_fd = open_or_die("/dev/lguest", O_RDWR); 555 lguest_fd = open_or_die("/dev/lguest", O_RDWR);