[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1184029745.6005.402.camel@localhost.localdomain>
Date: Tue, 10 Jul 2007 11:09:04 +1000
From: Rusty Russell <rusty@...tcorp.com.au>
To: Avi Kivity <avi@...ranet.com>
Cc: Ingo Molnar <mingo@...e.hu>, kvm-devel@...ts.sourceforge.net,
linux-kernel@...r.kernel.org
Subject: Re: [kvm-devel] [PATCH][RFC] kvm-scheduler integration
On Mon, 2007-07-09 at 09:39 +0300, Avi Kivity wrote:
> Rusty Russell wrote:
> > I think a "struct preempt_ops *" and a "void *preempt_ops_data" inside
> > every task struct is a better idea. Call the config option
> > PREEMPT_SCHED_HOOKS and now there's nothing kvm-specific about it...
> >
>
> I considered that, but your proposal does not allow a single task to
> have multiple preemption hooks installed (hookers?!). Since in general
> there's no reason to suppose that users would be mutually exclusive, we
> need to have a struct hlist of these things. All in all this seemed to
> indicate that the second user should have the honor of figuring out that
> stuff.
No; this is a "I'm doing something magic and need to know before someone
else takes the CPU". Almost by definition, you cannot have two of them
at the same time. Let someone else try that if and when...
But having different hooks for different tasks makes a great deal of
sense. This hook makes a great deal of sense.
But KVM-specific code in the scheduler is just wrong, and I think we all
know that.
Cheers,
Rusty.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists