]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Allow 32-on-64 execution for LXC guests
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 23 Feb 2011 17:17:53 +0000 (17:17 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 24 Feb 2011 12:04:29 +0000 (12:04 +0000)
commit4f2094a8a61682c81b3b5412ac1f3d9564a8b544
treec826f1920a827e8fdef29bbd96f8edb1137eb853
parent35416720c218a59b4960c659603861efefdf4741
Allow 32-on-64 execution for LXC guests

Using the 'personality(2)' system call, we can make a container
on an x86_64 host appear to be i686. Likewise for most other
Linux 64bit arches.

* src/lxc/lxc_conf.c: Fill in 32bit capabilities for x86_64 hosts
* src/lxc/lxc_container.h, src/lxc/lxc_container.c: Add API to
  check if an arch has a 32bit alternative
* src/lxc/lxc_controller.c: Set the process personality when
  starting guest
src/lxc/lxc_conf.c
src/lxc/lxc_container.c
src/lxc/lxc_container.h
src/lxc/lxc_controller.c