search for: lgwrite_u32

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

2007 May 14
5
[PATCH 1/6] lguest: host code tidyups
...val = 0; /* Don't let them access lguest binary */ if (!lguest_address_ok(lg, addr, sizeof(val)) || get_user(val, (u32 __user *)addr) != 0) - kill_guest(lg, "bad read address %u", addr); + kill_guest(lg, "bad read address %#lx", addr); return val; } -void lgwrite_u32(struct lguest *lg, u32 addr, u32 val) +void lgwrite_u32(struct lguest *lg, unsigned long addr, u32 val) { if (!lguest_address_ok(lg, addr, sizeof(val)) || put_user(val, (u32 __user *)addr) != 0) - kill_guest(lg, "bad write address %u", addr); -} - -void lgread(struct lguest *lg,...
2007 May 14
5
[PATCH 1/6] lguest: host code tidyups
...val = 0; /* Don't let them access lguest binary */ if (!lguest_address_ok(lg, addr, sizeof(val)) || get_user(val, (u32 __user *)addr) != 0) - kill_guest(lg, "bad read address %u", addr); + kill_guest(lg, "bad read address %#lx", addr); return val; } -void lgwrite_u32(struct lguest *lg, u32 addr, u32 val) +void lgwrite_u32(struct lguest *lg, unsigned long addr, u32 val) { if (!lguest_address_ok(lg, addr, sizeof(val)) || put_user(val, (u32 __user *)addr) != 0) - kill_guest(lg, "bad write address %u", addr); -} - -void lgread(struct lguest *lg,...
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] Lguest32 print hex on bad reads and writes
...u32 ad /* Don't let them access lguest binary */ if (!lguest_address_ok(lg, addr) || get_user(val, (u32 __user *)addr) != 0) - kill_guest(lg, "bad read address %u", addr); + kill_guest(lg, "bad read address %x", addr); return val; } @@ -250,7 +250,7 @@ void lgwrite_u32(struct lguest *lg, u32 { if (!lguest_address_ok(lg, addr) || put_user(val, (u32 __user *)addr) != 0) - kill_guest(lg, "bad write address %u", addr); + kill_guest(lg, "bad write address %x", addr); } void lgread(struct lguest *lg, void *b, u32 addr, unsigned bytes...
2007 Apr 18
1
[PATCH] Lguest32 print hex on bad reads and writes
...u32 ad /* Don't let them access lguest binary */ if (!lguest_address_ok(lg, addr) || get_user(val, (u32 __user *)addr) != 0) - kill_guest(lg, "bad read address %u", addr); + kill_guest(lg, "bad read address %x", addr); return val; } @@ -250,7 +250,7 @@ void lgwrite_u32(struct lguest *lg, u32 { if (!lguest_address_ok(lg, addr) || put_user(val, (u32 __user *)addr) != 0) - kill_guest(lg, "bad write address %u", addr); + kill_guest(lg, "bad write address %x", addr); } void lgread(struct lguest *lg, void *b, u32 addr, unsigned bytes...
2007 May 09
1
[patch 3/9] lguest: the host code
...ry. */ +u32 lgread_u32(struct lguest *lg, u32 addr) +{ + u32 val = 0; + + /* Don't let them access lguest binary */ + if (!lguest_address_ok(lg, addr, sizeof(val)) + || get_user(val, (u32 __user *)addr) != 0) + kill_guest(lg, "bad read address %u", addr); + return val; +} + +void lgwrite_u32(struct lguest *lg, u32 addr, u32 val) +{ + if (!lguest_address_ok(lg, addr, sizeof(val)) + || put_user(val, (u32 __user *)addr) != 0) + kill_guest(lg, "bad write address %u", addr); +} + +void lgread(struct lguest *lg, void *b, u32 addr, unsigned bytes) +{ + if (!lguest_address_ok(lg...
2007 May 09
1
[patch 3/9] lguest: the host code
...ry. */ +u32 lgread_u32(struct lguest *lg, u32 addr) +{ + u32 val = 0; + + /* Don't let them access lguest binary */ + if (!lguest_address_ok(lg, addr, sizeof(val)) + || get_user(val, (u32 __user *)addr) != 0) + kill_guest(lg, "bad read address %u", addr); + return val; +} + +void lgwrite_u32(struct lguest *lg, u32 addr, u32 val) +{ + if (!lguest_address_ok(lg, addr, sizeof(val)) + || put_user(val, (u32 __user *)addr) != 0) + kill_guest(lg, "bad write address %u", addr); +} + +void lgread(struct lguest *lg, void *b, u32 addr, unsigned bytes) +{ + if (!lguest_address_ok(lg...
2007 Apr 18
1
[PATCH] lguest32 kallsyms backtrace of guest.
...-176,6 +176,8 @@ extern struct mutex lguest_lock; /* core.c: */ /* Entry points in hypervisor */ const unsigned long *__lguest_default_idt_entries(void); +u8 lgread_u8(struct lguest *lg, u32 addr); +u16 lgread_u16(struct lguest *lg, u32 addr); u32 lgread_u32(struct lguest *lg, u32 addr); void lgwrite_u32(struct lguest *lg, u32 val, u32 addr); void lgread(struct lguest *lg, void *buf, u32 addr, unsigned bytes); @@ -238,6 +240,7 @@ int hypercall(struct lguest *info, struc #define kill_guest(lg, fmt...) \ do { \ if (!(lg)->dead) { \ + lguest_dump_lg_regs(lg); \ (lg)->de...
2007 Apr 18
1
[PATCH] lguest32 kallsyms backtrace of guest.
...-176,6 +176,8 @@ extern struct mutex lguest_lock; /* core.c: */ /* Entry points in hypervisor */ const unsigned long *__lguest_default_idt_entries(void); +u8 lgread_u8(struct lguest *lg, u32 addr); +u16 lgread_u16(struct lguest *lg, u32 addr); u32 lgread_u32(struct lguest *lg, u32 addr); void lgwrite_u32(struct lguest *lg, u32 val, u32 addr); void lgread(struct lguest *lg, void *buf, u32 addr, unsigned bytes); @@ -238,6 +240,7 @@ int hypercall(struct lguest *info, struc #define kill_guest(lg, fmt...) \ do { \ if (!(lg)->dead) { \ + lguest_dump_lg_regs(lg); \ (lg)->de...
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