[Kimchi-devel] [PATCH] [Kimchi] Updated serial console to support s390x architecture.

Daniel Henrique Barboza dhbarboza82 at gmail.com
Wed Aug 10 18:06:16 UTC 2016


Applied to master. Thanks!

On 08/09/2016 06:04 AM, archus at linux.vnet.ibm.com wrote:
> From: Archana Singh <archus at linux.vnet.ibm.com>
>
> On s390x architecture, serial console differ from
> x86. Added code to support s390x architecture.
>
> Signed-off-by: Archana Singh <archus at linux.vnet.ibm.com>
> ---
>   xmlutils/serial.py | 11 ++++++++++-
>   1 file changed, 10 insertions(+), 1 deletion(-)
>
> diff --git a/xmlutils/serial.py b/xmlutils/serial.py
> index 99b1e90..c823ee6 100644
> --- a/xmlutils/serial.py
> +++ b/xmlutils/serial.py
> @@ -36,6 +36,11 @@ def get_serial_xml(params):
>            <target type='serial' port='1'/>
>            <address type='spapr-vio' reg='0x30001000'/>
>        </console>
> +
> +    For s390x
> +    <console type='pty'>
> +      <target type='sclp' port='0'/>
> +    </console>
>       """
>       # pcc serial console
>       if params["arch"] in ["ppc", "ppc64"]:
> @@ -43,7 +48,11 @@ def get_serial_xml(params):
>           console.append(E.target(type="serial", port='1'))
>           console.append(E.address(type="spapr-vio", reg="0x30001000"))
>           return ET.tostring(console, encoding='utf-8', pretty_print=True)
> -
> +    # for s390x
> +    elif params["arch"] in ["s390x"]:
> +        console = E.console(type="pty")
> +        console.append(E.target(type="sclp", port='0'))
> +        return ET.tostring(console, encoding='utf-8', pretty_print=True)
>       # for x
>       else:
>           serial = E.serial(type="pty")




More information about the Kimchi-devel mailing list