docs/misc: document PV control/feature keys for laptop/slate mode
PATCH 1/1 docs/misc: document PV control/feature keys for laptop/slate mode
Commit 4c8153d9 "add ACPI device for Windows laptop/slate mode switch" added code to provide an 'laptop/slate mode' ACPI device to guests.
When present this device is used by Microsoft Windows to bind a HID driver which controls whether the Windows desktop appearance is optimized for laptop/desktop or slate/tablet PCs. The mechanism for switching between modes is to open a handle to this driver and write a byte of arbitrary data.
This patch documents xenstore keys such that a PV agent running in a Windows guest can advertise the capability to, and receive instruction from, a toolstack to cause such a mode switch.
---
Cc: Andrew Cooper <[email protected]>
Cc: George Dunlap <[email protected]>
Cc: Ian Jackson <[email protected]>
Cc: Jan Beulich <[email protected]>
Cc: Konrad Rzeszutek Wilk <[email protected]>
Cc: Stefano Stabellini <[email protected]>
Cc: Tim Deegan <[email protected]>
Cc: Wei Liu <[email protected]>
--- docs/misc/xenstore-paths.markdown | 15 +++++++++++++++ 1 file changed, 15 insertions(+)
docs/misc/xenstore-paths.markdown +15 -0
@@ -435,6 +435,21 @@ XS_RESET_WATCHES xenstore message. See [xen/include/public/io/xs\_wire.h][XSWIRE] for the XenStore wire protocol definition. +#### ~/control/laptop-slate-mode = (""|"laptop"|"slate") [w] + +This is the PV laptop/slate mode control node. If the toolstack has +provisioned a guest with the ACPI laptop/slate mode device then it +can write the desired mode here to cause the guest to switch modes if +necessary. The guest acknowledges a request by writing the empty +string back to the control node. + +#### ~/control/feature-laptop-slate-mode = (""|"0"|"1") [w] + +This may be initialized to "" by the toolstack and may then be set +to 0 or 1 by a guest to indicate whether it is capable or incapable, +respectively, of responding to a mode value written to +~/control/laptop-slate-mode. + ### Domain Controlled Paths #### ~/data/* [w]
Signature · 7 lines
2.1.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
Quoted 9 lines · Paul Durrant
Commit
4c8153d9"add ACPI device for Windows laptop/slate mode switch" added code to provide an 'laptop/slate mode' ACPI device to guests.When present this device is used by Microsoft Windows to bind a HID driver which controls whether the Windows desktop appearance is optimized for laptop/desktop or slate/tablet PCs. The mechanism for switching between modes is to open a handle to this driver and write a byte of arbitrary data.
Quoted 5 lines
This patch documents xenstore keys such that a PV agent running in a Windows guest can advertise the capability to, and receive instruction from, a toolstack to cause such a mode switch.
Signed-off-by Paul Durrant <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 39 lines · Paul Durrant
Commit
4c8153d9"add ACPI device for Windows laptop/slate mode switch" added code to provide an 'laptop/slate mode' ACPI device to guests.When present this device is used by Microsoft Windows to bind a HID driver which controls whether the Windows desktop appearance is optimized for laptop/desktop or slate/tablet PCs. The mechanism for switching between modes is to open a handle to this driver and write a byte of arbitrary data.
This patch documents xenstore keys such that a PV agent running in a Windows guest can advertise the capability to, and receive instruction from, a toolstack to cause such a mode switch.
Signed-off-by Paul Durrant <[email protected]>---
Cc: Andrew Cooper <[email protected]>
Cc: George Dunlap <[email protected]>
Cc: Ian Jackson <[email protected]>
Cc: Jan Beulich <[email protected]>
Cc: Konrad Rzeszutek Wilk <[email protected]>
Cc: Stefano Stabellini <[email protected]>
Cc: Tim Deegan <[email protected]>
Cc: Wei Liu <[email protected]>--- docs/misc/xenstore-paths.markdown | 15 +++++++++++++++ 1 file changed, 15 insertions(+)docs/misc/xenstore-paths.markdown +4
-0@@ -435,6 +435,21 @@ XS_RESET_WATCHES xenstore message. See [xen/include/public/io/xs\_wire.h][XSWIRE] for the XenStore wire protocol definition. +#### ~/control/laptop-slate-mode = (""|"laptop"|"slate") [w] + +This is the PV laptop/slate mode control node. If the toolstack has +provisioned a guest with the ACPI laptop/slate mode device then it
docs/misc/xenstore-paths.markdown XS_RESET_WATCHES xenstore message. See · line 451
Quoted 10 lines
docs/misc/xenstore-paths.markdown +10
-0+can write the desired mode here to cause the guest to switch modes if +necessary. The guest acknowledges a request by writing the empty +string back to the control node. + +#### ~/control/feature-laptop-slate-mode = (""|"0"|"1") [w] + +This may be initialized to "" by the toolstack and may then be set +to 0 or 1 by a guest to indicate whether it is capable or incapable, +respectively, of responding to a mode value written to +~/control/laptop-slate-mode.
Usually, this is done by having the guest drivers write something like:
feature-laptop-slate-mode
to xenstore. The lack of the feature-* means no support is available. In fact, how is this supposed to work with old guest PV drivers that don't know about ~/control/feature-laptop-slate-mode? There won't be anybody to write "0" there, right?
Quoted 6 lines
docs/misc/xenstore-paths.markdown +0
-0### Domain Controlled Paths #### ~/data/* [w]Signature · 1 line
2.1.4
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel