diff mbox series

x86/shadow: Fix build with !CONFIG_SHADOW_PAGING

Message ID 20201221145525.30804-1-andrew.cooper3@citrix.com (mailing list archive)
State New
Headers show
Series x86/shadow: Fix build with !CONFIG_SHADOW_PAGING | expand

Commit Message

Andrew Cooper Dec. 21, 2020, 2:55 p.m. UTC
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(+)

Comments

Jan Beulich Dec. 21, 2020, 3:09 p.m. UTC | #1
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>
diff mbox series

Patch

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) \