From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Xen-devel <xen-devel@lists.xen.org>
Cc: "Andrew Cooper" <andrew.cooper3@citrix.com>,
"Wei Liu" <wei.liu2@citrix.com>,
"Jan Beulich" <JBeulich@suse.com>,
"Roger Pau Monné" <roger.pau@citrix.com>
Subject: [PATCH] x86/pv: Drop redundant CONFIG_PV ifdefary
Date: Wed, 3 Apr 2019 19:56:18 +0100 [thread overview]
Message-ID: <1554317778-17602-1-git-send-email-andrew.cooper3@citrix.com> (raw)
These were made redundant by c/s 23058e7b3 "x86/shadow: put PV L1TF functions
under CONFIG_PV" but makes the code read as if outside of the ifdef.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
---
CC: Jan Beulich <JBeulich@suse.com>
CC: Wei Liu <wei.liu2@citrix.com>
CC: Roger Pau Monné <roger.pau@citrix.com>
---
xen/include/asm-x86/shadow.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/xen/include/asm-x86/shadow.h b/xen/include/asm-x86/shadow.h
index 0d9f663..2690584 100644
--- a/xen/include/asm-x86/shadow.h
+++ b/xen/include/asm-x86/shadow.h
@@ -237,7 +237,7 @@ static inline void pv_l1tf_domain_init(struct domain *d)
d->arch.pv.check_l1tf = is_hardware_domain(d) ? opt_pv_l1tf_hwdom
: opt_pv_l1tf_domu;
-#if defined(CONFIG_SHADOW_PAGING) && defined(CONFIG_PV)
+#if defined(CONFIG_SHADOW_PAGING)
tasklet_init(&d->arch.paging.shadow.pv_l1tf_tasklet,
pv_l1tf_tasklet, (unsigned long)d);
#endif
@@ -245,7 +245,7 @@ static inline void pv_l1tf_domain_init(struct domain *d)
static inline void pv_l1tf_domain_destroy(struct domain *d)
{
-#if defined(CONFIG_SHADOW_PAGING) && defined(CONFIG_PV)
+#if defined(CONFIG_SHADOW_PAGING)
tasklet_kill(&d->arch.paging.shadow.pv_l1tf_tasklet);
#endif
}
--
2.1.4
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
next reply other threads:[~2019-04-03 18:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-03 18:56 Andrew Cooper [this message]
2019-04-04 8:25 ` [PATCH] x86/pv: Drop redundant CONFIG_PV ifdefary Wei Liu
2019-04-04 11:44 ` 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=1554317778-17602-1-git-send-email-andrew.cooper3@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=JBeulich@suse.com \
--cc=roger.pau@citrix.com \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xen.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 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).