[PATCH -v2] Wipe out traditional opt from x86_64 Makefile

2007-10-25 Thread Glauber de Oliveira Costa
without -traditional. Signed-off-by: Glauber de Oliveira Costa [EMAIL PROTECTED] --- arch/x86/kernel/Makefile_64 |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/arch/x86/kernel/Makefile_64 b/arch/x86/kernel/Makefile_64 index 82da906..03a01f6 100644 --- a/arch/x86/kernel

Using -traditional in EXTRA_AFLAGS

2007-10-24 Thread Glauber de Oliveira Costa
in the world... just that token pasting in asm files will diverge from the way in which we (-)traditionally do ;-) ) So, does any one have a word on that? -- Glauber de Oliveira Costa. "Free as in Freedom" http://glommer.net "The less confident you are, the more serious

[PATCH] make sure init_mm is included

2007-10-24 Thread Glauber de Oliveira Costa
() and pmd_populate_kernel() are usually macros that expand to simpler variants that does not use the first parameter at all. Signed-off-by: Glauber de Oliveira Costa <[EMAIL PROTECTED]> --- mm/sparse-vmemmap.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/mm/sparse-vmemmap.

Using -traditional in EXTRA_AFLAGS

2007-10-24 Thread Glauber de Oliveira Costa
in the world... just that token pasting in asm files will diverge from the way in which we (-)traditionally do ;-) ) So, does any one have a word on that? -- Glauber de Oliveira Costa. Free as in Freedom http://glommer.net The less confident you are, the more serious you have to act. - To unsubscribe

[PATCH] make sure init_mm is included

2007-10-24 Thread Glauber de Oliveira Costa
() and pmd_populate_kernel() are usually macros that expand to simpler variants that does not use the first parameter at all. Signed-off-by: Glauber de Oliveira Costa [EMAIL PROTECTED] --- mm/sparse-vmemmap.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/mm/sparse-vmemmap.c b/mm/sparse

Re: [PATCH RFC 2/2] paravirt: clean up lazy mode handling

2007-10-15 Thread Glauber de Oliveira Costa
much simpler. > > Signed-off-by: Jeremy Fitzhardinge <[EMAIL PROTECTED]> > Cc: Andi Kleen <[EMAIL PROTECTED]> > Cc: Zach Amsden <[EMAIL PROTECTED]> > Cc: Rusty Russell <[EMAIL PROTECTED]> > Cc: Avi Kivity <[EMAIL PROTECTED]> > Cc: Anthony Liguory <[

Re: [PATCH RFC 2/2] paravirt: clean up lazy mode handling

2007-10-15 Thread Glauber de Oliveira Costa
PROTECTED] Cc: Rusty Russell [EMAIL PROTECTED] Cc: Avi Kivity [EMAIL PROTECTED] Cc: Anthony Liguory [EMAIL PROTECTED] Cc: Glauber de Oliveira Costa [EMAIL PROTECTED] Cc: Nakajima, Jun [EMAIL PROTECTED] --- arch/i386/kernel/paravirt.c | 58 +++ arch/i386

Re: Linux 2.6.23-rc9 and a heads-up for the 2.6.24 series..

2007-10-02 Thread Glauber de Oliveira Costa
tools would be using the output of uname -m, so a possible way to fix this would be fixing the data passed to userspace from uname. However, that might be the case that it creates a new set of problems too, with tools relying on the output of uname -m to determine wheter the machine is 32 or 64 bit

Re: Linux 2.6.23-rc9 and a heads-up for the 2.6.24 series..

2007-10-02 Thread Glauber de Oliveira Costa
a possible way to fix this would be fixing the data passed to userspace from uname. However, that might be the case that it creates a new set of problems too, with tools relying on the output of uname -m to determine wheter the machine is 32 or 64 bit, and so on. -- Glauber de Oliveira Costa. Free

[PATCH] Add macros for acessing lguest fields

2007-09-10 Thread Glauber de Oliveira Costa
e sort of acessor is preferred anyway. Signed-off-by: Glauber de Oliveira Costa <[EMAIL PROTECTED]> --- drivers/lguest/io.c | 10 +- drivers/lguest/lg.h |3 +++ 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/lguest/io.c b/drivers/lguest/io.c index ea68

[PATCH] Add macros for acessing lguest fields

2007-09-10 Thread Glauber de Oliveira Costa
of acessor is preferred anyway. Signed-off-by: Glauber de Oliveira Costa [EMAIL PROTECTED] --- drivers/lguest/io.c | 10 +- drivers/lguest/lg.h |3 +++ 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/lguest/io.c b/drivers/lguest/io.c index ea68613..70bab38 100644

Re: [ANNOUNCE] Lguest64 - fatter puppies!

2007-09-05 Thread Glauber de Oliveira Costa
he puppies ate a bit too > > much. No more lean and mean puppies, now we got big fat lazy ones. > > Running on the hardware that's too lazy to do full virutalization. Yes, > > lguest now runs on x86_64! > > Totally phat! Whatever this means! -- Glauber de Oliveira Cost

Re: [ANNOUNCE] Lguest64 - fatter puppies!

2007-09-05 Thread Glauber de Oliveira Costa
puppies, now we got big fat lazy ones. Running on the hardware that's too lazy to do full virutalization. Yes, lguest now runs on x86_64! Totally phat! Whatever this means! -- Glauber de Oliveira Costa. Free as in Freedom http://glommer.net The less confident you are, the more serious you

Re: How to learn Linux Kernel Programming

2007-08-21 Thread Glauber de Oliveira Costa
can also try to start following LKML's flow. Maybe you won't understand much in the beginning, but your comprehension on the discussions will improve in the future. (Maybe reading a subsystem mailing list - less traffic - is a good idea, if you have some specific interests) -- Glauber de Ol

Re: RFC: drop support for gcc < 4.0

2007-08-21 Thread Glauber de Oliveira Costa
oes. anyway, by this phrase, I only meant: "Dropping support for 3.4 series won't help in this case" -- Glauber de Oliveira Costa. "Free as in Freedom" http://glommer.net "The less confident you are, the more serious you have to act." - To unsubscribe from this list: s

Re: RFC: drop support for gcc < 4.0

2007-08-21 Thread Glauber de Oliveira Costa
nt newer kernels. Last time I tried a mips build, it would fail the compile unless I was using _exactly_ 3.4.4 (I didn't tried older versions, but did try 3.4.6, for ex.). So I also think the 3.4 series will still have to be around for a while. -- Glauber de Oliveira Costa. "Free as in Fre

[PATCH] turn err into errx in lguest call sites

2007-08-21 Thread Glauber de Oliveira Costa
These two callsites should really be errx instead of err, since there is no errno associated with them in the moment they are issued. Signed-off-by: Glauber de Oliveira Costa <[EMAIL PROTECTED]> --- Documentation/lguest/lguest.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)

Re: [kvm-devel] Réf. : Re: [PATCH 0/4] Virtual Machine Time Accounting

2007-08-21 Thread Glauber de Oliveira Costa
On 8/21/07, Christian Borntraeger <[EMAIL PROTECTED]> wrote: > Am Montag, 20. August 2007 schrieb Glauber de Oliveira Costa: > > Although I don't know KVM to a that deep level, I think it should be > > possible to keep the virtual cpus in different process (or threads), > &

Re: Réf. : Re: [PATCH 0/4] Virtual Machine Time Accounting

2007-08-21 Thread Glauber de Oliveira Costa
On 8/21/07, Laurent Vivier <[EMAIL PROTECTED]> wrote: > Glauber de Oliveira Costa wrote: > >> by doing this at kernel level, we can: > >> - measure exactly the guest time, > >> - move this part of system time to user time (as you think it should be > >>

Re: [PATCH] [5/12] x86_64: Make patching more robust, fix paravirt issue

2007-08-21 Thread Glauber de Oliveira Costa
On 8/21/07, Andi Kleen <[EMAIL PROTECTED]> wrote: > On Tue, Aug 21, 2007 at 04:30:10AM -0300, Glauber de Oliveira Costa wrote: > > On 8/20/07, Jeremy Fitzhardinge <[EMAIL PROTECTED]> wrote: > > > Chris Wright wrote: > > > > That did get backed out (at l

Re: [PATCH] [5/12] x86_64: Make patching more robust, fix paravirt issue

2007-08-21 Thread Glauber de Oliveira Costa
but my night have to get some value, after all! ;-) So I'm with Jeremy. We don't lose too much by putting a memcpy there, this code is not exactly critical. It also seems cleaner, and less error prone. I have a patch ready here, but I think by this time, you guys have too ;-) -- Glauber de Olivei

Re: How to learn Linux Kernel Programming

2007-08-21 Thread Glauber de Oliveira Costa
you won't understand much in the beginning, but your comprehension on the discussions will improve in the future. (Maybe reading a subsystem mailing list - less traffic - is a good idea, if you have some specific interests) -- Glauber de Oliveira Costa. Free as in Freedom http://glommer.net

Re: [PATCH] [5/12] x86_64: Make patching more robust, fix paravirt issue

2007-08-21 Thread Glauber de Oliveira Costa
too much by putting a memcpy there, this code is not exactly critical. It also seems cleaner, and less error prone. I have a patch ready here, but I think by this time, you guys have too ;-) -- Glauber de Oliveira Costa. Free as in Freedom http://glommer.net The less confident you are, the more

Re: [PATCH] [5/12] x86_64: Make patching more robust, fix paravirt issue

2007-08-21 Thread Glauber de Oliveira Costa
On 8/21/07, Andi Kleen [EMAIL PROTECTED] wrote: On Tue, Aug 21, 2007 at 04:30:10AM -0300, Glauber de Oliveira Costa wrote: On 8/20/07, Jeremy Fitzhardinge [EMAIL PROTECTED] wrote: Chris Wright wrote: That did get backed out (at least the part that broke paravirt patching

Re: Réf. : Re: [PATCH 0/4] Virtual Machine Time Accounting

2007-08-21 Thread Glauber de Oliveira Costa
On 8/21/07, Laurent Vivier [EMAIL PROTECTED] wrote: Glauber de Oliveira Costa wrote: by doing this at kernel level, we can: - measure exactly the guest time, - move this part of system time to user time (as you think it should be user time), - have consistency between system, user

Re: [kvm-devel] Réf. : Re: [PATCH 0/4] Virtual Machine Time Accounting

2007-08-21 Thread Glauber de Oliveira Costa
On 8/21/07, Christian Borntraeger [EMAIL PROTECTED] wrote: Am Montag, 20. August 2007 schrieb Glauber de Oliveira Costa: Although I don't know KVM to a that deep level, I think it should be possible to keep the virtual cpus in different process (or threads), and take the accounting time

[PATCH] turn err into errx in lguest call sites

2007-08-21 Thread Glauber de Oliveira Costa
These two callsites should really be errx instead of err, since there is no errno associated with them in the moment they are issued. Signed-off-by: Glauber de Oliveira Costa [EMAIL PROTECTED] --- Documentation/lguest/lguest.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff

Re: RFC: drop support for gcc 4.0

2007-08-21 Thread Glauber de Oliveira Costa
a mips build, it would fail the compile unless I was using _exactly_ 3.4.4 (I didn't tried older versions, but did try 3.4.6, for ex.). So I also think the 3.4 series will still have to be around for a while. -- Glauber de Oliveira Costa. Free as in Freedom http://glommer.net The less confident you

Re: RFC: drop support for gcc 4.0

2007-08-21 Thread Glauber de Oliveira Costa
in this case -- Glauber de Oliveira Costa. Free as in Freedom http://glommer.net The less confident you are, the more serious you have to act. - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http

Re: Réf. : Re: [PATCH 0/4] Virtual Machine Time Accounting

2007-08-20 Thread Glauber de Oliveira Costa
KVM to a that deep level, I think it should be possible to keep the virtual cpus in different process (or threads), and take the accounting time from there. Perfectly possible to know the time we spent running (user time), and the time the hypervisor spent doing things on our behalf (system time). $0.0

Re: Réf. : Re: [PATCH 0/4] Virtual Machine Time Accounting

2007-08-20 Thread Glauber de Oliveira Costa
be possible to keep the virtual cpus in different process (or threads), and take the accounting time from there. Perfectly possible to know the time we spent running (user time), and the time the hypervisor spent doing things on our behalf (system time). $0.02. -- Glauber de Oliveira Costa. Free

[PATCH] remove STR() macros

2007-08-16 Thread Glauber de Oliveira Costa
. In this file, usage was properly converted to __stringify() Signed-off-by: Glauber de Oliveira Costa <[EMAIL PROTECTED]> --- arch/x86_64/ia32/ia32_binfmt.c |5 + include/asm-x86_64/hw_irq.h|3 --- include/asm-x86_64/system.h|3 --- 3 files changed, 1 insertions(+), 10 del

[PATCH] remove STR() macros

2007-08-16 Thread Glauber de Oliveira Costa
. In this file, usage was properly converted to __stringify() Signed-off-by: Glauber de Oliveira Costa [EMAIL PROTECTED] --- arch/x86_64/ia32/ia32_binfmt.c |5 + include/asm-x86_64/hw_irq.h|3 --- include/asm-x86_64/system.h|3 --- 3 files changed, 1 insertions(+), 10 deletions

Re: [PATCH 3/25][V3] irq_flags / halt routines

2007-08-15 Thread Glauber de Oliveira Costa
Jeremy Fitzhardinge escreveu: Glauber de Oliveira Costa wrote: Thanks for the explanation, Andi. I understand it much better now, and agree with you. As alternatives what we have now, we can either keep the paravirt_ops as it is now for the native case, just hooking the vsmp functions in place

Re: [PATCH 3/25][V3] irq_flags / halt routines

2007-08-15 Thread Glauber de Oliveira Costa
On 8/15/07, Chris Wright <[EMAIL PROTECTED]> wrote: > * Glauber de Oliveira Costa ([EMAIL PROTECTED]) wrote: > > Only caveat, is that it has to be done before smp gets in the game, and > > with interrupts disabled. (which makes the function in vsmp.c not eligible). >

Re: [PATCH 3/25][V3] irq_flags / halt routines

2007-08-15 Thread Glauber de Oliveira Costa
Chris Wright escreveu: * Glauber de Oliveira Costa ([EMAIL PROTECTED]) wrote: As alternatives what we have now, we can either keep the paravirt_ops as it is now for the native case, just hooking the vsmp functions in place of the normal one, (there are just three ops anyway), refill

Re: [PATCH 3/25][V3] irq_flags / halt routines

2007-08-15 Thread Glauber de Oliveira Costa
Andi Kleen escreveu: On Wed, Aug 15, 2007 at 12:09:42PM -0300, Glauber de Oliveira Costa wrote: Again, this is the code of such function: static inline int raw_irqs_disabled_flags(unsigned long flags) { return !(flags & X86_EFLAGS_IF); } so all it is doing is getting a parameter (f

Re: [PATCH 21/25][V3] export cpu_gdt_descr

2007-08-15 Thread Glauber de Oliveira Costa
Andi Kleen escreveu: On Wed, Aug 15, 2007 at 11:25:43AM -0300, Glauber de Oliveira Costa wrote: On 8/15/07, Andi Kleen <[EMAIL PROTECTED]> wrote: +#ifdef CONFIG_PARAVIRT +extern unsigned long *cpu_gdt_descr; No externs in .c files Normally they should be where the variable is defined a

Re: [PATCH 3/25][V3] irq_flags / halt routines

2007-08-15 Thread Glauber de Oliveira Costa
Avi Kivity escreveu: Glauber de Oliveira Costa wrote: Andi Kleen escreveu: On Wed, Aug 15, 2007 at 11:18:25AM -0300, Glauber de Oliveira Costa wrote: Didn't we agree this should be a pvops client? -Andi No. I exposed my reasoning, asked you back, but got no answer. I'll do it again

Re: [PATCH 3/25][V3] irq_flags / halt routines

2007-08-15 Thread Glauber de Oliveira Costa
Andi Kleen escreveu: On Wed, Aug 15, 2007 at 11:18:25AM -0300, Glauber de Oliveira Costa wrote: Didn't we agree this should be a pvops client? -Andi No. I exposed my reasoning, asked you back, but got no answer. I'll do it again: This operations are just manipulating bits, and are doing

Re: [PATCH 21/25][V3] export cpu_gdt_descr

2007-08-15 Thread Glauber de Oliveira Costa
ad.S, what do you propose? AFAICT, this is the very duty of this file (x8664_syms.c), and the extern is also used in other symbols like the memcpy family -- Glauber de Oliveira Costa. "Free as in Freedom" http://glommer.net "The less confident you are, the more serious you have to act.

Re: [PATCH 18/25][V3] turn priviled operations into macros in entry.S

2007-08-15 Thread Glauber de Oliveira Costa
> > Is the .globl really required here? I would think that the reference in > the fixup section would be resolved with in the compiling of this object. > For the fixup yes, you are right. But I'm using this symbol in paravirt.c now, to denote the native operation. -- Glauber de Ol

Re: [PATCH 3/25][V3] irq_flags / halt routines

2007-08-15 Thread Glauber de Oliveira Costa
proper sense. Altough we do can introduce such operations for clarity of code, I personally believe it is not the way to go. What I did, then, was move this outside the PARAVIRT ifdef, which lead to a much cleaner code. -- Glauber de Oliveira Costa. "Free as in Freedom" http://glommer.net &

[PATCH 25/25][V3] add paravirtualization support for x86_64

2007-08-15 Thread Glauber de Oliveira Costa
) * modifications needed to accomodate other parts of the patch that changed, such as getting rid of ebda_info * put the integers at struct paravirt_ops at the end (Jeremy) ] Signed-off-by: Glauber de Oliveira Costa <[EMAIL PROTECTED]> Signed-off-by: Steven Rostedt <[EMAIL

[PATCH 24/25][V3] paravirt hooks for arch initialization

2007-08-15 Thread Glauber de Oliveira Costa
) * Make paravirt_setup_arch() void (Andi) ] Signed-off-by: Glauber de Oliveira Costa <[EMAIL PROTECTED]> Signed-off-by: Steven Rostedt <[EMAIL PROTECTED]> --- arch/x86_64/kernel/setup.c | 32 +++- include/asm-x86_64/e820.h |6 ++ include/asm-x

[PATCH 3/25][V3] irq_flags / halt routines

2007-08-15 Thread Glauber de Oliveira Costa
This patch turns the irq_flags and halt routines into the native versions. [ updates from v1 Move raw_irqs_disabled_flags outside of the PARAVIRT ifdef to avoid increasing the mess, suggested by Andi Kleen ] Signed-off-by: Glauber de Oliveira Costa <[EMAIL PROTECTED]> Signed-off-by:

[PATCH 23/25][V3] provide paravirt patching function

2007-08-15 Thread Glauber de Oliveira Costa
This patch introduces apply_paravirt(), a function that shall be called by i386/alternative.c to apply replacements to paravirt_functions. It is defined to an do-nothing function if paravirt is not enabled. Signed-off-by: Glauber de Oliveira Costa <[EMAIL PROTECTED]> Signed-off-by: Steven R

[PATCH 0/25][V3] pvops_64 last round (hopefully)

2007-08-15 Thread Glauber de Oliveira Costa
This is hopefully the last iteration of the pvops64 patch. >From the last version, we have only one change, which is >include/asm-x86_64/processor.h: There were still one survivor in raw asm. Also, git screwed me up for some reason, and the 25th patch was missing the new files, paravirt.{c,h}.

[PATCH 19/25][V3] time-related functions paravirt provisions

2007-08-15 Thread Glauber de Oliveira Costa
. The timer interrupt setup also have to be replaced. The job is done by time_init_hook(). Signed-off-by: Glauber de Oliveira Costa <[EMAIL PROTECTED]> Signed-off-by: Steven Rostedt <[EMAIL PROTECTED]> --- arch/x86_64/kernel/time.c | 37 + includ

[PATCH 22/25][V3] turn priviled operation into a macro

2007-08-15 Thread Glauber de Oliveira Costa
under paravirt, read cr2 cannot be issued directly anymore. So wrap it in a macro, defined to the operation itself in case paravirt is off, but to something else if we have paravirt in the game Signed-off-by: Glauber de Oliveira Costa <[EMAIL PROTECTED]> Signed-off-by: Steven Rostedt &

[PATCH 21/25][V3] export cpu_gdt_descr

2007-08-15 Thread Glauber de Oliveira Costa
-by: Glauber de Oliveira Costa <[EMAIL PROTECTED]> Signed-off-by: Steven Rostedt <[EMAIL PROTECTED]> --- arch/x86_64/kernel/x8664_ksyms.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/arch/x86_64/kernel/x8664_ksyms.c b/arch/x86_64/kernel/x8664_ksyms.c index 77c2

[PATCH 20/25][V3] replace syscall_init

2007-08-15 Thread Glauber de Oliveira Costa
This patch replaces syscall_init by x86_64_syscall_init. The former will be later replaced by a paravirt replacement in case paravirt is on Signed-off-by: Glauber de Oliveira Costa <[EMAIL PROTECTED]> Signed-off-by: Steven Rostedt <[EMAIL PROTECTED]> --- arch/x86_64/kernel/setu

[PATCH 17/25][V3] introduce paravirt_release_pgd()

2007-08-15 Thread Glauber de Oliveira Costa
This patch introduces a new macro/function that informs a paravirt guest when its page table is not more in use, and can be released. In case we're not paravirt, just do nothing. Signed-off-by: Glauber de Oliveira Costa <[EMAIL PROTECTED]> Signed-off-by: Steven Rostedt <[EMAIL

[PATCH 18/25][V3] turn priviled operations into macros in entry.S

2007-08-15 Thread Glauber de Oliveira Costa
to SWAPGS_UNSAFE_STACK * change the unexpressive 1b label to do_iret All suggested by Andi Kleen ] Signed-off-by: Glauber de Oliveira Costa <[EMAIL PROTECTED]> Signed-off-by: Steven Rostedt <[EMAIL PROTECTED]> --- arch/x86_64/kernel/entry.S | 130 +

[PATCH 15/25][V3] introducing paravirt_activate_mm

2007-08-15 Thread Glauber de Oliveira Costa
This function/macro will allow a paravirt guest to be notified we changed the current task cr3, and act upon it. It's up to them Signed-off-by: Glauber de Oliveira Costa <[EMAIL PROTECTED]> Signed-off-by: Steven Rostedt <[EMAIL PROTECTED]> --- include/asm-x86_64/mmu_cont

[PATCH 16/25][V3] turn page operations into native versions

2007-08-15 Thread Glauber de Oliveira Costa
This patch turns the page operations (set and make a page table) into native_ versions. The operations itself will be later overriden by paravirt. Signed-off-by: Glauber de Oliveira Costa <[EMAIL PROTECTED]> Signed-off-by: Steven Rostedt <[EMAIL PROTECTED]> --- include/asm-x86_64/p

[PATCH 13/25][V3] add native functions for descriptors handling

2007-08-15 Thread Glauber de Oliveira Costa
to be patched. We also patch call sites that now needs a typecast. Signed-off-by: Glauber de Oliveira Costa <[EMAIL PROTECTED]> Signed-off-by: Steven Rostedt <[EMAIL PROTECTED]> --- arch/x86_64/kernel/head64.c |2 +- arch/x86_64/kernel/ldt.c |6 +- arch/x86_64/ker

[PATCH 14/25][V3] get rid of inline asm for load_cr3

2007-08-15 Thread Glauber de Oliveira Costa
Besides not elegant, it is now even forbidden, since it can break paravirtualized guests. load_cr3 should call write_cr3() instead. Signed-off-by: Glauber de Oliveira Costa <[EMAIL PROTECTED]> Signed-off-by: Steven Rostedt <[EMAIL PROTECTED]> --- include/asm-x86_64/mmu_context.h

[PATCH 11/25][V3] native versions for set pagetables

2007-08-15 Thread Glauber de Oliveira Costa
are moved to below the #ifdef CONFIG_PARAVIRT site, as they are users of the newly defined set_* macros. Signed-off-by: Glauber de Oliveira Costa <[EMAIL PROTECTED]> Signed-off-by: Steven Rostedt <[EMAIL PROTECTED]> --- include/asm-x86_64/pgtable.h | 152

[PATCH 12/25][V3] turn msr.h functions into native versions

2007-08-15 Thread Glauber de Oliveira Costa
duplication of code in get_cycles_sync * Get rid of rdtsc(), since it is used nowhere else All three suggested by Andi Kleen ] Signed-off-by: Glauber de Oliveira Costa <[EMAIL PROTECTED]> Signed-off-by: Steven Rostedt <[EMAIL PROTECTED]> --- arch/x86_64/ia32/syscall32.c |2 +- arch/x

[PATCH 10/25][V3] export math_state_restore

2007-08-15 Thread Glauber de Oliveira Costa
Export math_state_restore symbol, so it can be used for hypervisors. They are commonly loaded as modules. Signed-off-by: Glauber de Oliveira Costa <[EMAIL PROTECTED]> Signed-off-by: Steven Rostedt <[EMAIL PROTECTED]> --- arch/x86_64/kernel/traps.c |1 + 1 files changed, 1 inse

[PATCH 9/25][V3] report ring kernel is running without paravirt

2007-08-15 Thread Glauber de Oliveira Costa
When paravirtualization is disabled, the kernel is always running at ring 0. So report it in the appropriate macro Signed-off-by: Glauber de Oliveira Costa <[EMAIL PROTECTED]> Signed-off-by: Steven Rostedt <[EMAIL PROTECTED]> --- include/asm-x86_64/segment.h |4 1 file

[PATCH 7/25][V3] interrupt related native paravirt functions.

2007-08-15 Thread Glauber de Oliveira Costa
-off-by: Glauber de Oliveira Costa <[EMAIL PROTECTED]> Signed-off-by: Steven Rostedt <[EMAIL PROTECTED]> --- arch/x86_64/kernel/i8259.c |5 - include/asm-x86_64/irq.h |2 ++ 2 files changed, 6 insertions(+), 1 deletions(-) diff --git a/arch/x86_64/kernel/i8259.c b/arch/x

[PATCH 8/25][V3] use macro for sti/cli in spinlock definitions

2007-08-15 Thread Glauber de Oliveira Costa
This patch switches the cli and sti instructions into macros. In this header, they're just defined to the instructions they refer to. Later on, when paravirt is defined, they will be defined to something with paravirt abilities. Signed-off-by: Glauber de Oliveira Costa <[EMAIL PROTECTED]>

[PATCH 6/25][V3] add native_apic read and write functions, as well as boot clocks ones

2007-08-15 Thread Glauber de Oliveira Costa
Time for the apic handling functions to get their native counterparts. Also, put the native hook for the boot clocks functions in the apic.h header Signed-off-by: Glauber de Oliveira Costa <[EMAIL PROTECTED]> Signed-off-by: Steven Rostedt <[EMAIL PROTECTED]> --- arch/x86_64/k

[PATCH 2/25][V3] tlb flushing routines

2007-08-15 Thread Glauber de Oliveira Costa
This patch turns the flush_tlb routines into native versions. In case paravirt is not defined, the natives are defined into the actually used ones. flush_tlb_others() goes in smp.c, unless smp is not in the game Signed-off-by: Glauber de Oliveira Costa <[EMAIL PROTECTED]> Signed-off-by:

[PATCH 4/25][V3] Add debugreg/load_rsp native hooks

2007-08-15 Thread Glauber de Oliveira Costa
This patch adds native hooks for debugreg handling functions, and for the native load_rsp0 function. The later also have its call sites patched. [ updates from v2 * there were still a raw reference to cr4 missing ] Signed-off-by: Glauber de Oliveira Costa <[EMAIL PROTECTED]> Sign

[PATCH 5/25][V3] native versions for system.h functions

2007-08-15 Thread Glauber de Oliveira Costa
This patch adds the native hook for the functions in system.h They are the read/write_crX, clts and wbinvd. The later, also gets its call sites patched. Signed-off-by: Glauber de Oliveira Costa <[EMAIL PROTECTED]> Signed-off-by: Steven Rostedt <[EMAIL PROTECTED]> --- arch/x86_64/

[PATCH 1/25][V3] header file move

2007-08-15 Thread Glauber de Oliveira Costa
Later on, the paravirt_ops patch will deference the vm_area_struct in asm/pgtable.h. It means this define must be after the struct definition Signed-off-by: Glauber de Oliveira Costa <[EMAIL PROTECTED]> Signed-off-by: Steven Rostedt <[EMAIL PROTECTED]> --- include/linux

[PATCH 1/25][V3] header file move

2007-08-15 Thread Glauber de Oliveira Costa
Later on, the paravirt_ops patch will deference the vm_area_struct in asm/pgtable.h. It means this define must be after the struct definition Signed-off-by: Glauber de Oliveira Costa [EMAIL PROTECTED] Signed-off-by: Steven Rostedt [EMAIL PROTECTED] --- include/linux/mm.h | 14 +- 1

[PATCH 2/25][V3] tlb flushing routines

2007-08-15 Thread Glauber de Oliveira Costa
This patch turns the flush_tlb routines into native versions. In case paravirt is not defined, the natives are defined into the actually used ones. flush_tlb_others() goes in smp.c, unless smp is not in the game Signed-off-by: Glauber de Oliveira Costa [EMAIL PROTECTED] Signed-off-by: Steven

[PATCH 4/25][V3] Add debugreg/load_rsp native hooks

2007-08-15 Thread Glauber de Oliveira Costa
This patch adds native hooks for debugreg handling functions, and for the native load_rsp0 function. The later also have its call sites patched. [ updates from v2 * there were still a raw reference to cr4 missing ] Signed-off-by: Glauber de Oliveira Costa [EMAIL PROTECTED] Signed-off

[PATCH 5/25][V3] native versions for system.h functions

2007-08-15 Thread Glauber de Oliveira Costa
This patch adds the native hook for the functions in system.h They are the read/write_crX, clts and wbinvd. The later, also gets its call sites patched. Signed-off-by: Glauber de Oliveira Costa [EMAIL PROTECTED] Signed-off-by: Steven Rostedt [EMAIL PROTECTED] --- arch/x86_64/kernel/tce.c

[PATCH 6/25][V3] add native_apic read and write functions, as well as boot clocks ones

2007-08-15 Thread Glauber de Oliveira Costa
Time for the apic handling functions to get their native counterparts. Also, put the native hook for the boot clocks functions in the apic.h header Signed-off-by: Glauber de Oliveira Costa [EMAIL PROTECTED] Signed-off-by: Steven Rostedt [EMAIL PROTECTED] --- arch/x86_64/kernel/apic.c|2

[PATCH 7/25][V3] interrupt related native paravirt functions.

2007-08-15 Thread Glauber de Oliveira Costa
-off-by: Glauber de Oliveira Costa [EMAIL PROTECTED] Signed-off-by: Steven Rostedt [EMAIL PROTECTED] --- arch/x86_64/kernel/i8259.c |5 - include/asm-x86_64/irq.h |2 ++ 2 files changed, 6 insertions(+), 1 deletions(-) diff --git a/arch/x86_64/kernel/i8259.c b/arch/x86_64/kernel/i8259

[PATCH 8/25][V3] use macro for sti/cli in spinlock definitions

2007-08-15 Thread Glauber de Oliveira Costa
This patch switches the cli and sti instructions into macros. In this header, they're just defined to the instructions they refer to. Later on, when paravirt is defined, they will be defined to something with paravirt abilities. Signed-off-by: Glauber de Oliveira Costa [EMAIL PROTECTED] Signed

[PATCH 9/25][V3] report ring kernel is running without paravirt

2007-08-15 Thread Glauber de Oliveira Costa
When paravirtualization is disabled, the kernel is always running at ring 0. So report it in the appropriate macro Signed-off-by: Glauber de Oliveira Costa [EMAIL PROTECTED] Signed-off-by: Steven Rostedt [EMAIL PROTECTED] --- include/asm-x86_64/segment.h |4 1 files changed, 4

[PATCH 10/25][V3] export math_state_restore

2007-08-15 Thread Glauber de Oliveira Costa
Export math_state_restore symbol, so it can be used for hypervisors. They are commonly loaded as modules. Signed-off-by: Glauber de Oliveira Costa [EMAIL PROTECTED] Signed-off-by: Steven Rostedt [EMAIL PROTECTED] --- arch/x86_64/kernel/traps.c |1 + 1 files changed, 1 insertions(+), 0

[PATCH 11/25][V3] native versions for set pagetables

2007-08-15 Thread Glauber de Oliveira Costa
are moved to below the #ifdef CONFIG_PARAVIRT site, as they are users of the newly defined set_* macros. Signed-off-by: Glauber de Oliveira Costa [EMAIL PROTECTED] Signed-off-by: Steven Rostedt [EMAIL PROTECTED] --- include/asm-x86_64/pgtable.h | 152 - 1

[PATCH 12/25][V3] turn msr.h functions into native versions

2007-08-15 Thread Glauber de Oliveira Costa
duplication of code in get_cycles_sync * Get rid of rdtsc(), since it is used nowhere else All three suggested by Andi Kleen ] Signed-off-by: Glauber de Oliveira Costa [EMAIL PROTECTED] Signed-off-by: Steven Rostedt [EMAIL PROTECTED] --- arch/x86_64/ia32/syscall32.c |2 +- arch/x86_64/kernel

[PATCH 13/25][V3] add native functions for descriptors handling

2007-08-15 Thread Glauber de Oliveira Costa
to be patched. We also patch call sites that now needs a typecast. Signed-off-by: Glauber de Oliveira Costa [EMAIL PROTECTED] Signed-off-by: Steven Rostedt [EMAIL PROTECTED] --- arch/x86_64/kernel/head64.c |2 +- arch/x86_64/kernel/ldt.c |6 +- arch/x86_64/kernel/reboot.c

[PATCH 15/25][V3] introducing paravirt_activate_mm

2007-08-15 Thread Glauber de Oliveira Costa
This function/macro will allow a paravirt guest to be notified we changed the current task cr3, and act upon it. It's up to them Signed-off-by: Glauber de Oliveira Costa [EMAIL PROTECTED] Signed-off-by: Steven Rostedt [EMAIL PROTECTED] --- include/asm-x86_64/mmu_context.h | 17

[PATCH 16/25][V3] turn page operations into native versions

2007-08-15 Thread Glauber de Oliveira Costa
This patch turns the page operations (set and make a page table) into native_ versions. The operations itself will be later overriden by paravirt. Signed-off-by: Glauber de Oliveira Costa [EMAIL PROTECTED] Signed-off-by: Steven Rostedt [EMAIL PROTECTED] --- include/asm-x86_64/page.h | 36

[PATCH 17/25][V3] introduce paravirt_release_pgd()

2007-08-15 Thread Glauber de Oliveira Costa
This patch introduces a new macro/function that informs a paravirt guest when its page table is not more in use, and can be released. In case we're not paravirt, just do nothing. Signed-off-by: Glauber de Oliveira Costa [EMAIL PROTECTED] Signed-off-by: Steven Rostedt [EMAIL PROTECTED

[PATCH 18/25][V3] turn priviled operations into macros in entry.S

2007-08-15 Thread Glauber de Oliveira Costa
to SWAPGS_UNSAFE_STACK * change the unexpressive 1b label to do_iret All suggested by Andi Kleen ] Signed-off-by: Glauber de Oliveira Costa [EMAIL PROTECTED] Signed-off-by: Steven Rostedt [EMAIL PROTECTED] --- arch/x86_64/kernel/entry.S | 130 +--- 1 files

[PATCH 21/25][V3] export cpu_gdt_descr

2007-08-15 Thread Glauber de Oliveira Costa
-by: Glauber de Oliveira Costa [EMAIL PROTECTED] Signed-off-by: Steven Rostedt [EMAIL PROTECTED] --- arch/x86_64/kernel/x8664_ksyms.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/arch/x86_64/kernel/x8664_ksyms.c b/arch/x86_64/kernel/x8664_ksyms.c index 77c25b3..2d3932d

[PATCH 20/25][V3] replace syscall_init

2007-08-15 Thread Glauber de Oliveira Costa
This patch replaces syscall_init by x86_64_syscall_init. The former will be later replaced by a paravirt replacement in case paravirt is on Signed-off-by: Glauber de Oliveira Costa [EMAIL PROTECTED] Signed-off-by: Steven Rostedt [EMAIL PROTECTED] --- arch/x86_64/kernel/setup64.c |8

[PATCH 14/25][V3] get rid of inline asm for load_cr3

2007-08-15 Thread Glauber de Oliveira Costa
Besides not elegant, it is now even forbidden, since it can break paravirtualized guests. load_cr3 should call write_cr3() instead. Signed-off-by: Glauber de Oliveira Costa [EMAIL PROTECTED] Signed-off-by: Steven Rostedt [EMAIL PROTECTED] --- include/asm-x86_64/mmu_context.h |2 +- 1 files

[PATCH 19/25][V3] time-related functions paravirt provisions

2007-08-15 Thread Glauber de Oliveira Costa
. The timer interrupt setup also have to be replaced. The job is done by time_init_hook(). Signed-off-by: Glauber de Oliveira Costa [EMAIL PROTECTED] Signed-off-by: Steven Rostedt [EMAIL PROTECTED] --- arch/x86_64/kernel/time.c | 37 + include/asm-x86_64/time.h

[PATCH 22/25][V3] turn priviled operation into a macro

2007-08-15 Thread Glauber de Oliveira Costa
under paravirt, read cr2 cannot be issued directly anymore. So wrap it in a macro, defined to the operation itself in case paravirt is off, but to something else if we have paravirt in the game Signed-off-by: Glauber de Oliveira Costa [EMAIL PROTECTED] Signed-off-by: Steven Rostedt [EMAIL

[PATCH 23/25][V3] provide paravirt patching function

2007-08-15 Thread Glauber de Oliveira Costa
This patch introduces apply_paravirt(), a function that shall be called by i386/alternative.c to apply replacements to paravirt_functions. It is defined to an do-nothing function if paravirt is not enabled. Signed-off-by: Glauber de Oliveira Costa [EMAIL PROTECTED] Signed-off-by: Steven Rostedt

[PATCH 0/25][V3] pvops_64 last round (hopefully)

2007-08-15 Thread Glauber de Oliveira Costa
This is hopefully the last iteration of the pvops64 patch. From the last version, we have only one change, which is include/asm-x86_64/processor.h: There were still one survivor in raw asm. Also, git screwed me up for some reason, and the 25th patch was missing the new files, paravirt.{c,h}.

[PATCH 24/25][V3] paravirt hooks for arch initialization

2007-08-15 Thread Glauber de Oliveira Costa
) * Make paravirt_setup_arch() void (Andi) ] Signed-off-by: Glauber de Oliveira Costa [EMAIL PROTECTED] Signed-off-by: Steven Rostedt [EMAIL PROTECTED] --- arch/x86_64/kernel/setup.c | 32 +++- include/asm-x86_64/e820.h |6 ++ include/asm-x86_64/page.h |1

[PATCH 3/25][V3] irq_flags / halt routines

2007-08-15 Thread Glauber de Oliveira Costa
This patch turns the irq_flags and halt routines into the native versions. [ updates from v1 Move raw_irqs_disabled_flags outside of the PARAVIRT ifdef to avoid increasing the mess, suggested by Andi Kleen ] Signed-off-by: Glauber de Oliveira Costa [EMAIL PROTECTED] Signed-off-by: Steven Rostedt

[PATCH 25/25][V3] add paravirtualization support for x86_64

2007-08-15 Thread Glauber de Oliveira Costa
) * modifications needed to accomodate other parts of the patch that changed, such as getting rid of ebda_info * put the integers at struct paravirt_ops at the end (Jeremy) ] Signed-off-by: Glauber de Oliveira Costa [EMAIL PROTECTED] Signed-off-by: Steven Rostedt [EMAIL PROTECTED

Re: [PATCH 3/25][V3] irq_flags / halt routines

2007-08-15 Thread Glauber de Oliveira Costa
do can introduce such operations for clarity of code, I personally believe it is not the way to go. What I did, then, was move this outside the PARAVIRT ifdef, which lead to a much cleaner code. -- Glauber de Oliveira Costa. Free as in Freedom http://glommer.net The less confident you

Re: [PATCH 18/25][V3] turn priviled operations into macros in entry.S

2007-08-15 Thread Glauber de Oliveira Costa
Is the .globl really required here? I would think that the reference in the fixup section would be resolved with in the compiling of this object. For the fixup yes, you are right. But I'm using this symbol in paravirt.c now, to denote the native operation. -- Glauber de Oliveira Costa. Free

Re: [PATCH 21/25][V3] export cpu_gdt_descr

2007-08-15 Thread Glauber de Oliveira Costa
duty of this file (x8664_syms.c), and the extern is also used in other symbols like the memcpy family -- Glauber de Oliveira Costa. Free as in Freedom http://glommer.net The less confident you are, the more serious you have to act. - To unsubscribe from this list: send the line unsubscribe linux

Re: [PATCH 3/25][V3] irq_flags / halt routines

2007-08-15 Thread Glauber de Oliveira Costa
Andi Kleen escreveu: On Wed, Aug 15, 2007 at 11:18:25AM -0300, Glauber de Oliveira Costa wrote: Didn't we agree this should be a pvops client? -Andi No. I exposed my reasoning, asked you back, but got no answer. I'll do it again: This operations are just manipulating bits, and are doing

Re: [PATCH 3/25][V3] irq_flags / halt routines

2007-08-15 Thread Glauber de Oliveira Costa
Avi Kivity escreveu: Glauber de Oliveira Costa wrote: Andi Kleen escreveu: On Wed, Aug 15, 2007 at 11:18:25AM -0300, Glauber de Oliveira Costa wrote: Didn't we agree this should be a pvops client? -Andi No. I exposed my reasoning, asked you back, but got no answer. I'll do it again

<    3   4   5   6   7   8   9   10   11   >