x86/mm: Fix up bad bool conversion in ept_set_entry()
PATCH 1/1 x86/mm: Fix up bad bool conversion in ept_set_entry()
This accidentally turned a 1 into false.
Noticed by Coverity.
Reported-by Jan Beulich <[email protected]>
Fixes de577618c285 ("x86/treewide: Switch bool_t to bool")
Signed-off-by Andrew Cooper <[email protected]>
---
CC: Jan Beulich <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Wei Liu <[email protected]>
--- xen/arch/x86/mm/p2m-ept.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
xen/arch/x86/mm/p2m-ept.c +1 -1
@@ -803,7 +803,7 @@ ept_set_entry(struct p2m_domain *p2m, gfn_t gfn_, mfn_t mfn,bool need_modify_vtd_table = true;bool vtd_pte_present = false;unsigned int iommu_flags =p2m_get_iommu_flags (p2mt, p2ma, mfn); -bool needs_sync = false; +bool needs_sync = true;ept_entry_t old_entry = { .epte =0 };ept_entry_t new_entry = { .epte =0 };struct ept_data *ept = &p2m->ept;
base-commit: 10081c2dc571775b538bb00982606a39832ad7e3
Signature · 1 line
2.30.2
Quoted 7 lines · Andrew Cooper
This accidentally turned a 1 into false.
Noticed by Coverity.
Reported-by Jan Beulich <[email protected]>Fixes de577618c285 ("x86/treewide: Switch bool_t to bool")Signed-off-by Andrew Cooper <[email protected]>
Reviewed-by Jan Beulich <[email protected]>