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

Vladimir Davydov vdavydov at parallels.com
Tue Jul 21 08:18:00 PDT 2015


On Tue, Jul 14, 2015 at 04:53:54PM +0300, Cyrill Gorcunov wrote:
[...]
> @@ -66,12 +67,11 @@ struct ve_struct {
>  	struct binfmt_misc	*binfmt_misc;
>  #endif
>  
> -#define VZ_VT_MAX_DEVS		12
> -	struct tty_driver	*vz_vt_driver;
> -	struct tty_struct	*vz_tty_vt[VZ_VT_MAX_DEVS];
> -
> -	struct tty_struct	*vz_tty_conm;
> -	struct tty_struct	*vz_tty_cons;
> +#ifdef CONFIG_TTY
> +	struct tty_driver	*vtm_driver;
> +	struct tty_driver	*vts_driver;
> +	struct mutex		vt_mutex;
> +#endif

I wonder if we could implement this feature without per-VE tty_driver.
Do you think it's possible?



More information about the Devel mailing list