All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@siemens.com>
To: Sven-Thorsten Dietrich <sven@thebigcorporation.com>
Cc: "Back, Michael (ext)" <michael.back.ext@siemens.com>,
	linux-rt-users@vger.kernel.org
Subject: Re: KVM and Prempt?
Date: Tue, 23 Oct 2007 10:35:28 +0200	[thread overview]
Message-ID: <471DB250.3030301@siemens.com> (raw)
In-Reply-To: <1193076845.5738.23.camel@sven.thebigcorporation.com>

Sven-Thorsten Dietrich wrote:
> On Mon, 2007-10-22 at 09:01 +0200, Back, Michael (ext) wrote:
>> Hallo,
>> I tried to run Windows XP with KVM on Linux 2.6.31.1 on a 
> 
> You mean .21.1 ? 

Classic typo I interestingly also did several times the last week. :)

> 
>> AMD Opteron and on a Intel Xeon, on both it works fine!
> 
>> After this test I patch the kernel with the current prempt-patch and on
>> both it doesn't works! 
> 
> Did you try against 2.6.23-rt1.

kvm in -rt1 is not usable. It's too old, lacking PREEMPT_NOTIFIER
support, thus quickly triggering lockdep.

> 
> If you must stay on .21, you might have some other issues with the AMD
> and NUMA.
> 
> At the very least, you will need to apply the attached patch from git
> somehow, although this patch is against a new scheduler post 2.6.22, so
> good luck :)

<--snip-->

Those patches are already mainline... :->

What you rather need are latest kvm patches, or - if building the kvm
distribution out of tree - a patch to enabled CONFIG_PREEMPT_NOTIFIERS
unconditionally:

--- linux-2.6.23.1-rt/kernel/Kconfig.preempt.orig
+++ linux-2.6.23.1-rt/kernel/Kconfig.preempt
@@ -136,6 +136,7 @@

 config PREEMPT_NOTIFIERS
 	bool
+	default y

 config PREEMPT_BKL
 	bool


Still, I'm seeing oopses here (more precisely, lock validator
complaints), but I need to re-test, better using kvm from git instead of
kvm-48.

Beyond this, I'm struggling to understand 300-400 us vm-exit latencies
(over Intel VMX), which appear to be independent of the underlying
system. See kvm-devel. Such latencies would limit the RT usability of
kvm - unless you spent dedicated CPUs.

Jan

-- 
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux

  reply	other threads:[~2007-10-23  8:35 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-22  7:01 KVM and Prempt? Back, Michael (ext)
2007-10-22 18:14 ` Sven-Thorsten Dietrich
2007-10-23  8:35   ` Jan Kiszka [this message]
2007-10-23 12:31     ` Gregory Haskins
2007-10-24  7:31     ` AW: " Back, Michael (ext)
2007-10-24  7:23   ` Back, Michael (ext)
  -- strict thread matches above, loose matches on Subject: below --
2007-10-19 13:32 Back, Michael (ext)
     [not found] ` <003F437218F04842B2A6976FA19368B1886A2F-EA/R+3GEQKtclD5KMHf1bFOnKfhBOm/VrE5yTffgRl4@public.gmane.org>
2007-10-19 13:57   ` Gregory Haskins
     [not found]     ` <1192802222.9564.4.camel-5CR4LY5GPkvLDviKLk5550HKjMygAv58XqFh9Ls21Oc@public.gmane.org>
2007-10-19 14:17       ` Back, Michael (ext)
     [not found]         ` <003F437218F04842B2A6976FA19368B1886A66-EA/R+3GEQKtclD5KMHf1bFOnKfhBOm/VrE5yTffgRl4@public.gmane.org>
2007-10-19 15:27           ` Gregory Haskins
     [not found]             ` <1192807627.9564.10.camel-5CR4LY5GPkvLDviKLk5550HKjMygAv58XqFh9Ls21Oc@public.gmane.org>
2007-10-22  6:58               ` Back, Michael (ext)
     [not found]                 ` <003F437218F04842B2A6976FA19368B1886B92-EA/R+3GEQKtclD5KMHf1bFOnKfhBOm/VrE5yTffgRl4@public.gmane.org>
2007-10-22  7:39                   ` Avi Kivity
     [not found]                     ` <471C53B7.1040208-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-10-22 11:37                       ` Back, Michael (ext)
     [not found]                         ` <003F437218F04842B2A6976FA19368B1886D5A-EA/R+3GEQKtclD5KMHf1bFOnKfhBOm/VrE5yTffgRl4@public.gmane.org>
2007-10-22 11:51                           ` Avi Kivity
     [not found]                             ` <471C8EC8.8060508-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-10-22 14:05                               ` Back, Michael (ext)
2007-10-24 14:02               ` Back, Michael (ext)
2007-10-19 13:16 Back, Michael (ext)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=471DB250.3030301@siemens.com \
    --to=jan.kiszka@siemens.com \
    --cc=linux-rt-users@vger.kernel.org \
    --cc=michael.back.ext@siemens.com \
    --cc=sven@thebigcorporation.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.