Re: [PATCH] NFS: Retry the CLOSE if the embedded GETATTR is rejected with ERR_STALE

2020-11-19 Thread Anchal Agarwal
ow the content is safe. > > > > > > > > > > > > On Wed, 2020-11-18 at 00:24 +, Anchal Agarwal wrote: > > > > If our CLOSE RPC call is rejected with an ERR_STALE error, then > > > > we > > > > should remove the GETATTR call fr

Re: [PATCH] NFS: Retry the CLOSE if the embedded GETATTR is rejected with ERR_STALE

2020-11-18 Thread Anchal Agarwal
view, in that case client could retry close without getattr in the close sequence without anything to do on server side. Thanks, Anchal Agarwal > -- > Trond Myklebust > Linux NFS client maintainer, Hammerspace > trond.mykleb...@hammerspace.com > >

[PATCH] NFS: Retry the CLOSE if the embedded GETATTR is rejected with ERR_STALE

2020-11-17 Thread Anchal Agarwal
ed by first client. When the first client attempts to close the file the server returns ESTALE and the file ends up being leaked on the server. This depends on how nfs server is configured and is not reproducible if running against nfsd. Signed-off-by: Anchal Agarwal --- fs/nfs/nfs4proc.c | 1 + 1

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

2020-09-30 Thread Anchal Agarwal
On Mon, Sep 28, 2020 at 02:49:56PM -0400, boris.ostrov...@oracle.com wrote: > 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 9/25/20 6:

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

2020-09-25 Thread Anchal Agarwal
On Fri, Sep 25, 2020 at 04:02:58PM -0400, boris.ostrov...@oracle.com wrote: > 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 9/25/20 3:

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

2020-09-22 Thread Anchal Agarwal
On Tue, Sep 22, 2020 at 12:18:05PM -0400, boris.ostrov...@oracle.com wrote: > 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 9/21/20 5:

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

2020-09-21 Thread Anchal Agarwal
On Tue, Sep 15, 2020 at 03:58:45PM -0400, boris.ostrov...@oracle.com wrote: > 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. > > > > >> > >> > > + > > +static in

Re: [PATCH v3 02/11] xenbus: add freeze/thaw/restore callbacks support

2020-09-15 Thread Anchal Agarwal
On Sun, Sep 13, 2020 at 12:11:47PM -0400, boris.ostrov...@oracle.com wrote: > 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 8/21/20 6:

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

2020-09-15 Thread Anchal Agarwal
On Mon, Sep 14, 2020 at 08:24:22PM -0400, boris.ostrov...@oracle.com wrote: > 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 9/14/20 5:

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

2020-09-14 Thread Anchal Agarwal
On Sun, Sep 13, 2020 at 11:43:30AM -0400, boris.ostrov...@oracle.com wrote: > 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 8/21/20 6:

Re: [PATCH v3 00/11] Fix PM hibernation in Xen guests

2020-09-11 Thread Anchal Agarwal
On Fri, Aug 28, 2020 at 06:39:45PM +, Anchal Agarwal wrote: > On Fri, Aug 28, 2020 at 08:29:24PM +0200, Rafael J. Wysocki wrote: > > CAUTION: This email originated from outside of the organization. Do not > > click links or open attachments unless you can confirm the sender an

Re: [PATCH v3 00/11] Fix PM hibernation in Xen guests

2020-08-28 Thread Anchal Agarwal
020 at 8:26 PM Anchal Agarwal wrote: > > > > On Fri, Aug 21, 2020 at 10:22:43PM +, Anchal Agarwal wrote: > > > Hello, > > > This series fixes PM hibernation for hvm guests running on xen hypervisor. > > > The running guest could now be hibernated and

Re: [PATCH v3 00/11] Fix PM hibernation in Xen guests

2020-08-28 Thread Anchal Agarwal
On Fri, Aug 21, 2020 at 10:22:43PM +, Anchal Agarwal wrote: > Hello, > This series fixes PM hibernation for hvm guests running on xen hypervisor. > The running guest could now be hibernated and resumed successfully at a > later time. The fixes for PM hibernation are added

Re: [PATCH v3 05/11] genirq: Shutdown irq chips in suspend/resume during hibernation

2020-08-24 Thread Anchal Agarwal
og part below the --- seperator next > time because that's really not part of the final commit messaage and the > maintainer has then to strip it off manually > Ack. > > Signed-off-by: Anchal Agarwal > > Signed-off-by: Thomas Gleixner > > These SOB lines are just w

[PATCH v3 11/11] PM / hibernate: update the resume offset on SNAPSHOT_SET_SWAP_AREA

2020-08-21 Thread Anchal Agarwal
r all the data is written out) in the validation of the swap signature in mark_swapfiles(). Before this patch, the command line processing was the only place where swsusp_resume_block was set. [Anchal Agarwal: Changelog: Resolved patch conflict as code fragmented to snapshot_set_swap_area] Signed-o

[PATCH v3 10/11] xen: Update sched clock offset to avoid system instability in hibernation

2020-08-21 Thread Anchal Agarwal
the scheduler would then think that heavy CPU hog tasks need more time in CPU, causing the system to freeze Signed-off-by: Anchal Agarwal --- arch/x86/xen/suspend.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/x86/xen/suspend.c b/arch/x86/xen/suspend.

[PATCH v3 08/11] x86/xen: save and restore steal clock during PM hibernation

2020-08-21 Thread Anchal Agarwal
sched clock offset and using existing ones that are used during LM Signed-off-by: Anchal Agarwal --- arch/x86/xen/suspend.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/x86/xen/suspend.c b/arch/x86/xen/suspend.c index 550aa0fc9465..b12db6966af6 100644 --- a/arch/

[PATCH v3 09/11] xen: Introduce wrapper for save/restore sched clock offset

2020-08-21 Thread Anchal Agarwal
Introduce wrappers for save/restore xen_sched_clock_offset to be used by PM hibernation code to avoid system instability during resume. Signed-off-by: Anchal Agarwal --- arch/x86/xen/time.c| 15 +-- arch/x86/xen/xen-ops.h | 2 ++ 2 files changed, 15 insertions(+), 2 deletions

[PATCH v3 06/11] xen-blkfront: add callbacks for PM suspend and hibernation

2020-08-21 Thread Anchal Agarwal
nd gets disconnected, the frontend may see massive amount of grant table warning when freeing resources. [ 36.852659] deferring g.e. 0xf9 (pfn 0x) [ 36.855089] xen:grant_table: WARNING:e.g. 0x112 still in use! In this case, persistent grants would need to be disabled. [Anchal Ag

[PATCH v3 07/11] xen-netfront: add callbacks for PM suspend and hibernation

2020-08-21 Thread Anchal Agarwal
case, longer default timeout seems a bit more reasonable here to avoid hitting the timeout. Also, make it configurable via module parameter so that we can cover broader setups than what we know currently. [Anchal Agarwal: Changelog]: RFCv1->RFCv2: Variable name fix and checkpatch.pl fixes

[PATCH v3 04/11] x86/xen: add system core suspend and resume callbacks

2020-08-21 Thread Anchal Agarwal
suspend operation however, during xen suspend lock_system_sleep() lock is taken and thus system cannot trigger hibernation. These system core callbacks will be called only from the hibernation context. [Anchal Agarwal: Changelog]: v1->v2: Edit commit message Fixed syscore_suspend() to c

[PATCH v3 03/11] x86/xen: Introduce new function to map HYPERVISOR_shared_info on Resume

2020-08-21 Thread Anchal Agarwal
1->v2: Remove extra check for shared_info_pfn to be NULL Signed-off-by: Anchal Agarwal --- arch/x86/xen/enlighten_hvm.c | 6 ++ arch/x86/xen/xen-ops.h | 1 + 2 files changed, 7 insertions(+) diff --git a/arch/x86/xen/enlighten_hvm.c b/arch/x86/xen/enlighten_hvm.c index 9e87

[PATCH v3 02/11] xenbus: add freeze/thaw/restore callbacks support

2020-08-21 Thread Anchal Agarwal
ore callbacks even for PM suspend whereas suspend/resume callbacks are normally used in the case, becausae the existing xenbus device drivers already have suspend/resume callbacks specifically designed for Xen suspend. So we can allow the device drivers to keep the existing callbacks wihtout modif

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

2020-08-21 Thread Anchal Agarwal
d the issue. [Anchal Agarwal: Changelog]: RFC v1->v2: Code refactoring v1->v2: Remove unused functions for PM SUSPEND/PM hibernation v2->v3: Added logic to use existing pm_notifier to detect for ARM and abort hibernation for ARM guests. Also rem

[PATCH v3 00/11] Fix PM hibernation in Xen guests

2020-08-21 Thread Anchal Agarwal
rray import fcntl #swap file f = open(sys.argv[1], 'r') buf = array.array('L', [0]) #FIBMAP ret = fcntl.ioctl(f.fileno(), 0x01, buf) print buf[0] " Aleksei Besogonov (1): PM / hibernate: update the resume offset on SNAPSHOT_SET_SWAP_AREA Anchal Agarwal (4): x86/xen:

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

2020-08-05 Thread Anchal Agarwal
On Wed, Aug 05, 2020 at 09:31:13AM -0400, Boris Ostrovsky wrote: > 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 8/4/20 7:42 PM,

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

2020-08-04 Thread Anchal Agarwal
On Fri, Jul 31, 2020 at 10:13:48AM -0400, Boris Ostrovsky wrote: > 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 7/30/20 7:06 PM,

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

2020-07-30 Thread Anchal Agarwal
On Mon, Jul 27, 2020 at 06:08:29PM -0400, Boris Ostrovsky wrote: > 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 7/24/20 7:01 PM, Stefano Stabellini wrote: >

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

2020-07-23 Thread Anchal Agarwal
On Wed, Jul 22, 2020 at 04:49:16PM -0700, Stefano Stabellini wrote: > 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 Wed, 22 Jul 2020,

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

2020-07-22 Thread Anchal Agarwal
On Tue, Jul 21, 2020 at 05:18:34PM -0700, Stefano Stabellini wrote: > 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 Tue, 21 Jul 2020, Boris Ostrovsky wrote:

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

2020-07-21 Thread Anchal Agarwal
g you in case you could be able to give this a try and > make sure it doesn't break suspend for dom0. > > On Tue, Jul 21, 2020 at 12:17:36AM +, Anchal Agarwal wrote: > > On Mon, Jul 20, 2020 at 11:37:05AM +0200, Roger Pau Monné wrote: > > > CAUTION: This email originate

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

2020-07-20 Thread Anchal Agarwal
0 at 09:47:04PM -0400, Boris Ostrovsky wrote: > > (Roger, question for you at the very end) > > > > On 7/17/20 3:10 PM, Anchal Agarwal wrote: > > > On Wed, Jul 15, 2020 at 05:18:08PM -0400, Boris Ostrovsky wrote: > > >> CAUTION: This email originated from out

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

2020-07-20 Thread Anchal Agarwal
r you at the very end) > > On 7/17/20 3:10 PM, Anchal Agarwal wrote: > > On Wed, Jul 15, 2020 at 05:18:08PM -0400, Boris Ostrovsky wrote: > >> CAUTION: This email originated from outside of the organization. Do not > >> click links or open attachments unless you can co

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

2020-07-17 Thread Anchal Agarwal
On Wed, Jul 15, 2020 at 05:18:08PM -0400, Boris Ostrovsky wrote: > 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 7/15/20 4:49 PM,

Re: [PATCH v2 00/11] Fix PM hibernation in Xen guests

2020-07-16 Thread Anchal Agarwal
On Wed, Jul 15, 2020 at 04:49:57PM -0400, Boris Ostrovsky wrote: > 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 7/15/20 3:49 PM,

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

2020-07-15 Thread Anchal Agarwal
On Mon, Jul 13, 2020 at 11:52:01AM -0400, Boris Ostrovsky wrote: > 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 7/2/20 2:21 PM,

Re: [PATCH v2 00/11] Fix PM hibernation in Xen guests

2020-07-15 Thread Anchal Agarwal
On Mon, Jul 13, 2020 at 03:43:33PM -0400, Boris Ostrovsky wrote: > 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 7/10/20 2:17 PM, Agarwal, Anchal wrote: > >

[PATCH v2 02/11] xenbus: add freeze/thaw/restore callbacks support

2020-07-02 Thread Anchal Agarwal
ore callbacks even for PM suspend whereas suspend/resume callbacks are normally used in the case, becausae the existing xenbus device drivers already have suspend/resume callbacks specifically designed for Xen suspend. So we can allow the device drivers to keep the existing callbacks wihtout modif

[PATCH v2 11/11] PM / hibernate: update the resume offset on SNAPSHOT_SET_SWAP_AREA

2020-07-02 Thread Anchal Agarwal
r all the data is written out) in the validation of the swap signature in mark_swapfiles(). Before this patch, the command line processing was the only place where swsusp_resume_block was set. [Anchal Agarwal: Changelog: Resolved patch conflict as code fragmented to snapshot_set_swap_area] Signed-o

[PATCH v2 10/11] xen: Update sched clock offset to avoid system instability in hibernation

2020-07-02 Thread Anchal Agarwal
the scheduler would then think that heavy CPU hog tasks need more time in CPU, causing the system to freeze Signed-off-by: Anchal Agarwal --- arch/x86/xen/suspend.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/x86/xen/suspend.c b/arch/x86/xen/suspend.c index 10cd14326472..4d8b1

[PATCH v2 06/11] xen-blkfront: add callbacks for PM suspend and hibernation

2020-07-02 Thread Anchal Agarwal
nd gets disconnected, the frontend may see massive amount of grant table warning when freeing resources. [ 36.852659] deferring g.e. 0xf9 (pfn 0x) [ 36.855089] xen:grant_table: WARNING:e.g. 0x112 still in use! In this case, persistent grants would need to be disabled. [Anchal Ag

[PATCH v2 08/11] x86/xen: save and restore steal clock during PM hibernation

2020-07-02 Thread Anchal Agarwal
sched clock offset and using existing ones that are used during LM Signed-off-by: Anchal Agarwal --- arch/x86/xen/suspend.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/x86/xen/suspend.c b/arch/x86/xen/suspend.c index e8c924e93fc5..10cd14326472 100644 --- a

[PATCH v2 09/11] xen: Introduce wrapper for save/restore sched clock offset

2020-07-02 Thread Anchal Agarwal
Introduce wrappers for save/restore xen_sched_clock_offset to be used by PM hibernation code to avoid system instability during resume. Signed-off-by: Anchal Agarwal --- arch/x86/xen/time.c| 15 +-- arch/x86/xen/xen-ops.h | 2 ++ 2 files changed, 15 insertions(+), 2 deletions

[PATCH v2 07/11] xen-netfront: add callbacks for PM suspend and hibernation

2020-07-02 Thread Anchal Agarwal
case, longer default timeout seems a bit more reasonable here to avoid hitting the timeout. Also, make it configurable via module parameter so that we can cover broader setups than what we know currently. [Anchal Agarwal: Changelog]: RFCv1->RFCv2: Variable name fix and checkpatch.pl fixes] Signe

[PATCH v2 04/11] x86/xen: add system core suspend and resume callbacks

2020-07-02 Thread Anchal Agarwal
suspend operation however, during xen suspend lock_system_sleep() lock is taken and thus system cannot trigger hibernation. These system core callbacks will be called only from the hibernation context. [Anchal Agarwal: Changelog]: v1->v2: Edit commit message Fixed syscore_suspend() to c

[PATCH v2 03/11] x86/xen: Introduce new function to map HYPERVISOR_shared_info on Resume

2020-07-02 Thread Anchal Agarwal
1->v2: Remove extra check for shared_info_pfn to be NULL Signed-off-by: Anchal Agarwal --- arch/x86/xen/enlighten_hvm.c | 6 ++ arch/x86/xen/xen-ops.h | 1 + 2 files changed, 7 insertions(+) diff --git a/arch/x86/xen/enlighten_hvm.c b/arch/x86/xen/enlighten_hvm.c index 3e89

[PATCH v2 00/11] Fix PM hibernation in Xen guests

2020-07-02 Thread Anchal Agarwal
ap file f = open(sys.argv[1], 'r') buf = array.array('L', [0]) #FIBMAP ret = fcntl.ioctl(f.fileno(), 0x01, buf) print buf[0] " Aleksei Besogonov (1): PM / hibernate: update the resume offset on SNAPSHOT_SET_SWAP_AREA Anchal Agarwal (4): x86/xen: Introduce new functi

[PATCH v2 05/11] genirq: Shutdown irq chips in suspend/resume during hibernation

2020-07-02 Thread Anchal Agarwal
gelog: RFCv2-RFCv3: Incorporated tglx@'s patch to work with xen code v1->v2: Corrected the author's name to tglx@ Signed-off-by: Anchal Agarwal Signed-off-by: Thomas Gleixner --- drivers/xen/events/events_base.c | 1 + include/linux/irq.h | 2 ++ kernel/irq/chip.c

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

2020-07-02 Thread Anchal Agarwal
d the issue. [Anchal Agarwal: Changelog]: RFC v1->v2: Code refactoring v1->v2: Remove unused functions for PM SUSPEND/PM hibernation Signed-off-by: Anchal Agarwal Signed-off-by: Munehisa Kamata --- drivers/xen/manage.c | 60 +++ include/xen/xen

Re: [PATCH 06/12] xen-blkfront: add callbacks for PM suspend and hibernation]

2020-06-29 Thread Anchal Agarwal
0 at 06:36:59PM +, Anchal Agarwal wrote: > > On Tue, Jun 23, 2020 at 10:19:03AM +0200, Roger Pau Monné wrote: > > > CAUTION: This email originated from outside of the organization. Do not > > > click links or open attachments unless you can confirm t

Re: [PATCH 06/12] xen-blkfront: add callbacks for PM suspend and hibernation]

2020-06-25 Thread Anchal Agarwal
0 at 12:43:14AM +, Anchal Agarwal wrote: > > On Mon, Jun 22, 2020 at 10:38:46AM +0200, Roger Pau Monné wrote: > > > CAUTION: This email originated from outside of the organization. Do not > > > click links or open attachments unless you can confirm t

Re: [PATCH 06/12] xen-blkfront: add callbacks for PM suspend and hibernation]

2020-06-22 Thread Anchal Agarwal
0 at 11:43:12PM +, Anchal Agarwal wrote: > > On Wed, Jun 17, 2020 at 10:35:28AM +0200, Roger Pau Monné wrote: > > > CAUTION: This email originated from outside of the organization. Do not > > > click links or open attachments unless you can confirm t

Re: [PATCH 06/12] xen-blkfront: add callbacks for PM suspend and hibernation]

2020-06-19 Thread Anchal Agarwal
0 at 09:49:25PM +, Anchal Agarwal wrote: > > On Thu, Jun 04, 2020 at 09:05:48AM +0200, Roger Pau Monné wrote: > > > CAUTION: This email originated from outside of the organization. Do not > > > click links or open attachments unless you can confirm the sender and > &g

Re: [PATCH 06/12] xen-blkfront: add callbacks for PM suspend and hibernation]

2020-06-16 Thread Anchal Agarwal
On Tue, Jun 16, 2020 at 09:49:25PM +, Anchal Agarwal wrote: > On Thu, Jun 04, 2020 at 09:05:48AM +0200, Roger Pau Monné wrote: > > CAUTION: This email originated from outside of the organization. Do not > > click links or open attachments unless you can confirm the sender an

Re: [PATCH 06/12] xen-blkfront: add callbacks for PM suspend and hibernation]

2020-06-16 Thread Anchal Agarwal
Jun 03, 2020 at 11:33:52PM +, Agarwal, Anchal wrote: > > 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. > > > > > > > &g

Re: [PATCH 04/12] x86/xen: add system core suspend and resume callbacks

2020-06-08 Thread Anchal Agarwal
Agarwal, Anchal wrote: > > 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:26 PM, Anchal Agarwal

Re: [PATCH 03/12] x86/xen: Introduce new function to map HYPERVISOR_shared_info on Resume

2020-06-08 Thread Anchal Agarwal
On Fri, Jun 05, 2020 at 05:39:54PM -0400, Boris Ostrovsky wrote: > 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 6/4/20 7:03 PM,

Re: [PATCH 03/12] x86/xen: Introduce new function to map HYPERVISOR_shared_info on Resume

2020-06-04 Thread Anchal Agarwal
On Sat, May 30, 2020 at 07:02:01PM -0400, Boris Ostrovsky wrote: > 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:25 PM,

Re: [PATCH 09/12] x86/xen: save and restore steal clock

2020-06-04 Thread Anchal Agarwal
On Sat, May 30, 2020 at 07:44:06PM -0400, Boris Ostrovsky wrote: > 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:28 PM,

[PATCH 06/12] xen-blkfront: add callbacks for PM suspend and hibernation

2020-05-21 Thread Anchal Agarwal
hangelog: Removed timeout/request during blkfront freeze. Reworked the whole patch to work with blk-mq and incorporate upstream's comments] Fixes: Build errors reported by kbuild due to linebreak Reported-by: kbuild test robot Signed-off-by: Anchal Agarwal Signed-off-by: Munehisa Kamata ---

[PATCH 11/12] xen: Update sched clock offset to avoid system instability in hibernation

2020-05-19 Thread Anchal Agarwal
the scheduler would then think that heavy CPU hog tasks need more time in CPU, causing the system to freeze Signed-off-by: Anchal Agarwal --- arch/x86/xen/suspend.c | 8 1 file changed, 8 insertions(+) diff --git a/arch/x86/xen/suspend.c b/arch/x86/xen/suspend.c index dae0f74f5390..7e527

[PATCH 10/12] xen: Introduce wrapper for save/restore sched clock offset

2020-05-19 Thread Anchal Agarwal
Introduce wrappers for save/restore xen_sched_clock_offset to be used by PM hibernation code to avoid system instability during resume. Signed-off-by: Anchal Agarwal --- arch/x86/xen/time.c| 15 +-- arch/x86/xen/xen-ops.h | 2 ++ 2 files changed, 15 insertions(+), 2 deletions

[PATCH 12/12] PM / hibernate: update the resume offset on SNAPSHOT_SET_SWAP_AREA

2020-05-19 Thread Anchal Agarwal
eksei Besogonov Signed-off-by: Munehisa Kamata Signed-off-by: Anchal Agarwal --- kernel/power/user.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/kernel/power/user.c b/kernel/power/user.c index 7959449765d9..1afa1f0a223e 100644 --- a/kernel/power/user.c +++ b/kernel/power/u

[PATCH 08/12] xen/time: introduce xen_{save,restore}_steal_clock

2020-05-19 Thread Anchal Agarwal
number. Signed-off-by: Munehisa Kamata Signed-off-by: Anchal Agarwal --- drivers/xen/time.c| 29 - include/xen/xen-ops.h | 2 ++ 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/drivers/xen/time.c b/drivers/xen/time.c index 0968859c29d0..3560222cc0dd

[PATCH 09/12] x86/xen: save and restore steal clock

2020-05-19 Thread Anchal Agarwal
tive until then. Signed-off-by: Munehisa Kamata Signed-off-by: Anchal Agarwal --- arch/x86/xen/suspend.c | 13 - arch/x86/xen/time.c| 3 +++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/arch/x86/xen/suspend.c b/arch/x86/xen/suspend.c index 784c4484100b..da

[PATCH 07/12] xen-netfront: add callbacks for PM suspend and hibernation

2020-05-19 Thread Anchal Agarwal
case, longer default timeout seems a bit more reasonable here to avoid hitting the timeout. Also, make it configurable via module parameter so that we can cover broader setups than what we know currently. [Anchal changelog: Variable name fix and checkpatch.pl fixes] Signed-off-by: Anchal Agarwal S

[PATCH 06/12] xen-blkfront: add callbacks for PM suspend and hibernation

2020-05-19 Thread Anchal Agarwal
hangelog: Removed timeout/request during blkfront freeze. Reworked the whole patch to work with blk-mq and incorporate upstream's comments] Signed-off-by: Anchal Agarwal Signed-off-by: Munehisa Kamata --- drivers/block/xen-blkfront.c | 122 +-- 1 file changed,

[PATCH 05/12] genirq: Shutdown irq chips in suspend/resume during hibernation

2020-05-19 Thread Anchal Agarwal
t all interrupts connected to it are handled this way. This is pretty much in line with the other interrupt chip specific quirks, e.g. IRQCHIP_MASK_ON_SUSPEND. Add a new quirk flag IRQCHIP_SHUTDOWN_ON_SUSPEND and add support for it the core interrupt suspend/resume paths. Signed-off-by: Anchal Agarwal S

[PATCH 04/12] x86/xen: add system core suspend and resume callbacks

2020-05-19 Thread Anchal Agarwal
From: Munehisa Kamata Add Xen PVHVM specific system core callbacks for PM suspend and hibernation support. The callbacks suspend and resume Xen primitives,like shared_info, pvclock and grant table. Note that Xen suspend can handle them in a different manner, but system core callbacks are called f

[PATCH 02/12] xenbus: add freeze/thaw/restore callbacks support

2020-05-19 Thread Anchal Agarwal
From: Munehisa Kamata Since commit b3e96c0c7562 ("xen: use freeze/restore/thaw PM events for suspend/resume/chkpt"), xenbus uses PMSG_FREEZE, PMSG_THAW and PMSG_RESTORE events for Xen suspend. However, they're actually assigned to xenbus_dev_suspend(), xenbus_dev_cancel() and xenbus_dev_resume()

[PATCH 03/12] x86/xen: Introduce new function to map HYPERVISOR_shared_info on Resume

2020-05-19 Thread Anchal Agarwal
ff-by: Anchal Agarwal --- arch/x86/xen/enlighten_hvm.c | 7 +++ arch/x86/xen/xen-ops.h | 1 + 2 files changed, 8 insertions(+) diff --git a/arch/x86/xen/enlighten_hvm.c b/arch/x86/xen/enlighten_hvm.c index e138f7de52d2..75b1ec7a0fcd 100644 --- a/arch/x86/xen/enlighten_hvm.c +++ b/arch/x8

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

2020-05-19 Thread Anchal Agarwal
d the issue. [Anchal Changelog: Code refactoring] Signed-off-by: Anchal Agarwal Signed-off-by: Munehisa Kamata --- drivers/xen/manage.c | 73 +++ include/xen/xen-ops.h | 3 ++ 2 files changed, 76 insertions(+) diff --git a/drivers/xen/manage.c b/driver

[PATCH 00/12] Fix PM hibernation in Xen guests

2020-05-19 Thread Anchal Agarwal
sudo pm-hibernate OR echo disk > /sys/power/state && echo reboot > /sys/power/disk Compute resume offset code: " #!/usr/bin/env python import sys import array import fcntl #swap file f = open(sys.argv[1], 'r') buf = array.array('L', [0]) #FIBMAP ret = fcntl.ioctl