lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Sun, 25 Dec 2016 10:02:22 +0100
From:   Heinrich Schuchardt <>
To:     Reza Arbab <>
Cc:     Balbir Singh <>,
        "Aneesh Kumar K . V" <>,
        "H . Peter Anvin" <>,
        Alistair Popple <>,
        Benjamin Herrenschmidt <>,
        Bharata B Rao <>,
        Frank Rowand <>,
        Ingo Molnar <>,
        Michael Ellerman <>,
        Nathan Fontenot <>,
        Paul Mackerras <>,
        Rob Herring <>,
        Stewart Smith <>,
        Thomas Gleixner <>,
        Andrew Morton <>,,,, Heinrich Schuchardt <>
Subject: Re: [PATCH v6 4/4] of/fdt: mark hotpluggable memory

The patch adds a new property "linux,hotpluggable" to memory nodes of the
device tree.

memory@0 {
	reg = <0x0 0x01000000 0x0 0x7f000000>;

Memory areas marked by this property can later be disabled using the hotplugging
API. Especially for virtual machines this is a very useful capability.

Unfortunately the notation chosen does not fit well with the concept of
devicetree overlays which allow to change the devicetree during runtime.

I suggest to use the following notation

memory@0 {
	compatible = "linux,hotpluggable-memory";
	reg = <0x0 0x01000000 0x0 0x7f000000>;
	status = "disabled";

This will allow us to write a device driver that can react to changes of the
devicetree made via devicetree overlays.

This driver could react to the change of the status between "okay" and
"disabled" and update the memory status accordingly.

Further we could use devicetree overlays to provide additional hotpluggable

The referenced patch has already been pulled for 4.10. But I hope it is not
too late for this design change.

Best regards

Heinrich Schuchardt

Powered by blists - more mailing lists