Re: [PATCH 01/12] xen/manage: keep track of the on-going suspend mode

2020-06-01 Thread Boris Ostrovsky
On 6/1/20 5:00 PM, Agarwal, Anchal wrote: >  > > I don't see these last two used anywhere. Are you, in fact, > distinguishing between PM suspend and hibernation? > > Yes, I am. Unless there is a better way to distinguish at runtime which I > haven't figured out yet. > The initial desig

Re: [PATCH 01/12] xen/manage: keep track of the on-going suspend mode

2020-06-01 Thread Agarwal, Anchal
CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you can confirm the sender and know the content is safe. On 5/19/20 7:24 PM, Anchal Agarwal wrote: > > +enum suspend_modes { > + NO_SUSPEND = 0, > +

Re: [PATCH 01/12] xen/manage: keep track of the on-going suspend mode

2020-05-30 Thread Boris Ostrovsky
On 5/19/20 7:24 PM, Anchal Agarwal wrote: > > +enum suspend_modes { > + NO_SUSPEND = 0, > + XEN_SUSPEND, > + PM_SUSPEND, > + PM_HIBERNATION, > +}; > + > +/* Protected by pm_mutex */ > +static enum suspend_modes suspend_mode = NO_SUSPEND; > + > +bool xen_suspend_mode_is_xen_suspend

[PATCH 01/12] xen/manage: keep track of the on-going suspend mode

2020-05-19 Thread Anchal Agarwal
From: Munehisa Kamata Guest hibernation is different from xen suspend/resume/live migration. Xen save/restore does not use pm_ops as is needed by guest hibernation. Hibernation in guest follows ACPI path and is guest inititated , the hibernation image is saved within guest as compared to later mo

Re: [Xen-devel] [RFC PATCH 01/12] xen/manage: keep track of the on-going suspend mode

2018-06-13 Thread Balbir Singh
On Wed, Jun 13, 2018 at 6:56 AM, Anchal Agarwal wrote: > From: Munehisa Kamata > > To differentiate between Xen suspend, PM suspend and PM hibernation, > keep track of the on-going suspend mode by mainly using a new PM > notifier. Since Xen suspend doesn't have corresponding PM event, its > main

[Xen-devel] [RFC PATCH 01/12] xen/manage: keep track of the on-going suspend mode

2018-06-12 Thread Anchal Agarwal
From: Munehisa Kamata To differentiate between Xen suspend, PM suspend and PM hibernation, keep track of the on-going suspend mode by mainly using a new PM notifier. Since Xen suspend doesn't have corresponding PM event, its main logic is modfied to acquire pm_mutex and set the current mode. Not