xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* Followup corrections to kexec STATUS patch v3
@ 2017-01-18 18:01 Eric DeVolder
  2017-01-18 18:01 ` [PATCH] Put back blank line for readability purposes Eric DeVolder
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Eric DeVolder @ 2017-01-18 18:01 UTC (permalink / raw)
  To: xen-devel, andrew.cooper3, wei.liu2, ian.jackson
  Cc: elena.ufimtseva, daniel.kiper, konrad.wilk

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 header description.

Note: My handling of the test_bit() scenario is to explicitly
check for return value of 1, so any value other than 1 causes
kexec_status to return 0.


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-01-18 20:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-18 18:01 Followup corrections to kexec STATUS patch v3 Eric DeVolder
2017-01-18 18:01 ` [PATCH] Put back blank line for readability purposes Eric DeVolder
2017-01-18 18:01 ` [PATCH] kexec: ensure kexec_status() always returns 0 or 1 Eric DeVolder
2017-01-18 20:59 ` Followup corrections to kexec STATUS patch v3 Daniel Kiper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).