search for: interrupts_and_trap

Displaying 20 results from an estimated 51 matches for "interrupts_and_trap".

Did you mean: interrupts_and_traps
2007 Jul 20
1
[PATCH 1/3] lguest: fix sense if IF flag on interrupt injection
..."IF=1" on the stack when injecting an interrupt. It turns out this is almost always correct (unless the guest is taking a page fault in an interrupt due to an unpopulated vmalloc mapping), so went unnoticed. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> --- drivers/lguest/interrupts_and_traps.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff -r 209f5cd5cda5 drivers/lguest/interrupts_and_traps.c --- a/drivers/lguest/interrupts_and_traps.c Fri Jul 20 14:53:40 2007 +1000 +++ b/drivers/lguest/interrupts_and_traps.c Fri Jul 20 21:34:06 2007 +1000 @@ -38,12 +38,12 @@ sta...
2007 Jul 20
1
[PATCH 1/3] lguest: fix sense if IF flag on interrupt injection
..."IF=1" on the stack when injecting an interrupt. It turns out this is almost always correct (unless the guest is taking a page fault in an interrupt due to an unpopulated vmalloc mapping), so went unnoticed. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> --- drivers/lguest/interrupts_and_traps.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff -r 209f5cd5cda5 drivers/lguest/interrupts_and_traps.c --- a/drivers/lguest/interrupts_and_traps.c Fri Jul 20 14:53:40 2007 +1000 +++ b/drivers/lguest/interrupts_and_traps.c Fri Jul 20 21:34:06 2007 +1000 @@ -38,12 +38,12 @@ sta...
2007 May 02
3
[RELEASE] Lguest for 2.6.21
Hi all, Lguest is a simple hypervisor which runs Linux under Linux, without needing VT hardware. Two people asked if I had a version of lguest which worked on other-than-bleeding-edge-mm kernels, so I did a backport of the latest version to 2.6.21. http://lguest.ozlabs.org/lguest-2.6.21-254.patch.gz See Documentation/lguest/lguest.txt for how to run, drivers/lguest/README for the draft code
2007 May 02
3
[RELEASE] Lguest for 2.6.21
Hi all, Lguest is a simple hypervisor which runs Linux under Linux, without needing VT hardware. Two people asked if I had a version of lguest which worked on other-than-bleeding-edge-mm kernels, so I did a backport of the latest version to 2.6.21. http://lguest.ozlabs.org/lguest-2.6.21-254.patch.gz See Documentation/lguest/lguest.txt for how to run, drivers/lguest/README for the draft code
2007 May 10
4
[PATCH 0/5] lguest feedback tidyups
Hi all, Gratefully-received recent feedback from CC'd was applied to excellent effect (and the advice from Matt Mackall about my personal appearance is best unrequited). The patch is split in 5 parts to correspond with the 9 parts Andrew sent out before, but here's the summary: 1) Sparse (thanks Christoph Hellwig): - lguest_const can be static now - lguest.c should include
2007 May 10
4
[PATCH 0/5] lguest feedback tidyups
Hi all, Gratefully-received recent feedback from CC'd was applied to excellent effect (and the advice from Matt Mackall about my personal appearance is best unrequited). The patch is split in 5 parts to correspond with the 9 parts Andrew sent out before, but here's the summary: 1) Sparse (thanks Christoph Hellwig): - lguest_const can be static now - lguest.c should include
2007 May 09
2
[PATCH 0/2 v05] lguest: TSC & hrtimers
...ch also incorporates feedback from Jeremy & Rusty: - Change clock event hrtimer to absolute time. 'now' is captured in the host during the hypercall. - Propagate -ETIME back to the guest timer framework - Use the API-provided delta via set_next_event() - Move clock-related code to interrupts_and_traps.c - Rename hypercall to LHCALL_SET_CLOCKEVENT This patch also completes previous critical todo items, although handling TSC frequency scaling remains to be addressed. Please review and apply if ok. -- James Morris <jmorris@namei.org>
2007 May 09
2
[PATCH 0/2 v05] lguest: TSC & hrtimers
...ch also incorporates feedback from Jeremy & Rusty: - Change clock event hrtimer to absolute time. 'now' is captured in the host during the hypercall. - Propagate -ETIME back to the guest timer framework - Use the API-provided delta via set_next_event() - Move clock-related code to interrupts_and_traps.c - Rename hypercall to LHCALL_SET_CLOCKEVENT This patch also completes previous critical todo items, although handling TSC frequency scaling remains to be addressed. Please review and apply if ok. -- James Morris <jmorris@namei.org>
2007 Apr 27
0
[PATCH] lguest simplification: don't pin guest trap handlers
We don't actually need the Guest handlers mapped to avoid double fault, just the stack pages. Thanks to Zach for confirming. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> --- drivers/lguest/interrupts_and_traps.c | 26 +------------------------- drivers/lguest/lg.h | 2 +- drivers/lguest/page_tables.c | 6 +++--- 3 files changed, 5 insertions(+), 29 deletions(-) =================================================================== --- a/drivers/lguest/interrupts_and_trap...
2007 Apr 27
0
[PATCH] lguest simplification: don't pin guest trap handlers
We don't actually need the Guest handlers mapped to avoid double fault, just the stack pages. Thanks to Zach for confirming. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> --- drivers/lguest/interrupts_and_traps.c | 26 +------------------------- drivers/lguest/lg.h | 2 +- drivers/lguest/page_tables.c | 6 +++--- 3 files changed, 5 insertions(+), 29 deletions(-) =================================================================== --- a/drivers/lguest/interrupts_and_trap...
2007 May 14
5
[PATCH 1/6] lguest: host code tidyups
...ch better solution than __force. Kudos, Christoph, for such masterful manipulation! Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> --- drivers/lguest/core.c | 37 ++++++++++++++++----------------- drivers/lguest/hypercalls.c | 9 +++----- drivers/lguest/interrupts_and_traps.c | 15 +++++++------ drivers/lguest/io.c | 2 - drivers/lguest/lg.h | 37 ++++++++++++++++----------------- drivers/lguest/lguest_user.c | 2 - drivers/lguest/page_tables.c | 2 - drivers/lguest/segments.c | 6 ++---...
2007 May 14
5
[PATCH 1/6] lguest: host code tidyups
...ch better solution than __force. Kudos, Christoph, for such masterful manipulation! Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> --- drivers/lguest/core.c | 37 ++++++++++++++++----------------- drivers/lguest/hypercalls.c | 9 +++----- drivers/lguest/interrupts_and_traps.c | 15 +++++++------ drivers/lguest/io.c | 2 - drivers/lguest/lg.h | 37 ++++++++++++++++----------------- drivers/lguest/lguest_user.c | 2 - drivers/lguest/page_tables.c | 2 - drivers/lguest/segments.c | 6 ++---...
2007 Jul 22
0
[PATCH] Fix lguest clock when jiffies not available
...ypercalls(struct lguest *lg) clear_hcall(lg); } } + +void write_timestamp(struct lguest *lg) +{ + struct timespec now; + ktime_get_real_ts(&now); + if (put_user(now, &lg->lguest_data->time)) + kill_guest(lg, "Writing timestamp"); +} diff -r 144835834edd drivers/lguest/interrupts_and_traps.c --- a/drivers/lguest/interrupts_and_traps.c Sat Jul 21 11:12:01 2007 +1000 +++ b/drivers/lguest/interrupts_and_traps.c Sun Jul 22 20:47:51 2007 +1000 @@ -107,6 +107,7 @@ void maybe_do_interrupt(struct lguest *l clear_bit(irq, lg->irqs_pending); set_guest_interrupt(lg, idt->a, idt-&gt...
2007 Jul 22
0
[PATCH] Fix lguest clock when jiffies not available
...ypercalls(struct lguest *lg) clear_hcall(lg); } } + +void write_timestamp(struct lguest *lg) +{ + struct timespec now; + ktime_get_real_ts(&now); + if (put_user(now, &lg->lguest_data->time)) + kill_guest(lg, "Writing timestamp"); +} diff -r 144835834edd drivers/lguest/interrupts_and_traps.c --- a/drivers/lguest/interrupts_and_traps.c Sat Jul 21 11:12:01 2007 +1000 +++ b/drivers/lguest/interrupts_and_traps.c Sun Jul 22 20:47:51 2007 +1000 @@ -107,6 +107,7 @@ void maybe_do_interrupt(struct lguest *l clear_bit(irq, lg->irqs_pending); set_guest_interrupt(lg, idt->a, idt-&gt...
2007 May 09
2
[patch 5/9] lguest: the Makefile and Kconfig
...lguest/Makefile @@ -0,0 +1,7 @@ +# Guest requires the paravirt_ops replacement and the bus driver. +obj-$(CONFIG_LGUEST_GUEST) += lguest.o lguest_asm.o lguest_bus.o + +# Host requires the other files, which can be a module. +obj-$(CONFIG_LGUEST) += lg.o +lg-objs := core.o hypercalls.o page_tables.o interrupts_and_traps.o \ + segments.o io.o lguest_user.o switcher.o _
2007 May 04
1
[PATCH 1/3] Documentation and example updates
1) Example code: old libc headers don't have SIOCBRADDIF, and old zlibs don't have gzdirect() -- it's a sanity check anyway. 2) Some people don't build in their source directories, so .config isn't there (thanks to Tony Breeds <tony@bakeyournoodle.com>). 3) Point out that guest and host kernel are usually the same. 4) Set the "no checksum" option on the
2007 May 04
1
[PATCH 1/3] Documentation and example updates
1) Example code: old libc headers don't have SIOCBRADDIF, and old zlibs don't have gzdirect() -- it's a sanity check anyway. 2) Some people don't build in their source directories, so .config isn't there (thanks to Tony Breeds <tony@bakeyournoodle.com>). 3) Point out that guest and host kernel are usually the same. 4) Set the "no checksum" option on the
2007 Aug 07
1
[PATCH] Fix Malicious Guest GDT Host Crash
...gisters or bug), this will + * cause us to abort the Guest. */ + lg->regs->trapnum = 256; /* Now: we push the "eflags" register on the stack, then do an "lcall". * This is how we change from using the kernel code segment to using diff -r 55fdd7fa62b7 drivers/lguest/interrupts_and_traps.c --- a/drivers/lguest/interrupts_and_traps.c Mon Aug 06 16:38:47 2007 +1000 +++ b/drivers/lguest/interrupts_and_traps.c Wed Aug 08 13:22:53 2007 +1000 @@ -195,13 +195,16 @@ static int has_err(unsigned int trap) /* deliver_trap() returns true if it could deliver the trap. */ int deliver_trap(str...
2007 Aug 07
1
[PATCH] Fix Malicious Guest GDT Host Crash
...gisters or bug), this will + * cause us to abort the Guest. */ + lg->regs->trapnum = 256; /* Now: we push the "eflags" register on the stack, then do an "lcall". * This is how we change from using the kernel code segment to using diff -r 55fdd7fa62b7 drivers/lguest/interrupts_and_traps.c --- a/drivers/lguest/interrupts_and_traps.c Mon Aug 06 16:38:47 2007 +1000 +++ b/drivers/lguest/interrupts_and_traps.c Wed Aug 08 13:22:53 2007 +1000 @@ -195,13 +195,16 @@ static int has_err(unsigned int trap) /* deliver_trap() returns true if it could deliver the trap. */ int deliver_trap(str...
2008 Mar 28
0
[PULL] virtio_pci rmmod fix and lguest documentation/comment updates
...arch/x86/lguest/boot.c | 108 +++++++++++++++++++-------------- arch/x86/lguest/i386_head.S | 15 +++- drivers/lguest/Makefile | 8 +++ drivers/lguest/core.c | 18 +++--- drivers/lguest/hypercalls.c | 11 +++- drivers/lguest/interrupts_and_traps.c | 7 +- drivers/lguest/lguest_device.c | 11 ++-- drivers/lguest/lguest_user.c | 30 ++++++--- drivers/lguest/page_tables.c | 32 ++++++---- drivers/lguest/x86/core.c | 33 ++++++---- drivers/lguest/x86/switcher_32.S | 8 +- drivers/virtio/...