search for: changed_gdt

Displaying 16 results from an estimated 16 matches for "changed_gdt".

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 May 14
5
[PATCH 1/6] lguest: host code tidyups
..._gdt(struct lguest *lg, u32 table, u32 num) +void load_guest_gdt(struct lguest *lg, unsigned long table, u32 num) { if (num > ARRAY_SIZE(lg->gdt)) kill_guest(lg, "too many gdt entries %i", num); @@ -105,11 +105,11 @@ void load_guest_gdt(struct lguest *lg, u lg->changed |= CHANGED_GDT; } -void guest_load_tls(struct lguest *lg, const struct desc_struct __user *gtls) +void guest_load_tls(struct lguest *lg, unsigned long gtls) { struct desc_struct *tls = &lg->gdt[GDT_ENTRY_TLS_MIN]; - lgread(lg, tls, (u32)gtls, sizeof(*tls)*GDT_ENTRY_TLS_ENTRIES); + lgread(lg, tls, g...
2007 May 14
5
[PATCH 1/6] lguest: host code tidyups
..._gdt(struct lguest *lg, u32 table, u32 num) +void load_guest_gdt(struct lguest *lg, unsigned long table, u32 num) { if (num > ARRAY_SIZE(lg->gdt)) kill_guest(lg, "too many gdt entries %i", num); @@ -105,11 +105,11 @@ void load_guest_gdt(struct lguest *lg, u lg->changed |= CHANGED_GDT; } -void guest_load_tls(struct lguest *lg, const struct desc_struct __user *gtls) +void guest_load_tls(struct lguest *lg, unsigned long gtls) { struct desc_struct *tls = &lg->gdt[GDT_ENTRY_TLS_MIN]; - lgread(lg, tls, (u32)gtls, sizeof(*tls)*GDT_ENTRY_TLS_ENTRIES); + lgread(lg, tls, g...
2007 Apr 18
0
[PATCH] lguest: Compile hypervisor.S into the lg module directly
...lg /* Copy direct trap entries. */ if (lg->changed & CHANGED_IDT) - copy_traps(lg, pages->state.guest_idt, - lguest_default_idt_entries()); + copy_traps(lg, pages->state.guest_idt, default_idt_entries); /* Copy all GDT entries but the TSS. */ if (lg->changed & CHANGED_GDT) diff -r 9d462a93e1fa arch/i386/lguest/hypervisor.S --- a/arch/i386/lguest/hypervisor.S Wed Mar 21 08:56:52 2007 +1100 +++ b/arch/i386/lguest/hypervisor.S Thu Mar 22 11:43:20 2007 +1100 @@ -10,11 +10,11 @@ #include "lg.h" .text -ENTRY(_start) /* ld complains unless _start is defined....
2007 Apr 18
0
[PATCH] lguest: Compile hypervisor.S into the lg module directly
...lg /* Copy direct trap entries. */ if (lg->changed & CHANGED_IDT) - copy_traps(lg, pages->state.guest_idt, - lguest_default_idt_entries()); + copy_traps(lg, pages->state.guest_idt, default_idt_entries); /* Copy all GDT entries but the TSS. */ if (lg->changed & CHANGED_GDT) diff -r 9d462a93e1fa arch/i386/lguest/hypervisor.S --- a/arch/i386/lguest/hypervisor.S Wed Mar 21 08:56:52 2007 +1100 +++ b/arch/i386/lguest/hypervisor.S Thu Mar 22 11:43:20 2007 +1100 @@ -10,11 +10,11 @@ #include "lg.h" .text -ENTRY(_start) /* ld complains unless _start is defined....
2009 Apr 19
0
[PULL] lguest & virtio fixes
...ZE(cpu->arch.gdt)); + /* Set it up, then fix it. */ + cpu->arch.gdt[num].a = lo; + cpu->arch.gdt[num].b = hi; + fixup_gdt_table(cpu, num, num+1); /* Mark that the GDT changed so the core knows it has to copy it again, * even if the Guest is run on the same CPU. */ cpu->changed |= CHANGED_GDT; diff --git a/drivers/lguest/x86/core.c b/drivers/lguest/x86/core.c index a6b7176..1a83910 100644 --- a/drivers/lguest/x86/core.c +++ b/drivers/lguest/x86/core.c @@ -324,6 +324,11 @@ static void rewrite_hypercall(struct lg_cpu *cpu) u8 insn[3] = {0xcd, 0x1f, 0x90}; __lgwrite(cpu, guest_pa(cpu...
2009 Apr 19
0
[PULL] lguest & virtio fixes
...ZE(cpu->arch.gdt)); + /* Set it up, then fix it. */ + cpu->arch.gdt[num].a = lo; + cpu->arch.gdt[num].b = hi; + fixup_gdt_table(cpu, num, num+1); /* Mark that the GDT changed so the core knows it has to copy it again, * even if the Guest is run on the same CPU. */ cpu->changed |= CHANGED_GDT; diff --git a/drivers/lguest/x86/core.c b/drivers/lguest/x86/core.c index a6b7176..1a83910 100644 --- a/drivers/lguest/x86/core.c +++ b/drivers/lguest/x86/core.c @@ -324,6 +324,11 @@ static void rewrite_hypercall(struct lg_cpu *cpu) u8 insn[3] = {0xcd, 0x1f, 0x90}; __lgwrite(cpu, guest_pa(cpu...
2007 May 09
1
[patch 3/9] lguest: the host code
...>state.guest_tss.esp1 = lg->esp1; + pages->state.guest_tss.ss1 = lg->ss1; + + /* Copy direct trap entries. */ + if (lg->changed & CHANGED_IDT) + copy_traps(lg, pages->state.guest_idt, default_idt_entries); + + /* Copy all GDT entries but the TSS. */ + if (lg->changed & CHANGED_GDT) + copy_gdt(lg, pages->state.guest_gdt); + + lg->changed = 0; +} + +static void run_guest_once(struct lguest *lg, struct lguest_pages *pages) +{ + unsigned int clobber; + + copy_in_guest_info(lg, pages); + + /* Put eflags on stack, lcall does rest: suitable for iret return. */ + asm volatile...
2007 May 09
1
[patch 3/9] lguest: the host code
...>state.guest_tss.esp1 = lg->esp1; + pages->state.guest_tss.ss1 = lg->ss1; + + /* Copy direct trap entries. */ + if (lg->changed & CHANGED_IDT) + copy_traps(lg, pages->state.guest_idt, default_idt_entries); + + /* Copy all GDT entries but the TSS. */ + if (lg->changed & CHANGED_GDT) + copy_gdt(lg, pages->state.guest_gdt); + + lg->changed = 0; +} + +static void run_guest_once(struct lguest *lg, struct lguest_pages *pages) +{ + unsigned int clobber; + + copy_in_guest_info(lg, pages); + + /* Put eflags on stack, lcall does rest: suitable for iret return. */ + asm volatile...
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
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