x86/pv: Drop redundant CONFIG_PV ifdefary
PATCH 1/1 x86/pv: Drop redundant CONFIG_PV ifdefary
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.
---
CC: Jan Beulich <[email protected]>
CC: Wei Liu <[email protected]>
CC: Roger Pau Monné <[email protected]>
--- xen/include/asm-x86/shadow.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
xen/include/asm-x86/shadow.h +2 -2
@@ -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 }
Signature · 7 lines
2.1.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 4 lines · Andrew Cooper
These were made redundant by c/s
23058e7b3"x86/shadow: put PV L1TF functions underCONFIG_PV" but makes the code read as if outside of the ifdef.Signed-off-by Andrew Cooper <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Jan Beulich
Acked-byQuoted 8 lines
Quoted 1 line
Quoted 1 line · On 04.04.19 at 10:25, <[email protected]> wrote:
Quoted 4 lines · Andrew Cooper
These were made redundant by c/s
23058e7b3"x86/shadow: put PV L1TF functions underCONFIG_PV" but makes the code read as if outside of the ifdef.Signed-off-by Andrew Cooper <[email protected]>Reviewed-by Wei Liu <[email protected]>
albeit preferably with the shorter #ifdef used.
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel