search for: guest_pl

Displaying 18 results from an estimated 18 matches for "guest_pl".

Did you mean: guest_pa
2007 May 09
1
[patch 3/9] lguest: the host code
...+{ + lgwrite_u32(lg, (u32)--(*gstack), val); +} + +static void set_guest_interrupt(struct lguest *lg, u32 lo, u32 hi, int has_err) +{ + u32 __user *gstack; + u32 eflags, ss, irq_enable; + + /* If they want a ring change, we use new stack and push old ss/esp */ + if ((lg->regs->ss&0x3) != GUEST_PL) { + gstack = (u32 __user *)guest_pa(lg, lg->esp1); + ss = lg->ss1; + push_guest_stack(lg, &gstack, lg->regs->ss); + push_guest_stack(lg, &gstack, lg->regs->esp); + } else { + gstack = (u32 __user *)guest_pa(lg, lg->regs->esp); + ss = lg->regs->ss; + } +...
2007 May 09
1
[patch 3/9] lguest: the host code
...+{ + lgwrite_u32(lg, (u32)--(*gstack), val); +} + +static void set_guest_interrupt(struct lguest *lg, u32 lo, u32 hi, int has_err) +{ + u32 __user *gstack; + u32 eflags, ss, irq_enable; + + /* If they want a ring change, we use new stack and push old ss/esp */ + if ((lg->regs->ss&0x3) != GUEST_PL) { + gstack = (u32 __user *)guest_pa(lg, lg->esp1); + ss = lg->ss1; + push_guest_stack(lg, &gstack, lg->regs->ss); + push_guest_stack(lg, &gstack, lg->regs->esp); + } else { + gstack = (u32 __user *)guest_pa(lg, lg->regs->esp); + ss = lg->regs->ss; + } +...
2007 Apr 27
0
[PATCH] lguest simplification: don't pin guest trap handlers
...- if (direct_trap(lg, trap, SYSCALL_VECTOR)) - pin_page(lg, idt_address(trap->a, trap->b)); - pin_stack_pages(lg); } void guest_set_stack(struct lguest *lg, u32 seg, u32 esp, unsigned int pages) @@ -194,11 +175,6 @@ static void set_trap(struct lguest *lg, trap->a = ((__KERNEL_CS|GUEST_PL)<<16) | (lo&0x0000FFFF); trap->b = (hi&0xFFFFEF00); - - /* Make sure trap address is available so we don't fault. In - * theory, it could overlap two pages, in practice it's aligned. */ - if (direct_trap(lg, trap, num)) - pin_page(lg, idt_address(lo, hi)); } void l...
2007 Apr 27
0
[PATCH] lguest simplification: don't pin guest trap handlers
...- if (direct_trap(lg, trap, SYSCALL_VECTOR)) - pin_page(lg, idt_address(trap->a, trap->b)); - pin_stack_pages(lg); } void guest_set_stack(struct lguest *lg, u32 seg, u32 esp, unsigned int pages) @@ -194,11 +175,6 @@ static void set_trap(struct lguest *lg, trap->a = ((__KERNEL_CS|GUEST_PL)<<16) | (lo&0x0000FFFF); trap->b = (hi&0xFFFFEF00); - - /* Make sure trap address is available so we don't fault. In - * theory, it could overlap two pages, in practice it's aligned. */ - if (direct_trap(lg, trap, num)) - pin_page(lg, idt_address(lo, hi)); } void l...
2007 May 14
5
[PATCH 1/6] lguest: host code tidyups
...32(lg, *gstack, val); } static void set_guest_interrupt(struct lguest *lg, u32 lo, u32 hi, int has_err) { - u32 __user *gstack; + unsigned long gstack; u32 eflags, ss, irq_enable; /* If they want a ring change, we use new stack and push old ss/esp */ if ((lg->regs->ss&0x3) != GUEST_PL) { - gstack = (u32 __user *)guest_pa(lg, lg->esp1); + gstack = guest_pa(lg, lg->esp1); ss = lg->ss1; push_guest_stack(lg, &gstack, lg->regs->ss); push_guest_stack(lg, &gstack, lg->regs->esp); } else { - gstack = (u32 __user *)guest_pa(lg, lg->regs->e...
2007 May 14
5
[PATCH 1/6] lguest: host code tidyups
...32(lg, *gstack, val); } static void set_guest_interrupt(struct lguest *lg, u32 lo, u32 hi, int has_err) { - u32 __user *gstack; + unsigned long gstack; u32 eflags, ss, irq_enable; /* If they want a ring change, we use new stack and push old ss/esp */ if ((lg->regs->ss&0x3) != GUEST_PL) { - gstack = (u32 __user *)guest_pa(lg, lg->esp1); + gstack = guest_pa(lg, lg->esp1); ss = lg->ss1; push_guest_stack(lg, &gstack, lg->regs->ss); push_guest_stack(lg, &gstack, lg->regs->esp); } else { - gstack = (u32 __user *)guest_pa(lg, lg->regs->e...
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
2007 Aug 08
7
[PATCH 0/5 -v2] Modify lguest32 to make room for lguest64 (version 2)
[ Changes since last version. - Move lg.h to include/asm instead (suggested by Rusty Russel) - All steps of the series compiles (suggested by Stephen Rothwell) - Better ifdef header naming (suggested by Stephen Rothwell) - Added Andi Kleen to CC (forgot to on V1) ] 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
2007 Aug 08
7
[PATCH 0/5 -v2] Modify lguest32 to make room for lguest64 (version 2)
[ Changes since last version. - Move lg.h to include/asm instead (suggested by Rusty Russel) - All steps of the series compiles (suggested by Stephen Rothwell) - Better ifdef header naming (suggested by Stephen Rothwell) - Added Andi Kleen to CC (forgot to on V1) ] 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
2009 Apr 02
7
[Lguest] [PATCH 4/5] lguest: use KVM hypercalls
...8726 (0x0) > +static bool is_hypercall(struct lg_cpu *cpu) > +{ > + u8 insn[3]; > + > + /* This must be the Guest kernel trying to do something. > + * The bottom two bits of the CS segment register are the privilege > + * level. */ > + if ((cpu->regs->cs & 3) != GUEST_PL) > + return false; > + > + /* Is it a vmcall? */ > + __lgread(cpu, insn, guest_pa(cpu, cpu->regs->eip), sizeof(insn)); I've put a printk for insn here that shows up twice. The first time insn holds the values below, and the second time it holds the values that are patched in...
2009 Apr 02
7
[Lguest] [PATCH 4/5] lguest: use KVM hypercalls
...8726 (0x0) > +static bool is_hypercall(struct lg_cpu *cpu) > +{ > + u8 insn[3]; > + > + /* This must be the Guest kernel trying to do something. > + * The bottom two bits of the CS segment register are the privilege > + * level. */ > + if ((cpu->regs->cs & 3) != GUEST_PL) > + return false; > + > + /* Is it a vmcall? */ > + __lgread(cpu, insn, guest_pa(cpu, cpu->regs->eip), sizeof(insn)); I've put a printk for insn here that shows up twice. The first time insn holds the values below, and the second time it holds the values that are patched in...
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 Apr 18
1
[PATCH 0/8] lguest
...lguest under lguest/Xen etc. - Use a wmb() for dma transfer code, not mb(). - Change hash table size from 64 to 61. - Reorder can cleanup of example launcher code to make it suck less. - s/hypervisor/switcher/ for more clarity. - lguest_address_ok() now takes length to check. - Rename GUEST_DPL to GUEST_PL: it's not just for descriptors. - Wake other guest when it's out of buffers, don't just yield. - Rename "addr" to "key" as I/O argument. - Rename "interrupts" in "struct lguest_data" to "blocked_interrupts". - Don't set regs fields t...
2007 Apr 18
1
[PATCH 0/8] lguest
...lguest under lguest/Xen etc. - Use a wmb() for dma transfer code, not mb(). - Change hash table size from 64 to 61. - Reorder can cleanup of example launcher code to make it suck less. - s/hypervisor/switcher/ for more clarity. - lguest_address_ok() now takes length to check. - Rename GUEST_DPL to GUEST_PL: it's not just for descriptors. - Wake other guest when it's out of buffers, don't just yield. - Rename "addr" to "key" as I/O argument. - Rename "interrupts" in "struct lguest_data" to "blocked_interrupts". - Don't set regs fields t...
2007 Sep 25
50
[patch 00/43] lguest: Patches for 2.6.24 (and patchbomb test)
Hi all, These are the patches I'm planning to submit for 2.6.24. Comments gratefully accepted. Along with the usual cleanups and improvements are Jes' de-i386-ification patches, and a new "virtio" mechanism designed to be shared with KVM (and hopefully other hypervisors). Cheers, Rusty. Documentation/lguest/Makefile | 30 Documentation/lguest/lguest.c
2007 Sep 25
50
[patch 00/43] lguest: Patches for 2.6.24 (and patchbomb test)
Hi all, These are the patches I'm planning to submit for 2.6.24. Comments gratefully accepted. Along with the usual cleanups and improvements are Jes' de-i386-ification patches, and a new "virtio" mechanism designed to be shared with KVM (and hopefully other hypervisors). Cheers, Rusty. Documentation/lguest/Makefile | 30 Documentation/lguest/lguest.c