search for: lguest_data

Displaying 20 results from an estimated 68 matches for "lguest_data".

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 Jul 03
2
[PATCH 1/2] lguest: handle dodgy/non-existent TSC. Host code.
...est/core.c +++ b/drivers/lguest/core.c @@ -332,14 +332,6 @@ int run_guest(struct lguest *lg, unsigne continue; } - /* If the Guest hasn't been told the clock multiplier to use or - * it's changed, we update it here. */ - if (unlikely(lg->tsc_khz != tsc_khz) && lg->lguest_data) { - lg->tsc_khz = tsc_khz; - if (put_user(lg->tsc_khz, &lg->lguest_data->tsc_khz)) - return -EFAULT; - } - local_irq_disable(); /* Even if *we* don't want FPU trap, guest might... */ =================================================================== --- a/drive...
2007 Jul 03
2
[PATCH 1/2] lguest: handle dodgy/non-existent TSC. Host code.
...est/core.c +++ b/drivers/lguest/core.c @@ -332,14 +332,6 @@ int run_guest(struct lguest *lg, unsigne continue; } - /* If the Guest hasn't been told the clock multiplier to use or - * it's changed, we update it here. */ - if (unlikely(lg->tsc_khz != tsc_khz) && lg->lguest_data) { - lg->tsc_khz = tsc_khz; - if (put_user(lg->tsc_khz, &lg->lguest_data->tsc_khz)) - return -EFAULT; - } - local_irq_disable(); /* Even if *we* don't want FPU trap, guest might... */ =================================================================== --- a/drive...
2007 Jul 22
0
[PATCH] Fix lguest clock when jiffies not available
...;ts); - regs->eax = ts.tv_sec; - break; - } case LHCALL_BIND_DMA: regs->eax = bind_dma(lg, regs->edx, regs->ebx, regs->ecx >> 8, regs->ecx & 0xFF); @@ -160,6 +154,8 @@ static void initialize(struct lguest *lg || put_user(lg->guestid, &lg->lguest_data->guestid)) kill_guest(lg, "bad guest page %p", lg->lguest_data); + write_timestamp(lg); + /* This is the one case where the above accesses might have * been the first write to a Guest page. This may have caused * a copy-on-write fault, but the Guest might be referring...
2007 Jul 22
0
[PATCH] Fix lguest clock when jiffies not available
...;ts); - regs->eax = ts.tv_sec; - break; - } case LHCALL_BIND_DMA: regs->eax = bind_dma(lg, regs->edx, regs->ebx, regs->ecx >> 8, regs->ecx & 0xFF); @@ -160,6 +154,8 @@ static void initialize(struct lguest *lg || put_user(lg->guestid, &lg->lguest_data->guestid)) kill_guest(lg, "bad guest page %p", lg->lguest_data); + write_timestamp(lg); + /* This is the one case where the above accesses might have * been the first write to a Guest page. This may have caused * a copy-on-write fault, but the Guest might be referring...
2007 Apr 18
1
[PATCH 0/8] lguest
...y. - 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 to 0: allocated with get_zeroed_page() anyway. - Various minor cleanups.
2007 Apr 18
1
[PATCH 0/8] lguest
...y. - 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 to 0: allocated with get_zeroed_page() anyway. - Various minor cleanups.
2007 May 09
1
[patch 2/9] lguest: the guest code
...t_noirq_end[]; +extern const char lgstart_cli[], lgend_cli[]; +extern const char lgstart_sti[], lgend_sti[]; +extern const char lgstart_popf[], lgend_popf[]; +extern const char lgstart_pushf[], lgend_pushf[]; +extern const char lgstart_iret[], lgend_iret[]; +extern void lguest_iret(void); + +struct lguest_data lguest_data = { + .hcall_status = { [0 ... LHCALL_RING_SIZE-1] = 0xFF }, + .noirq_start = (u32)lguest_noirq_start, + .noirq_end = (u32)lguest_noirq_end, + .blocked_interrupts = { 1 }, /* Block timer interrupts */ +}; +struct lguest_device_desc *lguest_devices; +static __initdata const struct lguest...
2007 May 09
1
[patch 2/9] lguest: the guest code
...t_noirq_end[]; +extern const char lgstart_cli[], lgend_cli[]; +extern const char lgstart_sti[], lgend_sti[]; +extern const char lgstart_popf[], lgend_popf[]; +extern const char lgstart_pushf[], lgend_pushf[]; +extern const char lgstart_iret[], lgend_iret[]; +extern void lguest_iret(void); + +struct lguest_data lguest_data = { + .hcall_status = { [0 ... LHCALL_RING_SIZE-1] = 0xFF }, + .noirq_start = (u32)lguest_noirq_start, + .noirq_end = (u32)lguest_noirq_end, + .blocked_interrupts = { 1 }, /* Block timer interrupts */ +}; +struct lguest_device_desc *lguest_devices; +static __initdata const struct lguest...
2007 Apr 18
1
[PATCH] lguest32 kallsyms backtrace of guest.
...all+0x7/0xb ======================= [<f8c7131b>] lgread+0x59/0x90 [lg] Printing LG 0 regs cr3: 021eb000 EIP: 0061: [<00000000e00227d2>] ESP: 0069:c236fe3c EFLAGS: 00010202 EAX: 00000004 EBX: e001fb20 ECX: 00000008 EDX: 000003f2 ESI: e001ee00 EDI: e001fb60 EBP: c236fea0 CR2: 1278000 lguest_data->cr2: 80011380 errcode: 0 trapnum: d Stack Dump: [<00000000c1042b7a>] trace_hardirqs_on+0x125/0x149 [<00000000c123b0ea>] wait_for_completion+0x90/0x98 [<00000000c123bddc>] __mutex_unlock_slowpath+0x129/0x13e [<00000000c1048769>] unlock_cpu_hotplug+0x62/0x64 [<00...
2007 Apr 18
1
[PATCH] lguest32 kallsyms backtrace of guest.
...all+0x7/0xb ======================= [<f8c7131b>] lgread+0x59/0x90 [lg] Printing LG 0 regs cr3: 021eb000 EIP: 0061: [<00000000e00227d2>] ESP: 0069:c236fe3c EFLAGS: 00010202 EAX: 00000004 EBX: e001fb20 ECX: 00000008 EDX: 000003f2 ESI: e001ee00 EDI: e001fb60 EBP: c236fea0 CR2: 1278000 lguest_data->cr2: 80011380 errcode: 0 trapnum: d Stack Dump: [<00000000c1042b7a>] trace_hardirqs_on+0x125/0x149 [<00000000c123b0ea>] wait_for_completion+0x90/0x98 [<00000000c123bddc>] __mutex_unlock_slowpath+0x129/0x13e [<00000000c1048769>] unlock_cpu_hotplug+0x62/0x64 [<00...
2007 Apr 18
1
[RFC/PATCH LGUEST X86_64 03/13] lguest64 core
...mand_page(vcpu, cr2, regs->errcode & PF_WRITE)) + continue; + + if (lguest_debug) { + printk ("guest taking a page fault\n"); + lguest_print_page_tables(vcpu->pgdir->pgdir); + } + + /* inform guest on the current state of cr2 */ + put_user(cr2, &linfo->lguest_data->cr2); + if (reflect_trap(vcpu, 14, 1)) + continue; + + lguest_dump_vcpu_regs(vcpu); + kill_guest_dump(vcpu, "unhandled page fault at %#lx" + " (rip=%#llx, errcode=%#llx)", + cr2, regs->rip, regs->errcode); + break; + case LGUEST_TRAP_ENTRY: + /* h...
2007 Apr 18
1
[RFC/PATCH LGUEST X86_64 03/13] lguest64 core
...mand_page(vcpu, cr2, regs->errcode & PF_WRITE)) + continue; + + if (lguest_debug) { + printk ("guest taking a page fault\n"); + lguest_print_page_tables(vcpu->pgdir->pgdir); + } + + /* inform guest on the current state of cr2 */ + put_user(cr2, &linfo->lguest_data->cr2); + if (reflect_trap(vcpu, 14, 1)) + continue; + + lguest_dump_vcpu_regs(vcpu); + kill_guest_dump(vcpu, "unhandled page fault at %#lx" + " (rip=%#llx, errcode=%#llx)", + cr2, regs->rip, regs->errcode); + break; + case LGUEST_TRAP_ENTRY: + /* h...
2007 Jun 07
2
[PATCH 1/7] lguest documentation: infrastructure and Chapter I
The netfilter code had very good documentation: the Netfilter Hacking HOWTO. Noone ever read it. So this time I'm trying something different, using a bit of Knuthiness. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> --- Documentation/lguest/extract | 58 +++++++++++++++++++++++++++++++++ Documentation/lguest/lguest.c | 9 +++-- drivers/lguest/Makefile
2007 Jun 07
2
[PATCH 1/7] lguest documentation: infrastructure and Chapter I
The netfilter code had very good documentation: the Netfilter Hacking HOWTO. Noone ever read it. So this time I'm trying something different, using a bit of Knuthiness. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> --- Documentation/lguest/extract | 58 +++++++++++++++++++++++++++++++++ Documentation/lguest/lguest.c | 9 +++-- drivers/lguest/Makefile
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 Jul 20
2
[PATCH 1/7] lguest: documentation pt I: Preparation
The netfilter code had very good documentation: the Netfilter Hacking HOWTO. Noone ever read it. So this time I'm trying something different, using a bit of Knuthiness. Start with drivers/lguest/README. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> --- Documentation/lguest/extract | 58 +++++++++++++++++++++++++++++++++ Documentation/lguest/lguest.c | 9
2007 Jul 20
2
[PATCH 1/7] lguest: documentation pt I: Preparation
The netfilter code had very good documentation: the Netfilter Hacking HOWTO. Noone ever read it. So this time I'm trying something different, using a bit of Knuthiness. Start with drivers/lguest/README. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> --- Documentation/lguest/extract | 58 +++++++++++++++++++++++++++++++++ Documentation/lguest/lguest.c | 9