[Devel] [RFC rh7 v2] ve/tty: vt -- Implement per VE support for virtual consoles

Vladimir Davydov vdavydov at parallels.com
Fri Jul 31 03:53:19 PDT 2015


On Thu, Jul 30, 2015 at 05:51:19PM +0300, Cyrill Gorcunov wrote:
> On Thu, Jul 30, 2015 at 05:28:48PM +0300, Vladimir Davydov wrote:
> > > 
> > >  - scan node's /proc/tty/drivers and find the numbers for
> > >    "vzt_slave" driver, for example
> > > 
> > > 	 | [root at pcs7 ~]# cat /proc/tty/drivers 
> > > 	 | ...
> > > 	 | vzt_slave            /dev/vzts     252 0-11 console
> > > 	 | vzt_master           /dev/vztm     253 0-11 console
> > > 	 | ...
> > 
> > How is vzctl supposed to find which vztm corresponds to which VE?
> 
> The distinguishing between VEs is happening on "opener" context,
> ie join to VE cgroup, and open /dev/vztm1 the kernel calls
> for get_exec_env and allocates appropriate vzt pair.

i.e. if I want to open a container's console as a slave I have to put
myself into its ve cgroup first?



More information about the Devel mailing list