From OpenVZ Virtuozzo Containers Wiki
< Download‎ | kernel‎ | 2.6.16‎ | 026test012.1
Revision as of 18:15, 22 October 2009 by Kir (talk | contribs) (Protected "Download/kernel/2.6.16/026test012.1/changes": Robot: Protecting a list of files. [edit=autoconfirmed:move=autoconfirmed])
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


  • CPU Fair scheduler.
  • Mainstream security fixes (up to
  • Compilation fixes.
  • UBC accounting fixes.

Config changes

Same as 026test009.1, plus:




For the complete list of changes in this release, see git changelog for kernel 026test012.1.



Patch from Dmitry Mishin <>:
Fixed cpt compilation on ia32 with gcc 4.0.2


Patch from Dmitry Mishin <>:
Fixed compilation for CONFIG_VZ_CHECKPOINT=y

  • static eventpoll_ops
  • strut for __put_namespace
  • common files for cpt and rst modules
  • emt64 kernel thread creation


Patch from Dmitry Mishin <>:
[CPT] Fixed compilation with CONFIG_HUGETLB and CONFIG_IPV6 enabled.


Patch from Kirill Korotaev <>:
Fair cpu scheduler


Patch from Pavel Emelianov <>:
Initialize vcpus for idle_vsched and default_vsched in migration_call

Normally this should be done after CPU_UP_PREPARE event, but some arches (i386) call init_idle() before it, so init vcpus there as well.

This patch fixes boot process for x86_64 smp kernel.


Patch from Kirill Korotaev <>:
Fix usage of task_cpu on powerpc.


Patch from Pavel Emelianov <>:
Fixed fairsched compilation for UP


Patch from Pavel Emelianov <>:
Don't migrate migration thread from dying vcpu on VPS stop.

Otherwise on destroying the last cpu destination will be NR_CPUS cpu and it will cause an OOPs in __migrate_task() (#61877).


Patch from Kirill Korotaev <>:
Fix vsched_del_vcpu to work under lock_kernel()

vzioctls are called under lock_kernel() as all other ioctl's. This lead to the fact that scheduler code can do cpu_relax() with lock_kernel() being held, which isn't good anyhow. I replaced one such non-fatal cpu_relax() with yield(). It is not fatal since vcpu has no more tasks and should be switched from at this moment.


Patch from Pavel Emelianov <>:
Compat layer in 64bit systems didn't call faudit on statfs calls.

Now faudit uses struct kstatfs for patching statfs data and compat layer uses it.

OpenVZ Bug #142.


Patch from Kirill Korotaev <>:
Remove lock_kernel() from vzioctls, since nothing in our code requires it...


Patch from OpenVZ team <>:
Merged from /linux/kernel/git/stable/linux-2.6.16.y


Patch from OpenVZ team <>:
Merged from /linux/kernel/git/stable/linux-2.6.16.y


Patch from OpenVZ team <>:
Merge from /linux/kernel/git/stable/linux-2.6.16.y


Patch from Pavel Emelianov <>:
Some fixes for disabling of decoding calltraces

  • some places were missed in emt64
  • make it "on" by default


Patch from Pavel Emelianov <>:
Scheduler tasks statistics needed with fairsched.

Adds percpu counters for number of running, sleeping, stopped etc tasks and updates them in proper places. nr_xxx() functions are patched to use them.

Patch is needed for fairsched to calculate these numbers correctly.


Patch from Pavel Emelianov <>:
Free ubc cache counters on cache destroy.


Patch from Pavel Emelianov <>:
Charge correct size in sys_mremap.

Since only (new_len - old_len) region is added to address space this very size should be charged, not the whole new_len.

OpenVZ Bug #141.


Patch from Pavel Emelianov <>:
Compilation without USER_RSS_ACCOUNTING fix.

ub_init_pbc() is in kernel/ub/ub_page_bc.c which is compiled under CONFIG_USER_RSS_ACCOUNTING, not CONFIG_USER_RESOURCE


Patch from Pavel Emelianov <>:

Handle of mapping (with vma merging) of /dev/zero

  • lost ub_unused_privvm_dec in zeromap_pte_range caused "ub helds xxx in unused_privvmpages on put" message
  • do_mmap_pgoff can perform such a thing:
  1. allocate a new VMA
  2. populate it with pages via file->f_ops->mmap
  3. try to merge this VMA with vma_merge
  4. free VMA without inserting it in to list
  5. as the result the expanded with vma_merge vm_area doesn't account populated rss. So vma_rss counter must be tuned in do_mmap_pgoff.


Patch from Pavel Emelianov <>:
Add missed include in mm/filemap_xip.c

Gentoo bug #131250


Patch from Pavel Emelianov <>:
Fix hugetlb compilation for CONFIG_VE=n case


Patch from Pavel Emelianov <>:
Fix mm/vmscan.c compilation

 CC      mm/vmscan.o
 mm/vmscan.c: In function `refill_inactive_zone':
 mm/vmscan.c:1246: warning: ISO C90 forbids mixed declarations and code

OpenVZ Bug #146.


Patch from Dmitry Mishin <>:
Fixed compilation for CONFIG_VE_NETDEV=y


Patch from Denis Lunev <>:

This patch sets skb destination address as a source in ip_send_reply (TCP reset)


Patch from Dmitry Mishin <>:
Fix compilation for CONFIG_VE_IPTABLES=y


Patch from Dmitry Mishin <>:

Per VPS i/o wait time was accounted wrongly as presense of uninterruptible tasks, not those in IO wait state.


Patch from Dmitry Mishin <>:
Fixed compilation for CONFIG_VZ_WDOG=y