Re: PATCH 7/8] lguest: the block driver

2007-04-10 Thread Pekka Enberg
On 4/11/07, Rusty Russell <[EMAIL PROTECTED]> wrote: > What a question! end_request() doesn't end a request! What a crazy > idea! Aah, indeed, end_request() uses req->hard_cur_sectors while end_entire_request() uses req->hard_nr_sectors which I missed. On 4/11/07, Rusty Russell <[EMAIL PROTECTE

Re: [PATCH] Clean up x86 control register and MSR macros (corrected)

2007-04-10 Thread Rusty Russell
On Tue, 2007-04-10 at 10:36 -0700, H. Peter Anvin wrote: > This patch is based on Rusty's recent cleanup of the EFLAGS-related > macros; it extends the same kind of cleanup to control registers and > MSRs. Thanks hpa, this looks nice. Cheers, Rusty. _

Re: [PATCH] Clean up x86 control register and MSR macros

2007-04-10 Thread Rusty Russell
On Tue, 2007-04-10 at 10:31 -0700, H. Peter Anvin wrote: > Jeremy Fitzhardinge wrote: > > > > Is having separate bit numbers and masks useful? If so, is it worth > > doing for the others? > > > > I presume it's useful, or at least *used* in the current code, since > that was there already. If

Re: PATCH 7/8] lguest: the block driver

2007-04-10 Thread Rusty Russell
On Tue, 2007-04-10 at 14:36 +0300, Pekka Enberg wrote: > On 4/10/07, Rusty Russell <[EMAIL PROTECTED]> wrote: > > > +/* Jens gave me this nice helper to end all chunks of a request. */ > > > +static void end_entire_request(struct request *req, int uptodate) > > > +{ > > > + if (end_that_reque

Re: paravirt repo rebased to 2.6.21-rc6-mm1

2007-04-10 Thread Chris Wright
* Zachary Amsden ([EMAIL PROTECTED]) wrote: > Jeremy Fitzhardinge wrote: > >Seems to work OK for native and Xen. I had to play a bit with the > >paravirt-sched-clock patch to deal with the VMI changes. Zach, can you > >check that it still works? > > I'm on it. Not sure about cycles_2_ns... arc

Re: paravirt repo rebased to 2.6.21-rc6-mm1

2007-04-10 Thread Chris Wright
* Jeremy Fitzhardinge ([EMAIL PROTECTED]) wrote: > Seems to work OK for native and Xen. I had to play a bit with the > paravirt-sched-clock patch to deal with the VMI changes. Zach, can you > check that it still works? Cool, thanks for the rebase. Here's some small fixes. Minor issue with CONF

Re: paravirt repo rebased to 2.6.21-rc6-mm1

2007-04-10 Thread Zachary Amsden
Jeremy Fitzhardinge wrote: > Seems to work OK for native and Xen. I had to play a bit with the > paravirt-sched-clock patch to deal with the VMI changes. Zach, can you > check that it still works? > > Thanks, > Thanks, btw. Zach ___ Virtualization

Re: paravirt repo rebased to 2.6.21-rc6-mm1

2007-04-10 Thread Zachary Amsden
Jeremy Fitzhardinge wrote: > Seems to work OK for native and Xen. I had to play a bit with the > paravirt-sched-clock patch to deal with the VMI changes. Zach, can you > check that it still works? > I'm on it. Zach ___ Virtualization mailing list V

paravirt repo rebased to 2.6.21-rc6-mm1

2007-04-10 Thread Jeremy Fitzhardinge
Seems to work OK for native and Xen. I had to play a bit with the paravirt-sched-clock patch to deal with the VMI changes. Zach, can you check that it still works? Thanks, J ___ Virtualization mailing list Virtualization@lists.linux-foundation.org

Re: [PATCH 9/10] Vmi timer update.patch

2007-04-10 Thread Zachary Amsden
Chris Wright wrote: > * Zachary Amsden ([EMAIL PROTECTED]) wrote: > >> Yes, but unfortunately that is a nop: >> >> /* >> * Avoid unnecessary state transitions, as it confuses >> * Geode / Cyrix based boxen. >> */ >> case CLOCK_EVT_MODE_SHUTDOWN: >>

Re: [PATCH 9/10] Vmi timer update.patch

2007-04-10 Thread Chris Wright
* Zachary Amsden ([EMAIL PROTECTED]) wrote: > Jeremy Fitzhardinge wrote: > >Why not submit a patch to do what you need here? (The Geode comment is > >a bit worrying though.) > > Why should VMI add workaround into PIT code? I'm not sure it's a workaround, seems more like a subtle diff (perhaps it

Re: [PATCH 9/10] Vmi timer update.patch

2007-04-10 Thread Zachary Amsden
Jeremy Fitzhardinge wrote: > Why not submit a patch to do what you need here? (The Geode comment is > a bit worrying though.) > Why should VMI add workaround into PIT code? PIT code wants to know nothing about VMI. It understands PIT timers on hardware. VMI, on the other hand, is special

Re: [PATCH 9/10] Vmi timer update.patch

2007-04-10 Thread Chris Wright
* Zachary Amsden ([EMAIL PROTECTED]) wrote: > Yes, but unfortunately that is a nop: > > /* > * Avoid unnecessary state transitions, as it confuses > * Geode / Cyrix based boxen. > */ > case CLOCK_EVT_MODE_SHUTDOWN: > if (evt->mode == CLOCK

Re: [PATCH 9/10] Vmi timer update.patch

2007-04-10 Thread Jeremy Fitzhardinge
Zachary Amsden wrote: >/* > * Avoid unnecessary state transitions, as it confuses > * Geode / Cyrix based boxen. > */ >case CLOCK_EVT_MODE_SHUTDOWN: >if (evt->mode == CLOCK_EVT_MODE_UNUSED) >break; >case CLOCK_E

Re: [PATCH 9/10] Vmi timer update.patch

2007-04-10 Thread Zachary Amsden
Chris Wright wrote: > * Zachary Amsden ([EMAIL PROTECTED]) wrote: > +void __init vmi_time_init(void) +{ + /* Disable PIT: BIOSes start PIT CH0 with 18.2hz peridic. */ + outb_p(0x3a, PIT_MODE); /* binary, mode 5, LSB/MSB, ch 0 */ >>> That shouldn't be necessary

Re: [patch 4/6] Rename the parainstructions symbols to be consistent with the others

2007-04-10 Thread Andrew Morton
On Tue, 10 Apr 2007 20:07:48 +0200 Andi Kleen <[EMAIL PROTECTED]> wrote: > On Wednesday 04 April 2007 03:06:59 Jeremy Fitzhardinge wrote: > > The other symbols used to delineate the alt-instructions sections have > > the form __foo/__foo_end. Rename parainstructions to match. > > This patch brea

Re: [PATCH] Clean up x86 control register and MSR macros (corrected)

2007-04-10 Thread Andi Kleen
On Tuesday 10 April 2007 19:36:44 H. Peter Anvin wrote: > This patch is based on Rusty's recent cleanup of the EFLAGS-related > macros; it extends the same kind of cleanup to control registers and > MSRs. Applied. Although it was somewhat painful because there were other changes in the tree you di

Re: [patch 4/6] Rename the parainstructions symbols to be consistent with the others

2007-04-10 Thread Andi Kleen
On Wednesday 04 April 2007 03:06:59 Jeremy Fitzhardinge wrote: > The other symbols used to delineate the alt-instructions sections have > the form __foo/__foo_end. Rename parainstructions to match. This patch breaks x86-64 -Andi > ___ Virtualization

[PATCH] Clean up x86 control register and MSR macros (corrected)

2007-04-10 Thread H. Peter Anvin
This patch is based on Rusty's recent cleanup of the EFLAGS-related macros; it extends the same kind of cleanup to control registers and MSRs. It also unifies these between i386 and x86-64; at least with regards to MSRs, the two had definitely gotten out of sync. Signed-off-by: H. Peter Anvin <[E

Re: [PATCH] Clean up x86 control register and MSR macros

2007-04-10 Thread H. Peter Anvin
Jeremy Fitzhardinge wrote: > > Is having separate bit numbers and masks useful? If so, is it worth > doing for the others? > I presume it's useful, or at least *used* in the current code, since that was there already. If deemed useful, it's something we could add to the other bitmasks.

Re: [PATCH 9/10] Vmi timer update.patch

2007-04-10 Thread Chris Wright
* Zachary Amsden ([EMAIL PROTECTED]) wrote: > >>+void __init vmi_time_init(void) > >>+{ > >>+ /* Disable PIT: BIOSes start PIT CH0 with 18.2hz peridic. */ > >>+ outb_p(0x3a, PIT_MODE); /* binary, mode 5, LSB/MSB, ch 0 */ > > > >That shouldn't be necessary using clockevents. > > Actually, I'm n

Re: [PATCH 9/10] Vmi timer update.patch

2007-04-10 Thread Zachary Amsden
Chris Wright wrote: Thanks for the review! Comments inline. >> +/* paravirt_ops.get_wallclock = vmi_get_wallclock */ >> > > Style nit, these pv_ops.foo = vmi_foo style comments aren't really useful. > > Yeah, and easy to get out of sync. I'll drop them. >> +.rating = 1000

Re: [PATCH] Clean up x86 control register and MSR macros

2007-04-10 Thread Jeremy Fitzhardinge
H. Peter Anvin wrote: > [PATCH] Clean up x86 control register and MSR macros > > This patch is based on Rusty's recent cleanup of the EFLAGS-related > macros; it extends the same kind of cleanup to control registers and > MSRs. > > It also unifies these between i386 and x86-64; at least with regard

[no subject]

2007-04-10 Thread H. Peter Anvin
[PATCH] Clean up x86 control register and MSR macros This patch is based on Rusty's recent cleanup of the EFLAGS-related macros; it extends the same kind of cleanup to control registers and MSRs. It also unifies these between i386 and x86-64; at least with regards to MSRs, the two had definitely

Re: [PATCH 3/10] I386 mcheck p4 grotesque and needless warning fix.patch

2007-04-10 Thread Jesper Juhl
On 10/04/07, Zachary Amsden <[EMAIL PROTECTED]> wrote: > No, just no. You do not use goto to skip a code block. You do not > return an obvious variable from a singly-inlined function and give > the function a return value. You don't put unexplained comments > about kmalloc in code which doesn't

Re: [PATCH 3/10] I386 mcheck p4 grotesque and needless warning fix.patch

2007-04-10 Thread Chuck Ebbert
Zachary Amsden wrote: > No, just no. You do not use goto to skip a code block. You do not > return an obvious variable from a singly-inlined function and give > the function a return value. You don't put unexplained comments > about kmalloc in code which doesn't do dynamic allocation. And > you

Re: PATCH 7/8] lguest: the block driver

2007-04-10 Thread Pekka Enberg
On 4/10/07, Rusty Russell <[EMAIL PROTECTED]> wrote: > > +/* Jens gave me this nice helper to end all chunks of a request. */ > > +static void end_entire_request(struct request *req, int uptodate) > > +{ > > + if (end_that_request_first(req, uptodate, req->hard_nr_sectors)) > > +

Re: PATCH 7/8] lguest: the block driver

2007-04-10 Thread Pekka Enberg
Hi Rusty, On 4/10/07, Rusty Russell <[EMAIL PROTECTED]> wrote: > +/* Jens gave me this nice helper to end all chunks of a request. */ > +static void end_entire_request(struct request *req, int uptodate) > +{ > + if (end_that_request_first(req, uptodate, req->hard_nr_sectors)) > +

[PATCH 8/8] lguest: the documentation, example launcher

2007-04-10 Thread Rusty Russell
A brief document describing how to use lguest. Because lguest doesn't have an ABI we also include an example launcher in the Documentation directory. Signed-off-by: Rusty Russell <[EMAIL PROTECTED]> --- Documentation/lguest/Makefile | 20 Documentation/lguest/lguest.c | 982 +

PATCH 7/8] lguest: the block driver

2007-04-10 Thread Rusty Russell
Lguest block driver A simple block driver for lguest. Signed-off-by: Rusty Russell <[EMAIL PROTECTED]> --- drivers/block/Makefile |1 drivers/block/lguest_blk.c | 271 2 files changed, 272 insertions(+) =

[PATCH 6/8] lguest: the net driver

2007-04-10 Thread Rusty Russell
Lguest net driver A simple net driver for lguest. Signed-off-by: Rusty Russell <[EMAIL PROTECTED]> --- drivers/net/Makefile |1 drivers/net/lguest_net.c | 355 ++ 2 files changed, 356 insertions(+) ===

Re: [PATCH 5/8] lguest: the net driver

2007-04-10 Thread Rusty Russell
A simple net driver for lguest. Signed-off-by: Rusty Russell <[EMAIL PROTECTED]> --- drivers/net/Makefile |1 drivers/net/lguest_net.c | 355 ++ 2 files changed, 356 insertions(+) ==

[PATCH 5/8] lguest: the console driver

2007-04-10 Thread Rusty Russell
A simple console driver for lguest. Signed-off-by: Rusty Russell <[EMAIL PROTECTED]> --- drivers/char/Makefile |1 drivers/char/hvc_lguest.c | 99 + 2 files changed, 100 insertions(+) =

[PATCH 4/8] lguest: the Makefile and Kconfig

2007-04-10 Thread Rusty Russell
This is the Kconfig and Makefile to allow lguest to actually be compiled. Signed-off-by: Rusty Russell <[EMAIL PROTECTED]> --- drivers/Kconfig |2 ++ drivers/Makefile|1 + drivers/lguest/Kconfig | 20 drivers/lguest/Makefile |7 +++ 4 files

[PATCH 3/8] lguest: the asm offsets

2007-04-10 Thread Rusty Russell
This is the structure offsets required by lg.ko's switcher.S. Unfortunately we don't have infrastructure for private asm-offsets creation. Signed-off-by: Rusty Russell <[EMAIL PROTECTED]> --- arch/i386/kernel/asm-offsets.c | 19 +++ 1 file changed, 19 insertions(+) ===

[PATCH 1/8] lguest: the guest code

2007-04-10 Thread Rusty Russell
This is the code and headers required to make an i386 kernel an lguest guest. Signed-off-by: Rusty Russell <[EMAIL PROTECTED]> --- drivers/lguest/lguest.c | 509 +++ drivers/lguest/lguest_asm.S | 59 drivers/lguest/lguest_bus.c | 148 ++

[PATCH 0/8] lguest

2007-04-10 Thread Rusty Russell
As promised to Andrew, and with much thanks to Andi Kleen for feedback, this is the new series of lguest patches. Main change is the move to drivers/lguest (for future non-i386 expansion), but lots of cleanups driven by Andi's feedback and the documentation effort (which made me examine every line