projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d162f36
)
x86/shadow: Fix build with !CONFIG_SHADOW_PAGING
author
Andrew Cooper
<andrew.cooper3@citrix.com>
Mon, 21 Dec 2020 14:52:26 +0000
(14:52 +0000)
committer
Andrew Cooper
<andrew.cooper3@citrix.com>
Mon, 21 Dec 2020 15:16:31 +0000
(15:16 +0000)
Implement a stub for shadow_vcpu_teardown()
Fixes: d162f36848c4 ("xen/x86: Fix memory leak in vcpu_create() error path")
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/include/asm-x86/shadow.h
patch
|
blob
|
history
diff --git
a/xen/include/asm-x86/shadow.h
b/xen/include/asm-x86/shadow.h
index 29a86ed78ea6bd6cd26c1e3929ca26200001342e..e25f9604d896d1f9b3794d70885cf8bf05827340 100644
(file)
--- 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) \