[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] x86/shadow: Fix build with CONFIG_SHADOW_PAGING=n following c/s 45ac805
c/s 45ac805 "x86/paging: Package up the log dirty function pointers" neglected the case when CONFIG_SHADOW_PAGING is disabled. Make a similar adjustment to the none stubs. Spotted by a Travis RANDCONFIG run. Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> --- CC: Jan Beulich <JBeulich@xxxxxxxx> CC: Tim Deegan <tim@xxxxxxx> --- xen/arch/x86/mm/shadow/none.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/xen/arch/x86/mm/shadow/none.c b/xen/arch/x86/mm/shadow/none.c index 69e56c5..41ce593 100644 --- a/xen/arch/x86/mm/shadow/none.c +++ b/xen/arch/x86/mm/shadow/none.c @@ -20,8 +20,13 @@ static void _clean_dirty_bitmap(struct domain *d) int shadow_domain_init(struct domain *d, unsigned int domcr_flags) { - paging_log_dirty_init(d, _enable_log_dirty, - _disable_log_dirty, _clean_dirty_bitmap); + static const struct log_dirty_ops sh_none_ops = { + .enable = _enable_log_dirty, + .disable = _disable_log_dirty, + .clean = _clean_dirty_bitmap, + }; + + paging_log_dirty_init(d, &sh_none_ops); return is_pv_domain(d) ? 0 : -EOPNOTSUPP; } -- 2.1.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |