search for: irqs_pend

Displaying 20 results from an estimated 24 matches for "irqs_pend".

2007 Sep 10
1
[PATCH] Add macros for acessing lguest fields
The assumption that we have an overall irqs_pending flags, and a one-to-one lguest <-> task mapping fails to hold on x86_64, where we can have multiple puppies, aka vcpus. Although ifdefs could be used, it makes the code much more unreadable, and other ports are on the way, anyway. So some sort of acessor is preferred anyway. Signed-off-b...
2007 Sep 10
1
[PATCH] Add macros for acessing lguest fields
The assumption that we have an overall irqs_pending flags, and a one-to-one lguest <-> task mapping fails to hold on x86_64, where we can have multiple puppies, aka vcpus. Although ifdefs could be used, it makes the code much more unreadable, and other ports are on the way, anyway. So some sort of acessor is preferred anyway. Signed-off-b...
2007 May 09
2
[PATCH 0/2 v05] lguest: TSC & hrtimers
The following patches are the latest update of the TSC and hrtimer patches I posted on 29/03. Rusty's original TSC patch has been resynced to the latest lguest repo, as has the hrtimer patch, which 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
2007 May 09
2
[PATCH 0/2 v05] lguest: TSC & hrtimers
The following patches are the latest update of the TSC and hrtimer patches I posted on 29/03. Rusty's original TSC patch has been resynced to the latest lguest repo, as has the hrtimer patch, which 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
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 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 Dec 20
5
[PATCH 0/16] lguest: introduce vcpu structure
this patch makes room for the vcpu structure in lguest, already used in this very same way at lguest64. It's the first part of our plan to have lguest and lguest64 unified too. When two dogs hang out, you don't have new puppies right in the other day. Some time has to be elapsed. They have to grow first. In this same spirit, having these patches _do not_ mean smp guests can be launched
2007 Dec 20
5
[PATCH 0/16] lguest: introduce vcpu structure
this patch makes room for the vcpu structure in lguest, already used in this very same way at lguest64. It's the first part of our plan to have lguest and lguest64 unified too. When two dogs hang out, you don't have new puppies right in the other day. Some time has to be elapsed. They have to grow first. In this same spirit, having these patches _do not_ mean smp guests can be launched
2007 Jul 22
0
[PATCH] Fix lguest clock when jiffies not available
...; +} 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->b, 0); } + write_timestamp(lg); } static int has_err(unsigned int trap) diff -r 144835834edd drivers/lguest/lg.h --- a/drivers/lguest/lg.h Sat Jul 21 11:12:01 2007 +1000 +++ b/drivers/lguest/lg.h Sun Jul 22 20:49:03 2007 +1000 @@ -243,6 +243,...
2007 Jul 22
0
[PATCH] Fix lguest clock when jiffies not available
...; +} 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->b, 0); } + write_timestamp(lg); } static int has_err(unsigned int trap) diff -r 144835834edd drivers/lguest/lg.h --- a/drivers/lguest/lg.h Sat Jul 21 11:12:01 2007 +1000 +++ b/drivers/lguest/lg.h Sun Jul 22 20:49:03 2007 +1000 @@ -243,6 +243,...
2007 May 09
1
[patch 3/9] lguest: the host code
...rrupts"); +} + +void maybe_do_interrupt(struct lguest *lg) +{ + unsigned int irq; + DECLARE_BITMAP(blk, LGUEST_IRQS); + struct desc_struct *idt; + + if (!lg->lguest_data) + return; + + /* If timer has changed, set timer interrupt. */ + if (jiffies != lg->last_timer) + set_bit(0, lg->irqs_pending); + + /* Mask out any interrupts they have blocked. */ + if (copy_from_user(&blk, lg->lguest_data->blocked_interrupts, + sizeof(blk))) + return; + + bitmap_andnot(blk, lg->irqs_pending, blk, LGUEST_IRQS); + + irq = find_first_bit(blk, LGUEST_IRQS); + if (irq >= LGUEST_IRQS)...
2007 May 09
1
[patch 3/9] lguest: the host code
...rrupts"); +} + +void maybe_do_interrupt(struct lguest *lg) +{ + unsigned int irq; + DECLARE_BITMAP(blk, LGUEST_IRQS); + struct desc_struct *idt; + + if (!lg->lguest_data) + return; + + /* If timer has changed, set timer interrupt. */ + if (jiffies != lg->last_timer) + set_bit(0, lg->irqs_pending); + + /* Mask out any interrupts they have blocked. */ + if (copy_from_user(&blk, lg->lguest_data->blocked_interrupts, + sizeof(blk))) + return; + + bitmap_andnot(blk, lg->irqs_pending, blk, LGUEST_IRQS); + + irq = find_first_bit(blk, LGUEST_IRQS); + if (irq >= LGUEST_IRQS)...
2007 Apr 18
0
[RFC/PATCH LGUEST X86_64 09/13] lguest64 devices
...of(struct lguest_dma) + + offsetof(struct lguest_dma, used_len); + lhwrite_other(dstlg, used_lenp, &ret, sizeof(ret)); + dst->next_dma++; + } + up_read(&dstlg->mm->mmap_sem); + + /* Do this last so dst doesn't simply sleep on lock. */ + set_bit(dst->interrupt, dstlg->irqs_pending); + set_wakeup_process(srclg, dstlg->tsk); + return i == dst->num_dmas; + +fail: + up_read(&dstlg->mm->mmap_sem); +#endif + return 0; +} + +int send_dma(struct lguest_guest_info *linfo, unsigned long addr, + unsigned long udma) +{ + union futex_key key; + int pending = 0, e...
2007 Apr 18
0
[RFC/PATCH LGUEST X86_64 09/13] lguest64 devices
...of(struct lguest_dma) + + offsetof(struct lguest_dma, used_len); + lhwrite_other(dstlg, used_lenp, &ret, sizeof(ret)); + dst->next_dma++; + } + up_read(&dstlg->mm->mmap_sem); + + /* Do this last so dst doesn't simply sleep on lock. */ + set_bit(dst->interrupt, dstlg->irqs_pending); + set_wakeup_process(srclg, dstlg->tsk); + return i == dst->num_dmas; + +fail: + up_read(&dstlg->mm->mmap_sem); +#endif + return 0; +} + +int send_dma(struct lguest_guest_info *linfo, unsigned long addr, + unsigned long udma) +{ + union futex_key key; + int pending = 0, e...
2007 Apr 18
1
[RFC/PATCH LGUEST X86_64 03/13] lguest64 core
...truct lguest_vcpu *vcpu) +{ + unsigned int irq; + DECLARE_BITMAP(irqs, LGUEST_IRQS); + + if (!vcpu->guest->lguest_data) + return; + + /* If timer has changed, set timer interrupt. */ + if (vcpu->guest->timer_on && jiffies != vcpu->guest->last_timer) + set_bit(0, vcpu->irqs_pending); + + /* Mask out any interrupts they have blocked. */ + if (copy_from_user(&irqs, vcpu->guest->lguest_data->interrupts, + sizeof(irqs))) + return; + + bitmap_andnot(irqs, vcpu->irqs_pending, irqs, LGUEST_IRQS); + + irq = find_first_bit(irqs, LGUEST_IRQS); + if (irq >=...
2007 Apr 18
1
[RFC/PATCH LGUEST X86_64 03/13] lguest64 core
...truct lguest_vcpu *vcpu) +{ + unsigned int irq; + DECLARE_BITMAP(irqs, LGUEST_IRQS); + + if (!vcpu->guest->lguest_data) + return; + + /* If timer has changed, set timer interrupt. */ + if (vcpu->guest->timer_on && jiffies != vcpu->guest->last_timer) + set_bit(0, vcpu->irqs_pending); + + /* Mask out any interrupts they have blocked. */ + if (copy_from_user(&irqs, vcpu->guest->lguest_data->interrupts, + sizeof(irqs))) + return; + + bitmap_andnot(irqs, vcpu->irqs_pending, irqs, LGUEST_IRQS); + + irq = find_first_bit(irqs, LGUEST_IRQS); + if (irq >=...
2007 Aug 08
13
[PATCH 0/7] Modify lguest32 to make room for lguest64
Hi all, I've been working on lguest64 and in order to do this, I had to move a lot of the i386 specific out of the way. Well, the lguest64 port is still not ready to display, but before Rusty makes too many changes I would like this in upstream so I don't have to keep repeating my changes :-) So this patch series moves lguest32 out of the way for other archs. -- Steve
2007 Aug 08
13
[PATCH 0/7] Modify lguest32 to make room for lguest64
Hi all, I've been working on lguest64 and in order to do this, I had to move a lot of the i386 specific out of the way. Well, the lguest64 port is still not ready to display, but before Rusty makes too many changes I would like this in upstream so I don't have to keep repeating my changes :-) So this patch series moves lguest32 out of the way for other archs. -- Steve