[Devel] [PATCH 0/6] Allow vzctl to build on non x86 architectures without vzkernel

Glauber Costa glommer at parallels.com
Mon Nov 26 06:35:28 PST 2012


Support for the vz kernel is limited on architectures other than x86. But this
is not the case for Upstream Linux.

Right now, vzctl always expects using the vzkernel to be a possibility,
resulting in a build failure for those architectures.

Now that vzctl supports running ontop of the Upstream Linux kernel, it would be
good to allow the build to proceed, but stripping the vz-specific
functionality.

For x86, we will always build vz-kernel support, so this is unaffected. Should
we want in the future to disable vz-kernel support for x86 for any reason,
extending it should be trivial.

Glauber Costa (6):
  Don't try to initialize vz-kernel if it is not available.
  test for vz-kernel support in the target architecture
  provide a upstream alternative for ub functions
  don't support vz-specific cpu functions if vz kernel is not present
  don't compile hooks_vz.c if vz-kernel support is not enabled.
  allow vzsyscalls.h to always be called.

 configure.ac         | 18 ++++++++++++++++++
 include/ub.h         | 43 +++++++++++++++++++++++++++++++++++++++++++
 include/vzsyscalls.h |  5 ++++-
 src/lib/Makefile.am  |  6 ++++--
 src/lib/cpu.c        | 29 +++++++++++++++++++++++------
 src/lib/env.c        |  7 +++++--
 6 files changed, 97 insertions(+), 11 deletions(-)

-- 
1.7.11.7




More information about the Devel mailing list