From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Jan Beulich <jbeulich@suse.com>,
"xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>
Cc: "Andrew Cooper" <andrew.cooper3@citrix.com>,
"Roger Pau Monné" <roger.pau@citrix.com>,
"Teddy Astie" <teddy.astie@vates.tech>
Subject: Re: [PATCH] x86: kexec is PV-only
Date: Tue, 30 Jun 2026 14:37:45 +0100 [thread overview]
Message-ID: <065ae596-2fed-46e9-bfda-bad183fd6b67@citrix.com> (raw)
In-Reply-To: <36b16760-8888-4fa1-b486-2fa14b60053d@suse.com>
On 30/06/2026 2:35 pm, Jan Beulich wrote:
> Kexec is of no use without its hypercall, and that hypercall is wired up
> only for PV. Allowing that code to be built when !PV therefore results in
> a lot of unreachable code, violating Misra C:2012 rule 2.1.
>
> Signed-off-by: Jan Beulich <jbeulich@suse.com>
>
> --- a/xen/arch/x86/Kconfig
> +++ b/xen/arch/x86/Kconfig
> @@ -22,7 +22,7 @@ config X86
> select HAS_EX_TABLE
> select HAS_FAST_MULTIPLY
> select HAS_IOPORTS
> - select HAS_KEXEC
> + select HAS_KEXEC if PV
> select HAS_NS16550
> select HAS_PASSTHROUGH
> select HAS_PCI
This might be true, but it's wrong. kexec should be wired up for PVH
too, and I don't see any reason why it can't be.
~Andrew
next prev parent reply other threads:[~2026-06-30 13:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-30 13:35 [PATCH] x86: kexec is PV-only Jan Beulich
2026-06-30 13:37 ` Andrew Cooper [this message]
2026-06-30 13:42 ` Jan Beulich
2026-06-30 13:39 ` Roger Pau Monné
2026-06-30 13:43 ` 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=065ae596-2fed-46e9-bfda-bad183fd6b67@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=jbeulich@suse.com \
--cc=roger.pau@citrix.com \
--cc=teddy.astie@vates.tech \
--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.