|
Re: [PATCH 0/8] KVM updates for 2.6.20-rc2: msg#00268emulators.kvm.devel
* Ingo Molnar <mingo@xxxxxxx> wrote: > * Avi Kivity <avi@xxxxxxxxxxxx> wrote: > > > >NOTE: this is not a worry for upstream kernel, it is caused by > > >PREEMPT_RT scheduling in previously atomic APIs like kunmap(). But > > >KVM used to work pretty nicely in -rt and this problem got introduced > > >fairly recently, related to some big-page changes IIRC. > > > > This is not a recent change. The x86 emulator is fetching an > > instruction or a memory operand. > > well, the fact that it's somehow ending up in highmem and thus the > kmap becomes nontrivial could be a recent change maybe? i have worked the problem around via the change below. This affects 32-bit hosts only, and only on CONFIG_PREEMPT_RT. with this and the other two patches kvm/vmx works on 32-bit -rt hosts. Ingo Index: linux/drivers/kvm/kvm_main.c =================================================================== --- linux.orig/drivers/kvm/kvm_main.c +++ linux/drivers/kvm/kvm_main.c @@ -628,8 +628,12 @@ raced: memset(new.phys_mem, 0, npages * sizeof(struct page *)); for (i = 0; i < npages; ++i) { +#ifdef CONFIG_PREEMPT_RT + new.phys_mem[i] = alloc_page(GFP_USER | __GFP_ZERO); +#else new.phys_mem[i] = alloc_page(GFP_HIGHUSER | __GFP_ZERO); +#endif if (!new.phys_mem[i]) goto out_free; } ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: [RFT] Fix for unhandled msr c0000081 problems under Intel cpus: 00268, Ingo Molnar |
|---|---|
| Next by Date: | Re: [RFT] Fix for unhandled msr c0000081 problems under Intel cpus: 00268, Avi Kivity |
| Previous by Thread: | Re: [PATCH 0/8] KVM updates for 2.6.20-rc2i: 00268, Avi Kivity |
| Next by Thread: | Re: [PATCH 0/8] KVM updates for 2.6.20-rc2: 00268, Ingo Molnar |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |