File: vu_nesting.h

package info (click to toggle)
vuos 0.9.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,616 kB
  • sloc: ansic: 22,155; python: 284; makefile: 28; sh: 4
file content (23 lines) | stat: -rw-r--r-- 780 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef VU_NESTING_H
#define VU_NESTING_H

/* enable and disable nested virtualization */
void vu_nesting_enable(void);
void vu_nesting_disable(void);

/* vu_nesting_init enables the self virtualization using libpurelibc.
	 vuos supports nested virtualization using self virtualization.
	 This function execs and then restarts the entire hypervisor
	 to enable LD_PRELOAD of libpurelibc */

/* If libpurelibc.so is not preloaded, this function add it to LD_PRELOAD and
	 umvu re-execute itself.
	 The nested virtualization is enabled during the "second execution".  In this
	 way purelibc is loaded at the top of the library hierarchy allowing its
	 functions implementation to prevail over the other libraries functions.*/


void vu_nesting_init(int argc, char **argv);

#endif