From: Simon Gaiser <simon@invisiblethingslab.com>
To: xen-devel@lists.xenproject.org
Cc: Simon Gaiser <simon@invisiblethingslab.com>,
Andrew Cooper <andrew.cooper3@citrix.com>,
Jan Beulich <jbeulich@suse.com>
Subject: [PATCH 1/2] x86/microcode: Indicate "not found" in rc of microcode_resume_cpu()
Date: Wed, 11 Apr 2018 22:14:57 +0200 [thread overview]
Message-ID: <20180411201458.26004-1-simon@invisiblethingslab.com> (raw)
In-Reply-To: <5ACE2D9502000078001BA56C@prv1-mh.provo.novell.com>
Make it possible to distinguish between a failure to load a microcode
update and a failure to find any matching microcode update by returning
-ENOENT (instead of -EIO) in the later case.
Signed-off-by: Simon Gaiser <simon@invisiblethingslab.com>
---
xen/arch/x86/microcode.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/xen/arch/x86/microcode.c b/xen/arch/x86/microcode.c
index 77c1efc97f..e9fafb1d14 100644
--- a/xen/arch/x86/microcode.c
+++ b/xen/arch/x86/microcode.c
@@ -248,7 +248,7 @@ int microcode_resume_cpu(unsigned int cpu)
__microcode_fini_cpu(cpu);
uci->cpu_sig = nsig;
- err = -EIO;
+ err = -ENOENT;
for_each_online_cpu ( cpu2 )
{
uci = &per_cpu(ucode_cpu_info, cpu2);
--
2.16.2
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
next prev parent reply other threads:[~2018-04-11 20:15 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-11 11:48 Resume from suspend to RAM broken when using early microcode updates Simon Gaiser
2018-04-11 11:51 ` Andrew Cooper
2018-04-11 12:01 ` Simon Gaiser
2018-04-11 12:11 ` Jan Beulich
2018-04-11 12:17 ` Jan Beulich
2018-04-11 12:46 ` Simon Gaiser
2018-04-11 13:45 ` Jan Beulich
2018-04-11 20:14 ` Simon Gaiser [this message]
2018-04-11 20:14 ` [PATCH 2/2] x86: correct ordering of operations during S3 resume Simon Gaiser
2018-04-11 20:21 ` [PATCH v2 " Simon Gaiser
[not found] ` <5ACE6EA10200005203786DDD@prv1-mh.provo.novell.com>
2018-04-12 7:12 ` Jan Beulich
2018-04-12 6:56 ` [PATCH 1/2] x86/microcode: Indicate "not found" in rc of microcode_resume_cpu() Jan Beulich
2018-04-11 12:12 ` Resume from suspend to RAM broken when using early microcode updates Andrew Cooper
2018-04-11 14:49 ` Konrad Rzeszutek Wilk
2018-04-11 15:05 ` Andrew Cooper
2018-04-11 15:32 ` Jan Beulich
2018-04-11 12:04 ` Jan Beulich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180411201458.26004-1-simon@invisiblethingslab.com \
--to=simon@invisiblethingslab.com \
--cc=andrew.cooper3@citrix.com \
--cc=jbeulich@suse.com \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.