#print "Ending unload thread $thr_id\n";
threads->detach(); #End thread.
});
}
for my $i (0..99)
{
threaded_task();
}
Eric DeVolder (2):
kexec: use hypercall_create_continuation to protect KEXEC ops
kexec: remove spinlock now that all KEXEC hypercall ops
e crash path. The overloading would lead to
failures in existing checks on this flag as the flag would
always be set at the top level in do_kexec_op_internal().
For this reason, the new flag KEXEC_FLAG_HC_IN_PROGRESS
was introduced.
While at it, fixed the #define mismatched spacing
Signed-off-by: E
in place of the spin_lock().
Signed-off-by: Eric DeVolder <eric.devol...@oracle.com>
Reviewed-by: Bhavesh Davda <bhavesh.da...@oracle.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.w...@oracle.com>
---
v4: 04/19/2017
- Fix ASSERT to work properly. Tested with Config.mk:debug
On 04/19/2017 11:21 AM, Jan Beulich wrote:
On 19.04.17 at 17:47, wrote:
@@ -832,7 +831,7 @@ static int kexec_swap_images(int type, struct kexec_image
*new,
if ( kexec_load_get_bits(type, , ) )
return -EINVAL;
-spin_lock(_lock);
+ASSERT(
On 04/19/2017 10:47 AM, Eric DeVolder wrote:
The spinlock in kexec_swap_images() was removed as
this function is only reachable on the kexec hypercall, which is
now protected at the top-level in do_kexec_op_internal(),
thus the local spinlock is no longer necessary.
Per recommendation from Jan
On 04/19/2017 06:48 AM, Andrew Cooper wrote:
On 19/04/17 12:00, Daniel Kiper wrote:
On Tue, Apr 18, 2017 at 04:48:06AM -0600, Jan Beulich wrote:
On 17.04.17 at 21:09, wrote:
--- a/xen/common/kexec.c
+++ b/xen/common/kexec.c
@@ -50,9 +50,10 @@ static cpumask_t
On 04/19/2017 08:37 AM, Jan Beulich wrote:
On 19.04.17 at 14:13, wrote:
On Wed, Apr 19, 2017 at 05:20:50AM -0600, Jan Beulich wrote:
On 19.04.17 at 12:56, wrote:
On Tue, Apr 18, 2017 at 04:49:48AM -0600, Jan Beulich wrote:
On 17.04.17 at
#print "Ending unload thread $thr_id\n";
threads->detach(); #End thread.
});
}
for my $i (0..99)
{
threaded_task();
}
Eric DeVolder (2):
kexec: use hypercall_create_continuation to protect KEXEC ops
kexec: remove spinlock now that all KEXEC hypercall ops
e crash path. The overloading would lead to
failures in existing checks on this flag as the flag would
always be set at the top level in do_kexec_op_internal().
For this reason, the new flag KEXEC_FLAG_HC_IN_PROGRESS
was introduced.
While at it, fixed the #define mismatched spacing
Signed-off-by: E
in place of the spin_lock().
Signed-off-by: Eric DeVolder <eric.devol...@oracle.com>
Reviewed-by: Bhavesh Davda <bhavesh.da...@oracle.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.w...@oracle.com>
---
v3:
- Incorporated feedback from Jan Beulich and Andrew Cooper
to lea
The spinlock in kexec_swap_images() was removed as
this function is only reachable on the kexec hypercall, which is
now protected at the top-level in do_kexec_op_internal(),
thus the local spinlock is no longer necessary.
Signed-off-by: Eric DeVolder <eric.devol...@oracle.com>
Re
#print "Ending unload thread $thr_id\n";
threads->detach(); #End thread.
});
}
for my $i (0..99)
{
threaded_task();
}
Eric DeVolder (2):
kexec: use hypercall_create_continuation to protect KEXEC ops
kexec: remove spinlock now that all KEXEC hypercall ops
e crash path. The overloading would lead to
failures in existing checks on this flag as the flag would
always be set at the top level in do_kexec_op_internal().
For this reason, the new flag KEXEC_FLAG_HC_IN_PROGRESS
was introduced.
While at it, fixed the #define mismatched spacing
Signed-off-by: E
) to prevent crashes during
simultaneous load/unloads.
Signed-off-by: Konrad Rzeszutek Wilk <konrad.w...@oracle.com>
Signed-off-by: Eric DeVolder <eric.devol...@oracle.com>
Reviewed-by: Daniel Kiper <daniel.ki...@oracle.com>
---
xen/common/kexec.c | 17 -
1 fil
-by: Konrad Rzeszutek Wilk <konrad.w...@oracle.com>
Signed-off-by: Eric DeVolder <eric.devol...@oracle.com>
---
CC: ke...@lists.infradead.org
CC: xen-de...@lists.xenproject.org
CC: Daniel Kiper <daniel.ki...@oracle.com>
v0: First version (internal product).
v1: Posted on kexec mailin
On 01/24/2017 01:16 PM, Daniel Kiper wrote:
On Tue, Jan 24, 2017 at 12:55:35PM -0600, Eric DeVolder wrote:
Instead of the scripts having to poke at various fields we can
provide that functionality via the -S parameter.
kexec_loaded/kexec_crash_loaded exposes Linux kernel kexec/crash
state
On 01/24/2017 01:16 PM, Daniel Kiper wrote:
On Tue, Jan 24, 2017 at 12:55:35PM -0600, Eric DeVolder wrote:
Instead of the scripts having to poke at various fields we can
provide that functionality via the -S parameter.
kexec_loaded/kexec_crash_loaded exposes Linux kernel kexec/crash
state
-by: Konrad Rzeszutek Wilk <konrad.w...@oracle.com>
Signed-off-by: Eric DeVolder <eric.devol...@oracle.com>
---
Note: The corresponding Xen changes have been committed
to the Xen staging branch. Follow this thread:
https://lists.xenproject.org/archives/html/xen-devel/2017-01/msg01570.html
com>
Signed-off-by: Eric DeVolder <eric.devol...@oracle.com>
---
Note: The corresponding Xen changes have been committed
to the Xen staging branch. Follow this thread:
https://lists.xenproject.org/archives/html/xen-devel/2017-01/msg01570.html
CC: Andrew Cooper <andrew.coop...@cit
When checking kexec_flags bit corresponding to the
requested image, ensure that 0 or 1 is returned.
Signed-off-by: Eric DeVolder <eric.devol...@oracle.com>
---
xen/common/kexec.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/xen/common/kexec.c b/xen/common/kexec.c
Jan,
This corrects the use of test_bit() in kexec_status().
Wei,
This patch is against the kexec_status() recently applied to staging.
Regards,
Eric
___
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
This blank line was accidentally removed during
the insertion of the kexec_status() declarations.
Signed-off-by: Eric DeVolder <eric.devol...@oracle.com>
---
xen/include/public/kexec.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/xen/include/public/kexec.h b/xen/include/public/k
The use of test_bit() can also return EPERM, so the
return value from test_bit() must be checked to
ensure that kexec_status() always returns 0, 1 or
-1, per the public header description.
Signed-off-by: Eric DeVolder <eric.devol...@oracle.com>
---
xen/common/kexec.c | 2 +-
1 file chan
This contains the two corrections pointed out by Jan Beulich
for the kexec STATUS call just introduced.
Note: In kexec_status(), the use of test_bit() can also return
EPERM, so the return value from test_bit() must be checked to
ensure that kexec_status() always returns 0, 1 or -1, per the
public
On 01/18/2017 11:47 AM, Wei Liu wrote:
On Wed, Jan 18, 2017 at 11:46:13AM -0600, Eric DeVolder wrote:
The tools that use kexec are asynchronous in nature and do not keep
state changes. As such provide an hypercall to find out whether an
image has been loaded for either type.
Note: No need
This blank line was accidentally removed during
the insertion of the kexec_status() declarations.
---
xen/include/public/kexec.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/xen/include/public/kexec.h b/xen/include/public/kexec.h
index c200e8c..74ea981 100644
---
The use of test_bit() can also return EPERM, so the
return value from test_bit() must be checked to
ensure that kexec_status() always returns 0, 1 or
-1, per the public header description.
---
xen/common/kexec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
This contains the two corrections pointed out by Jan Beulich
for the kexec STATUS call just introduced.
Note: In kexec_status(), the use of test_bit() can also return
EPERM, so the return value from test_bit() must be checked to
ensure that kexec_status() always returns 0, 1 or -1, per the
public
On 01/18/2017 04:47 AM, Wei Liu wrote:
On Wed, Jan 18, 2017 at 03:45:54AM -0700, Jan Beulich wrote:
On 18.01.17 at 11:37, wrote:
On Wed, Jan 18, 2017 at 03:19:49AM -0700, Jan Beulich wrote:
On 17.01.17 at 18:29, wrote:
--- a/xen/common/kexec.c
or -1, per the
public header description.
Note: This is just the Xen side of the hypercall, kexec-tools patch
to come separately.
Signed-off-by: Konrad Rzeszutek Wilk <konrad.w...@oracle.com>
Signed-off-by: Eric DeVolder <eric.devol...@oracle.com>
---
CC: Andrew Cooper <andrew.coo
KEXEC_FLAG_IN_PROGRESS (and error out of
kexec_status()) as this flag is set only once by the first/only
cpu on the crash path.
Note: This is just the Xen side of the hypercall, kexec-tools patch
to come separately.
Signed-off-by: Konrad Rzeszutek Wilk <konrad.w...@oracle.com>
Signed-off-by
, kexec-tools patch
to come separately.
Signed-off-by: Konrad Rzeszutek Wilk <konrad.w...@oracle.com>
Signed-off-by: Eric DeVolder <eric.devol...@oracle.com>
Reviewed-by: Daniel Kiper <daniel.ki...@oracle.com>
---
CC: Elena Ufimtseva <elena.ufimts...@oracle.com>
CC:
Convert tabs into spaces; preserving indentation
No functional changes
Signed-off-by: Eric DeVolder <eric.devol...@oracle.com>
---
tools/libxc/xc_kexec.c | 16
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/tools/libxc/xc_kexec.c b/tools/libxc/xc_kexec.c
Convert tabs into spaces; preserving indentation
No functional changes
Signed-off-by: Eric DeVolder <eric.devol...@oracle.com>
---
tools/libxc/xc_kexec.c | 16
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/tools/libxc/xc_kexec.c b/tools/libxc/xc_kexec.c
Fix cut-n-paste typo; changed the words "count not" to "could not".
No functional changes
Signed-off-by: Eric DeVolder <eric.devol...@oracle.com>
---
tools/libxc/xc_kexec.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/libxc/xc_kexec.
35 matches
Mail list logo