[PATCH] x86/shadow: Fix build with !CONFIG_SHADOW_PAGING

Andrew Cooper posted 1 patch 3 years, 11 months ago
Test gitlab-ci failed
Patches applied successfully (tree, apply log)
git fetch https://gitlab.com/xen-project/patchew/xen tags/patchew/20201221145525.30804-1-andrew.cooper3@citrix.com
xen/include/asm-x86/shadow.h | 1 +
1 file changed, 1 insertion(+)
[PATCH] x86/shadow: Fix build with !CONFIG_SHADOW_PAGING
Posted by Andrew Cooper 3 years, 11 months ago
Implement a stub for shadow_vcpu_teardown()

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
---
CC: Jan Beulich <JBeulich@suse.com>
CC: Roger Pau Monné <roger.pau@citrix.com>
CC: Wei Liu <wl@xen.org>
---
 xen/include/asm-x86/shadow.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/xen/include/asm-x86/shadow.h b/xen/include/asm-x86/shadow.h
index 29a86ed78e..e25f9604d8 100644
--- a/xen/include/asm-x86/shadow.h
+++ b/xen/include/asm-x86/shadow.h
@@ -99,6 +99,7 @@ int shadow_set_allocation(struct domain *d, unsigned int pages,
 
 #else /* !CONFIG_SHADOW_PAGING */
 
+#define shadow_vcpu_teardown(v) ASSERT(is_pv_vcpu(v))
 #define shadow_teardown(d, p) ASSERT(is_pv_domain(d))
 #define shadow_final_teardown(d) ASSERT(is_pv_domain(d))
 #define shadow_enable(d, mode) \
-- 
2.11.0


Re: [PATCH] x86/shadow: Fix build with !CONFIG_SHADOW_PAGING
Posted by Jan Beulich 3 years, 11 months ago
On 21.12.2020 15:55, Andrew Cooper wrote:
> Implement a stub for shadow_vcpu_teardown()
> 
> Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>

Acked-by: Jan Beulich <jbeulich@suse.com>