lkml.org 
[lkml]   [2007]   [Jul]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH][RFC] kvm-scheduler integration
From
Date
Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org> writes:
> diff --git a/include/linux/sched.h b/include/linux/sched.h
> index 693f0e6..b705876 100644
> --- a/include/linux/sched.h
> +++ b/include/linux/sched.h
> @@ -875,6 +875,10 @@ struct task_struct {
> pid_t pid;
> pid_t tgid;
>
> +#ifdef CONFIG_SCHED_KVM
> + struct kvm_vcpu *kvm_vcpu;
> +#endif

You should be careful to put this into a cache line that
is already touched during context switch. Otherwise
if it needs an additional cache miss it might become
very costly

Also it's a bit worrying to expose hooks into the scheduler
to any modules. How would others be stopped from abusing this?

-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-07-08 20:15    [W:0.542 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site