RE: [PATCH 2/3] hv_utils: Support host-initiated hibernation request

2019-09-13 Thread Dexuan Cui
> From: Vitaly Kuznetsov > Sent: Thursday, September 12, 2019 9:27 AM > > Dexuan Cui writes: > > > +static void perform_hibernation(struct work_struct *dummy) > > +{ > > + /* > > +* The user is expected to create the program, which can be a simple > > +* script containing two lines:

Re: [PATCH 2/3] hv_utils: Support host-initiated hibernation request

2019-09-12 Thread Vitaly Kuznetsov
Dexuan Cui writes: > +static void perform_hibernation(struct work_struct *dummy) > +{ > + /* > + * The user is expected to create the program, which can be a simple > + * script containing two lines: > + * #!/bin/bash > + * echo disk > /sys/power/state 'systemctl

[PATCH 2/3] hv_utils: Support host-initiated hibernation request

2019-09-11 Thread Dexuan Cui
Update the Shutdown IC version to 3.2, which is required for the host to send the hibernation request. The user is expected to create the program "/sbin/hyperv-hibernate", which is called on the host-initiated hibernation request. The program can be a script like test@localhost:~$ cat